DX Unified Infrastructure Management

 View Only
Expand all | Collapse all

Tool: select anything, generate everything (nimsoft_generate_pu)

  • 1.  Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Sep 12, 2019 04:52 AM
    Edited by Luc Christiaens Nov 07, 2019 09:48 AM
      |   view attached
    In attachment a Perl tool that was written to make it possible to:
    - select almost every robot/host/device with flexible regex selection parameters
    - generate any command (with the use of variables)

    Examples:
    - deploy the logmon probe 4.11 on all robots that have an older version installed
    - deploy the logmon probe 4.11 on all robots that have an older version installed on all robots with origin xxx
    - deploy the logmon probe 4.11 on all robots that have an older version installed on all robots under hub aaa
    - generate probe_config_set to set proxy_mode=1 on all robots under hub aaa
    - update all robots version to x.xx via distsrv and start distribution only at 10:10 and keep 5 minutes between each update and only 10 robot at the same moment
    - list all robots that don't have the cdm probe installed
    - generate probe_config_set to update user_tag1 on all robots with xxx in the robot name and have probe sqlserver installed 

    nimsoft_generate_pu parameters


    Doc, perl source and compiled version is included in attachment.
    Questions, remarks and enhancements/ideas are welcome

    See later post to find version 1.6.2 (support TLS 1.2)

    Attachment(s)

    zip
    nimsoft_generate_pu_2.6.zip   7.77 MB 1 version


  • 2.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)
    Best Answer

    Posted Sep 12, 2019 06:35 AM
      |   view attached
    Updated zip file, because the original compiled version missed an include. (all the rest isn't modified)

    Attachment(s)

    zip
    nimsoft_generate_pu_2.6.1.zip   10.60 MB 1 version


  • 3.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Nov 07, 2019 09:31 AM
    Hi Luc,

    I am not able to see the attachment, could you please upload again.


    Thanks
    Hitesh Sehgal


  • 4.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Nov 07, 2019 09:38 AM
    It's there and just downloaded it to verify.

    ------------------------------
    Support Engineer
    Broadcom
    ------------------------------



  • 5.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Nov 07, 2019 09:48 AM
      |   view attached
    Version 1.6.2 has a new parameter in nimsoft_generic.dat: sql_driver to support using a new ODBC driver compatible with TLS 1.2

    Attachment(s)

    zip
    nimsoft_generate_pu_2.6.2.zip   10.61 MB 1 version


  • 6.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Nov 07, 2019 10:16 AM
    I can see and download the attachment now, thank @Luc Christiaens and @David Michel

    ​​


  • 7.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Nov 08, 2019 12:24 PM
    Edited by Olaf Pape Nov 08, 2019 01:15 PM
    Hi Luc,

    your tool looks very nice. I will give him a try during my next project.

    Are you interessted in a Perl snippet to fetch connection string from data_engine by callback and to decrypt it?
    I have a version that works up to version 8.5.1 and one that works from version 9 and newer.



    Original Message:
    Sent: 11-07-2019 09:47 AM
    From: Luc Christiaens
    Subject: Tool: select anything, generate everything (nimsoft_generate_pu)

    Version 1.6.2 has a new parameter in nimsoft_generic.dat: sql_driver to support using a new ODBC driver compatible with TLS 1.2
    Original Message:
    Sent: 11-07-2019 09:37 AM
    From: David MICHEL
    Subject: Tool: select anything, generate everything (nimsoft_generate_pu)

    It's there and just downloaded it to verify.

    ------------------------------
    Support Engineer
    Broadcom

    Original Message:
    Sent: 11-07-2019 09:31 AM
    From: hitesh sehgal
    Subject: Tool: select anything, generate everything (nimsoft_generate_pu)

    Hi Luc,

    I am not able to see the attachment, could you please upload again.


    Thanks
    Hitesh Sehgal
    Original Message:
    Sent: 09-12-2019 06:35 AM
    From: Luc Christiaens
    Subject: Tool: select anything, generate everything (nimsoft_generate_pu)

    Updated zip file, because the original compiled version missed an include. (all the rest isn't modified)
    Original Message:
    Sent: 09-12-2019 04:51 AM
    From: Luc Christiaens
    Subject: Tool: select anything, generate everything (nimsoft_generate_pu)

    In attachment a Perl tool that was written to make it possible to:
    - select almost every robot/host/device with flexible regex selection parameters
    - generate any command (with the use of variables)

    Examples:
    - deploy the logmon probe 4.11 on all robots that have an older version installed
    - deploy the logmon probe 4.11 on all robots that have an older version installed on all robots with origin xxx
    - deploy the logmon probe 4.11 on all robots that have an older version installed on all robots under hub aaa
    - generate probe_config_set to set proxy_mode=1 on all robots under hub aaa
    - update all robots version to x.xx via distsrv and start distribution only at 10:10 and keep 5 minutes between each update and only 10 robot at the same moment
    - list all robots that don't have the cdm probe installed
    - generate probe_config_set to update user_tag1 on all robots with xxx in the robot name and have probe sqlserver installed 

    nimsoft_generate_pu parameters


    Doc, perl source and compiled version is included in attachment.
    Questions, remarks and enhancements/ideas are welcome

    #nimsoft_generate_pu #tool #generate #uim #perl #command generation ​​​​​​


  • 8.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Nov 09, 2019 08:06 AM
    Hi Olaf, sounds interesting, you can always mail that to me. Thanks, Luc (luc.christiaens10@telenet.be)


  • 9.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Dec 13, 2019 11:21 AM
    Hi Luc,

    Where can i find your attachment? I want to download it and prepare for my new projects next years.

    the planning is to move all the robot from multiple hub to temp shared hub. after original hub is ready need to move all the previous robot from temp shared hub to new dedicated hub.



  • 10.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Dec 13, 2019 11:52 AM
    It's posted above in this thread. 


    ------------------------------
    Support Engineer
    Broadcom
    ------------------------------



  • 11.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Oct 25, 2022 12:22 PM
    Hi David 

    I am needing update de user_tag for 200 robots  adding a word , can i use this archive for it?
     and can you share the attachment. Thanks


  • 12.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Oct 25, 2022 03:20 PM
    Luis,
    It's Luc's not mine. 
    Don't see that listed in the features.
    The utility is attached in this thread. 
    Here is the documentation for making a configuration package:

    Distributing Multiple Probes and Configuration Files as a Super Package

    https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/unified-infrastructure-management/20-4/administering/working-with-infrastructure-manager/general-probe-management-in-infrastructure-manager.html

    Change Probe Configuration Setting On Multiple Robots

    Article Id: 35048

    https://knowledge.broadcom.com/external/article?articleId=35048

    Article title: Editing probe packages (probe configuration files and templates, e.g., .cfx and .cfg, and tips on modification)

    Article Id: 34027

    https://knowledge.broadcom.com/external/article?articleId=34027




  • 13.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Oct 25, 2022 03:55 PM
    I think the suggested example "generate probe_config_set to set proxy_mode=1 on all robots under hub aaa" would do it for you.

    Except it could be to use probe_config_set to set os_user1 to your desired value.

    I've not used the tool but you could give it a try.



  • 14.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Oct 25, 2022 04:03 PM
    And not to pollute this thread with other suggestions, but you could also add the user tag values to the messages with a nas AO profile or preprocessing script.

    That way you can correct the bad data as it arrives and take your time to fix the systems in the field.

    Or, again depending on what the actual change is, you could create an archive package that just changed the one user tag field and deploy that.


  • 15.  RE: Tool: select anything, generate everything (nimsoft_generate_pu)

    Posted Oct 31, 2022 11:23 AM
    Hi Luis,
    Do you need to add a word in an existing os_user1 or can you erase it if there is something existing?
    In case 2 you could use: -sl"y" and -sc, this combination gives you the possibility to create any custom command with a lot of variables available.
    - First try to create the selection criteria so that your 200 servers are selected
    - Once the selection is ok, add the -sc".." custom command
    --- (example with a simple selection criteria of a hub (-hi) )
    perl nimsoft_generate_pu.pl -hi"your_hub" -sl"y" -bh"n" -sc"pu.exe -u $nimuser -p $nimpass /$UIM_Domain/$o_hub/$o_robot probe_config_set controller controller \"os_user1\" \"your_update\" \"\" \"$o_robot\""