To fetch real-time data, all you have to do is to use a simple CT_Get SOAP call. For example, if you want to fetch a Disk related attributes for an Windows OS agent, the following SOAP call will do.
<CT_Get><userid>sysadmin</userid><password></password><object>NT_Logical_Disk</object><target>Primary:MYHOST:NT</target></CT_Get>
This will fetch the real time data from the OS agent running on MYHOST.
Remember the above query gets all the information for NT_Logical_Disk attribute group,not just disk usage and it is your responsibility to filter out what you need.
The attributes fetched during the above SOAP calls are,
Of course, if you're not a fan of XML parsing and want to issue the above SOAP call from your scripts, you could use gbscmd to fetch the information.
gbscmd CT_Get --server --object NT_Logical_Disk --target Primary:MYHOST:NT
Hope you find this information useful.
No comments:
Post a Comment