Monday, March 10, 2008

Send mock SNMP traps

Using Trap Console, you can easily send a mock trap to a destination. I've used it many times to test the SNMP data provider in the ITM Universal Agent or the TEC SNMP adapter to make sure my configuration works. Handy when you can't force a real trap for testing...

What nice about it is you click one button in the Trap Console GUI to compile a MIB, then fill out some test values for the varbinds that it prompts you for, enter a destination ip address, and click Send Trap.

What it helps you test is whether your application can parse a correctly formatted trap, whether it's the SNMP data provider in the ITM UA, TEC SNMP adapter, or some other trap parser. What it won't tell you is whether the agent sending the trap will ultimately send the trap correctly formatted (I've seen cases where Netware and Compaq traps sent garbage in one of the trap varbinds that caused the SNMP parsing application to choke - obviously this won't catch that scenario because you are sending a "mock" trap, not a real one from the agent).

However, the mock trap is based on the MIB, so it's as close as you can get to the real thing.

You can download a trial version of Trap Console from CSCare at:

http://cscare.com

No comments: