DX Unified Infrastructure Management

 View Only
Expand all | Collapse all

Bulk Maintenance using REST

  • 1.  Bulk Maintenance using REST

    Posted Aug 10, 2020 02:05 PM
    Hi All,


    How to place multiple robots in maintenance  which are placed different hubs using Rest API . I dont want to use USM console because i have mixed set IP or Host name which i difficult to use and sometime it doesnt work too.


  • 2.  RE: Bulk Maintenance using REST

    Broadcom Employee
    Posted Aug 10, 2020 02:08 PM
    There is no bulk maintenance using the rest API.
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/probe-development-tools/restful-web-services/webservices-rest-apis/webservices-rest-call-reference/maintenance-calls.html

    ------------------------------
    Gene Howard
    Principal Support Engineer
    Broadcom
    ------------------------------



  • 3.  RE: Bulk Maintenance using REST

    Posted Aug 10, 2020 02:13 PM
    By anyway using SQL query can we schedule maintenance ?  As of now we are using IM console and we have 30 hubs and it is difficult to search robots cross Hubs . Any suggestions are welcome .


  • 4.  RE: Bulk Maintenance using REST

    Broadcom Employee
    Posted Aug 10, 2020 02:26 PM

    There is no bulk configuration for maintenance at all.
    The closest we come is being able to set up a group in USM and add robots to that group.
    The problem sounds like an issue with your IP and naming conventions.

    The only way around this I can think of would be some custom scripting by you to identify the robot in question and then put it into maintenance mode using the rest API call.



    ------------------------------
    Gene Howard
    Principal Support Engineer
    Broadcom
    ------------------------------



  • 5.  RE: Bulk Maintenance using REST

    Posted Aug 11, 2020 01:12 AM
    Edited by Luc Christiaens Aug 12, 2020 02:37 AM
    If you can define some search criteria how these robots can be selected you can perhaps try/use the Perl tool:
    Link to post:
    https://community.broadcom.com/enterprisesoftware/communities/community-home/digestviewer/viewthread?MessageKey=6e99bfe5-0543-45f3-bd6e-33a1f11c825b
    Link to attachment:
    https://community.broadcom.com/enterprisesoftware/viewdocument/maintenance-mode-via-command-line-2
    This tool makes it possible (in 1 run):
    - generic search criteria in regex form 
    - define the maintenance calendar
    - add all selected robots in this calendar


  • 6.  RE: Bulk Maintenance using REST

    Posted Aug 12, 2020 01:49 AM
    Hi!
    I think you have to do some custom scripting. I did that for us with some python-scripting and REST, thats my "bulk"-Maintenance... simply gave a list of hosts to thats script, which crawls through  the domain and hubs (15 in our env.), look into the DB if there is a Maintenance-schedule for that time at all etc...  took some days.
    Dont think you can use something out of the box

    cheers
    Matthias


  • 7.  RE: Bulk Maintenance using REST

    Posted Aug 18, 2020 02:02 PM
    It is possible to share here @Matthias Gruber?​


  • 8.  RE: Bulk Maintenance using REST

    Posted Aug 20, 2020 06:35 AM
    Hi!

    Sorry, I am not allowed to post the whole thing :-(
    But I'll try to put some "excerpts" out of it or/and some sort of "flow" what I am doing.

    cheers
    Matthias


  • 9.  RE: Bulk Maintenance using REST

    Posted Aug 28, 2020 06:48 AM
    Hi!
    Got permission to post my code.... I'll put something up on Monday, if still needed

    cheers
    Matthias


  • 10.  RE: Bulk Maintenance using REST

    Posted Sep 02, 2020 01:28 PM
    Thanks


  • 11.  RE: Bulk Maintenance using REST
    Best Answer

    Posted Sep 03, 2020 02:52 AM
      |   view attached
    No Problem (anymore) ;-)
    Hope it helps in some ways.

    Attachment(s)

    zip
    UIMMT-Community.zip   17 KB 1 version