Use API to pull inventory of servers and set them into maintenance
search cancel

Use API to pull inventory of servers and set them into maintenance

book

Article ID: 241177

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Is there any Nimsoft API to pull inventory of all servers configured on Nimsoft in one go?

Also is there any Nimsoft API to put all bulk Nimsoft servers to maintenance mode and bring them out of maintenance mode in one go?

As we know that we can pull Nimsoft inventory from Admin console and Infrastructure Manager as well as we can put bulk servers in maintenance mode through Operator Console and Infrastructure Manager but both these are time consuming processes.

We are trying to configure some automation scripts for both these processes, Hence we require this information.

Environment

Release : 20.3

Component : UIM - API

Resolution

Use the uimapi

uimapi
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/probe-development-tools/restful-web-services/uimapi-apis/uimapi-call-reference.html

For 20.3.3, use 20.33hf3.

For UIM 20.3 or later, deploy the uimapi package to the Operator Console (OC) robotin your UIM environment to access the uimapi REST APIs.

For example in my lab I access:

http://lvnqaxxxxxx.bpc.broadcom.net/uimapi

and login with my IM credentials which takes me to the page.

  .../uimapi/swagger-ui.html#/

Then you can see and test the uimapi calls. See inventory and maintenance_mode calls.

Then you can use the call(s) to add the inventory list to an active maintenance window, maintenance schedule, etc.

 

Attachments