Please consider moving this question as-is (no need to recreate) to the proper forum for maximum visibility. Questions written to the users' own "Discussions" space don't get the same amount of attention and can go unanswered for a long time.
You can do so by selecting "Move" under ACTIONS along the upper-right. Then search for and select: "Smarts Support Forum".
The way to do this is either via DMCTL or ASL. DMCTL will require you to run the command for each class, while ASL is a scripting language where you can list out all the member of each class with one command after the script is written.
The DMCTL command would be:
./dmctl -s getInstances
You would need to execute this for each class.
An example ASL, lets call it printRouter.asl, would be:
START { .. eol }
do {
print("Routers in topology:"
foreach routerMember ( getInstances("Router") ){
routerMemberObj = object("Router", routerMember);
if(!routerMember->isNull()){
print("\t".routerMember->Name);
}
}
}
This code would cause all the routers to be printed to the screen by name. The script would be executed using the command:
./sm_adapter -s
/printRouter.asl
If you want to find out more about ASL scripting then you should read the ASL reference Guide that is part of the Smarts product documentation. You can use the following ASL reference guide:
You can also try "./sm_tpmgr -s --select=C" to list out all devices. It gives a nice output of a summary, then all devices, what class they are in and a few other details.
christopher_ime
6 Operator
•
1962 Posts
1778
0
Posted January 8th, 2014 23:00
Please consider moving this question as-is (no need to recreate) to the proper forum for maximum visibility. Questions written to the users' own "Discussions" space don't get the same amount of attention and can go unanswered for a long time.
You can do so by selecting "Move" under ACTIONS along the upper-right. Then search for and select: "Smarts Support Forum".
Smarts Support Forum