Help!

Larry Pare (pare@apollo.hp.com)
Mon, 06 Jan 1997 08:23:15 -0500

I have a device (managed node) that sends notification
messages via SNMP traps to port 162 of the management node.

Using Scotty, I've been able to catch the trap with a trap
handler and successfully decode the notification message.

My problem is this, I want to eliminate the managed node
and simulate its behaviour by generating trap messages
from a tcl script. I dont know how to use the scotty
trap calls to do this. For instance I tried:

set s [snmp session -address $HOST -port 162]
$s trap coldStart {{sysDescr.0 "$data1"}}

But this does not work!

Any help on how to do this would be appreciated!

Regards,
pare

The notification message coming from the managed node
looks like the following:

{1.3.6.1.2.1.1.3.0 TimeTicks {0d 16:54:38.29}}
{1.3.6.1.6.3.1.1.4.1.0 {OBJECT IDENJTIFIER} enterprises.1294.0.1}
{1.3.6.1.4.1.1294.2.1 {OCTET STRING} 4F:63:74:20:33:31:20:30:37:3A:34:39:3A:31:
33:20:63:6F:62:72:61:33:38:20:67:77:63:6F:6E:74:72:6F:6C:3A:20:31:30:39:20:72:
65:2D:72:65:61:64:69:6E:67:20:6 7:77:70:61:73:73:77:64:20:63:6F:6E:66:69:67:
75:72:61:74:69:6F:6E:20:66:69:6C:65}