Remove Servers from BigFix

Hi All,

I am working on a server decommission. During decommission we have process of remove server from BigFix. How to automate removal of server from IBM BigFix tool.

I am trying to integarte CA ITPAM & BigFix. Please suggest.

Thanks,
Amala

Hello!

You can leverage the REST API to automate the deletion of computers from BigFix. Please see the DELETE method against the /api/computer/{computer id} resource described here: https://developer.bigfix.com/rest-api/api/computer.html.

You will need to provide the ComputerID of the endpoint you would like to delete. This can be referenced from the endpoint itself, or can be determined based on a query to BigFix (for instance via /api/query).

Thanks for the update.

Can you help me with any of the documents related to REST webservices where in i can look for some examples to work on this.

If anyone actually accomplished automating the removal of BES Computers during decommission, please post your solution.

Thanks,
Eric

@eric.laprad

I just answered a similar question this morning which might help you.

https://forum.bigfix.com/t/easily-work-with-bigfix-apis-in-powershell/29483/7

Depending upon how your doing your decommissioning, if you have the ability to call out to the REST API, you can automate this.

2 Likes

It’s a 2 part thing. You have to query for the ID:
ids of bes computers whose(name of it as lowercase = "someMachine" as lowercase)

Then you run DELETE command http://server:52311/api/computer/{id}

I’m guessing that’s what @MDMike’s script does.

2 Likes

Thanks guys!

I appreciate the feedback.