How do I see traps that are sent to a Smarts AM IP domain?
How do I enable debug-level logging for Smarts AM traps like a "link down" trap?
All supported releases of Smart
<BASEDIR>/IP/smarts/rules/devstat/devstat-snmp-trap.asl
To enable debug-level logging for the traps in the Smarts IP AM domain log, run the following command:
<BASEDIR>/IP/smarts/bin/dmctl -s <AM-PM Domain> put ICF_TopologyManager::ICF-TopologyManager::DebugEnabled TRUENOTE: DebugEnabled is hard coded in the discovery.conf file (<BASEDIR>/IP/smarts/conf/discovery/discovery.conf) to FALSE, so after any restart of the IP domain process, DebugEnabled will be set back to FALSE.
Manually set DebugEnabled = FALSE in the discovery.conf file to TRUE and restart the IP domain process.
You can also do the following that will allow for the enabling of trap debugging in the IP domain log, without having to restart the domain process.
Restart the internal trap driver with the following commands:
Stop the Driver:
dmctl -s <ip-domain> invoke GA_DaemonDriver::Devstat-Trap-Driver stop
Start the Driver:
dmctl -s <ip-domain> invoke GA_DaemonDriver::Devstat-Trap-Driver start
The trap output will appear in the IP domain log file in <BASEDIR>/IP/smarts/local/logs/<domain name>.log file and will look similar to the following:
[February 25, 2015 9:35:17 AM EST +845ms] t@3384 Devstat-Trap-DriverASL_MSG-*-ASLP-devstat/devstat-snmp-trap.asl:.1.3.6.1.4.1.9.9.138.2|6|1|.1.3.6.1.4.1.9.9.138.1.3.3.1.3.53|24|.1.3.6.1.4.1.9.9.138.1.3.3.1.4.53|3|.1.3.6.1.4.1.9.9.138.1.3.3.1.6.53|37836|.1.3.6.1.4.1.733.6.3.18.1.5.0|1|.1.3.6.1.4.1.733.6.3.18.1.6.0|C0 A8 01 DA |