CA Configuration Automation

Expand all | Collapse all

Discovery and Customized Blueprint

  • 1.  Discovery and Customized Blueprint

    Broadcom Employee
    Posted 11-25-2014 07:56 AM

    Is it possible to configure a blueprint to find one or more words, for example: p9979, se1432, fe123 ... etc, doing research in  several servers (linux and windows servers with agents installed)? And about "Test Discover Component Blueprints" is justo to test the specified blueprint to one server? Tks.



  • 2.  Re: Discovery and Customized Blueprint

    Broadcom Employee
    Posted 11-25-2014 10:38 AM

    Hi Luiz,

     

    Yes it is, but the question comes to is, where are these strings located?  In a file, a result of a command run?  A system setting?

     

    Regards,

    Adnan



  • 3.  Re: Discovery and Customized Blueprint

    Broadcom Employee
    Posted 11-25-2014 11:38 AM

    Hi Adnan,

     

    This string could be a file name or directory name either.

     

    Tks



  • 4.  Re: Discovery and Customized Blueprint

    Broadcom Employee
    Posted 11-25-2014 12:28 PM

    Great, now what do you want to do with that?

     

    If you want to just "find" those items, then all you need to do in the management section of the blueprint, when you add either the directory or file (or both, two entries, one of each, respectively), it takes in a posix, so you can enter in the name field *p9979* and that will get you all the instances with that name in the directory that you set; now with that said, that gets it in the current directory you add it.  If you know the path, then you can add it there.

     

    If you want to discovery every single instance of that name(s), i would recommend creating a configuration executable and running a search for that specific text that would search the whole system (not this would take a while).

    For Windows, you would take the following vbs example and put it into batch format for CCA

    echo On Error Resume Next
    strComputer = "." 
    Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" ^& strComputer ^& "\root\cimv2")
    Set colItems = objWMIService.ExecQuery("SELECT * FROM CIM_DataFile WHERE (FileName like '%p9979%' OR FileName like '%se1432%')")
    For Each objFile in colFiles
       Wscript.Echo objFile.Name
    Next
    Set objWMIService = Nothing 
    

    For Unix \ Linux

    egrep -R "p9979|se1432” /

    Or what ever search\find command you want

     

    This works best if there are files in the system that you don't know where they are and are concerned about; if you only want to manage specific files\folders; then add them in in the management section as that is best practice

     

    Regards,

    Adnan



  • 5.  Re: Discovery and Customized Blueprint

    Broadcom Employee
    Posted 11-25-2014 02:21 PM

    Keep in mind that this is considered a customization as you are customizing \ creating a blueprint, which is not supported by CA Support

     

    Also, the last reply was under the assumption you want to 'manage' those files\folders; versus creating a blueprint with the intention to use those wildcards as indicators; if that is the case, then please let me know as that is something we have to look at it from a different angle and really try to get down to what your goal truly is