To successfully remove a Smarts device from Watch4net APG, you must do the following:
- Remove the device from Smarts.
- Remove the device from APG.
- Update the flat table used by Tomcat to read APG data.
The following sections explain how to do each of these tasks.
Removing the device from Smarts:
To remove a device from Smarts, run the following dmctl command against all Smarts domains:
<SmartsBaseDir>/dmct s INCHARGE-AM-PM invoke <class>::<instance> remove
Example
dmctl s INCHARGE-AM-PM invoke Router::foo remove
IMPORTANT! The device needs to be removed from all the Smarts domains.
Removing the device from APG
To remove the device from APG, do the following:
- Stop Default Collector Manager Service. In Windows, use cmd 'run as adminstrator mode' and run the following
./manage-modules.sh (or cmd) service stop collector-manager Default 2. In APG, go to:
APG administration > Modules > Management of Database Metrics
- Delete all metrics associated with device. To do this, search for the device name under Filter, select all, then delete.
- Start Default Collector Manager Service. In Windows, use cmd 'run as adminstrator mode' to run the following:
./manage-modules.sh (or cmd) service start collector-manager Default
Manually run the import properties task
If you want to see the change to take effect immediately, refresh the database flat table where tomcat reads the APG data from as follows:
- Navigate to administration/centralized management/scheduled tasks/database
Run : import properties task
2. Restart the Tomcat service:
<APGbase>/bin/apg-tomcat-default restart