List resources/volumes for agent managed nodes via SWIS API (Powershell)

Hi all,

I work in an business which is too locked down for WMI, thus we use agents for virtually everything. I'm working on automating the node creation, agent install, volume and interface discovery and editing of the custom properties.

While creating a short script to edit the custom properties for Volume Threshold monitoring, I realised I needed to get the node to discover the volumes in the first place (working backwards is a terrible idea) for me to actually edit the custom properties for said volumes. This is where my problem started.

I cant seem to figure out a way of initiating the "List Resources" through the API. This has been asked many times before, I am well aware, but no working answers have been presented for an agent based platform. There's a verb to list the interfaces, and add them, but seemingly volumes are impossible via anything other than SNMP using the Network Discovery tool.

Unless there is a way of automating the process of adding the node as SNMP, discovering the volumes using the Discovery Tool, and then installing the agent and using the API to change all the monitoring over to agent?

I'm looking for any option here, Invoke, CRUD, Rest, preferably using Powershell but if you have accomplished it in another language, post your code anyway and I'll figure it out emoticons_grin.png

PS - I work almost exclusively with SAM, so servers etc. I can't use solutions that only work with NPM.

Thanks in advance,


Parents Reply Children
No Data