This article explains the following:
For the purpose of: collecting data on trap adapters for troubleshooting Smarts SAM trap adapter and trap services issues
Smarts 10.x / 2.x
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
Furthermore, you can also run the latest sm_monitor against the sm_trapd process as follows:
./sm_monitor -s <trap-adapter> -S trapd
From this directory:
<BaseDir>/SAM/Smarts/bin
You'll want to collect the Smarts SAM adapter trap rate and size of the trap adapter queue by running the following command:
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