To collect sm_monitor data on the trap adapter you can use the following command:
<BaseDir>/SAM/Smarts/bin/sm_monitor -b localhost:426 -s <TRAP-ADAPTER Domain Name> -S trapd -z -k -m mem -l 3 run-all
- The -S trapd command argument specifies that you are running a trap adapter.
- The -l 3 (lowercase "L" 3) command argument tells the command to loop 3 times.
- When using this command, it is recommended to set up a cron job or scheduled task to run the sm_monitor command every 15 minutes
Furthermore, you can also run the latest sm_monitor against the sm_trapd process as follows:./sm_monitor -s <trap-adapter> -S trapdTo collect the Smarts SAM adapter trap rate and size of the trap adapter queue, run the following command from the
<BaseDir>/SAM/Smarts/bin directory:
dmctl -s <TRAP-ADAPTER DOMAIN NAME> get SNMP_TrapManager::SNMP-Trap-Manager
To collect information specifically regarding trap adapter threads, queues, stacktrace, and locktable information, use the following commands:
./dmctl - s <trapd_domain-name> exec dmdebug --threads --output=threads.txt
./dmctl - s <trapd_domain-name> exec dmdebug --queues --output=queues.txt
./dmctl - s <trapd_domain-name> exec dmdebug --stacktrace --output=stacktrace.txt
./dmctl - s <trapd_domain-name> exec dmdebug --locktable --output=locktable.txt