Here is a commonly asked question from our customers. How do I get the real time agent data exported to excel format (CSV) from command line for further analysis? Even though this can be done from Portal using a combination of logical workspaces and table view, it is real simple with gbscmd tool.
With GBSCMD, you just invoke ct_get subcommand providing agent name and attribute group you're interested in. For example, if you want to get the list of current disk usage information from a Windows OS agent, you can use the following command.
./gbscmd ct_get --auth itm62.auth --Object NT_Logical_Disk --target Primary:ITM62:NT >> disk_usage.csv
If you would like to get this information on set of windows agents, you can easily loop thru them one after another like the example below.
for agent in `cat myagents.list`
do
./gbscmd ct_get --auth itm62.auth --Object NT_Logical_Disk --target $agent >> disk_usage.csv
done
Hope you find this tip useful.
do
./gbscmd ct_get --auth itm62.auth --Object NT_Logical_Disk --target $agent >> disk_usage.csv
done
Hope you find this tip useful.
2 comments:
Great stuff as usual Gulf Breeze. Your contributions to the ITM community are greatly valued.
Thank you very much for your appreciation!
-venkat
Post a Comment