Smarts IP: How do I create a list of devices in a Polling Group using dmctl commands?
search cancel

Smarts IP: How do I create a list of devices in a Polling Group using dmctl commands?

book

Article ID: 327705

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How do I create a list of devices in a Smarts IP Polling Group using dmctl commands?



The following sections present the commands to create a list of devices in a Smarts IP Polling Group and to output the list to a file.

Listing Smarts IP Polling Group devices using dmctl
To list the Configuration polling group devices in the Smarts IP domain, use the following command:

./dmctl s <IP Domain Name> getI Configuration

Example
./dmctl -s INCHARGE-AM-PM get Configuration::CFG-Polling Groups/Routers"::Configures | tr ' ' '\n'

[The above command outputs the list on screen]

Ouput list to a file
If needed, you can have a list created as a file by adding the >[outputfilename] operator to the end of the above command as follows:

./dmctl -s <Domain Name> get Configuration::CFG-Polling Groups/<Name of Group>"::Configures | tr ' ' '\n' ><outputfilename>.txt

Example
./dmctl -s INCHARGE-AM-PM get Configuration::"CFG-Polling Groups/Switches"::Configures | tr ' ' '\n' >outswitch.txt

[The above command creates a file with the list of devices in a file called outswitch.txt]