Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to send an SNMP V2C Trap

by spadacciniweb (Deacon)
on Jan 25, 2006 at 15:52 UTC ( #525476=note: print w/ replies, xml ) Need Help??


in reply to How to send an SNMP V2C Trap

1.3.6.1.6.3.1.1.5.1??

In my lan
snmpwalk -c my_community 172.17.0.21 1.3.6.1.6.3.1.1.5.1
responds:
coldStart No more variables left in this MIB View (It is past the end of the MIB tree)

Ahh... ok!!
I have viewed this documentation:
http://net-snmp.sourceforge.net/docs/mibs/snmpMIB.html

However, you must use

use Net:SNMP
The documentatios is here:
http://net-snmp.sourceforge.net/tutorial/tutorial-5/commands/index.html

An example is in this application (GPL software) http://sourceforge.net/projects/mal


Comment on Re: How to send an SNMP V2C Trap
Download Code
Re^2: How to send an SNMP V2C Trap
by w3ntp (Beadle) on Jan 26, 2006 at 14:48 UTC
    I have defined the following PDU for the SNMP ver 2c trap as

    $sysUpoid="1.3.6.1.2.1.1.3.0"; $svSvcName="1.3.6.1.6.3.1.1.4.1.0"; $ColdStartoid="1.3.6.1.6.3.1.1.5.0"; @snmpColdTrap=qw($sysUpoid TIMETICKS 200 $svSvcName OBJECT_IDENTIFIER $svSvcName $ColdStartoid OBJECT_IDENTIFIER $ColdStartoid);

    Perl is complaining about the OBJECT_IDENTIFIER. Not Sure what to do to correct this. The perl docs state the first two Varbinds are sysUpTime and snmpTrapOID before the coldstart OID. Not sure what the second varbind does? thanks W3NTP

    Edit: g0n - code tags

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://525476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-08-01 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (0 votes), past polls