in reply to Send SNMP trap
I've a couple quick thoughts/questions on this...
Check where your building your Net::SNMP session, and verify what version of SNMP you are using. The docs for Net::SNMP, at the end of the traps section, states:
NOTE: This method can only be used when the version of the object is set to SNMPv1.
One other thing that poped into my head, is networks. I hope that your two machines are on the same subnet as your manager... Most routers drop snmp by default, just a thought. Should have read your comment more carefully, Doah!
Update:Have you tried changing:
my @oids = ($svSvcName, OCTET_STRING, $message);
To:
my @oids = ($svSvcName, 0x01, $message);
A longshot, but I'm rather inexperienced with sending traps. LR Whip me, Beat me, Make me use Y-ModemG.
my @oids = ($svSvcName, OCTET_STRING, $message);
To:
my @oids = ($svSvcName, 0x01, $message);
A longshot, but I'm rather inexperienced with sending traps. LR Whip me, Beat me, Make me use Y-ModemG.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Send SNMP trap
by tertullian01 (Acolyte) on Sep 23, 2003 at 22:04 UTC | |
by zengargoyle (Deacon) on Sep 23, 2003 at 22:37 UTC | |
by tertullian01 (Acolyte) on Sep 23, 2003 at 22:58 UTC |
In Section
Seekers of Perl Wisdom