START {}
do {
print("starting to process instances");
DeviceList = getInstances("Switch"); /*add the Instance type here, e.g., Switch, Router, Host*/
foreach aDevice (DeviceList) {
/*print(aDevice." checked"); Uncomment to list all devices checked*/
instanceObj = object(aDevice);
if (instanceObj->SystemObjectID == ".1.3.6.1.4.1.9.1.501") { /* add the SystemObjectID here */
print(aDevice." has a SystemObjectID of .1.3.6.1.4.1.9.1.501");
}
}
stop();
This script can be run using BASEDIR/IP/smarts/bin/sm_adapter -s [IP Domain Name] scriptname.asl