linkUpDownNotifications ( unable to test linkdown traps )
anand anand <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAJtbuGKsShTssne1twKEhxeGhRSfm0vd-njtgkMiSZ21VUvtVw@mail.gmail.com> |
We are using net-snmp 5.5.1 Snip from my snmpd.conf *defaultMonitors yes* *#linkUpDownNotifications yes* *notificationEvent linkUpTrap linkUp ifIndex ifAdminStatus ifOperStatus* *notificationEvent linkDownTrap linkDown ifIndex ifAdminStatus ifOperStatus* *trap2sink localhost:162 <http://10.10.10.188:162>* snip of snmpwalk on the ifTable *IF-MIB::ifDescr.1 = STRING: lo* *IF-MIB::ifDescr.2 = STRING: eth0* *IF-MIB::ifDescr.3 = STRING: vboxnet0* * * * * The linkup trap for loopback interface ifconfig lo down ifconfig lo up 2011-08-25 12:57:30 <UNKNOWN> [UDP: [10.10.10.188]:52447->[10.10.10.188]]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1182290) 3:17:02.90 SNMPv2-MIB::snmpTrapOID.0 = OID: IF-MIB::linkUp.1 IF-MIB::ifIndex = INTEGER: 1 IF-MIB::ifAdminStatus = INTEGER: up(1) IF-MIB::ifOperStatus = INTEGER: up(1) The linkup trap for eth0 interface ifconfig eth0 down ifconfig eth0 up 2011-08-25 14:47:08 localhost.localdomain [UDP: [127.0.0.1]:59619->[127.0.0.1]]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1188868) 3:18:08.68 SNMPv2-MIB::snmpTrapOID.0 = OID: IF-MIB::linkUp.1 IF-MIB::ifIndex = INTEGER: 2 IF-MIB::ifAdminStatus = INTEGER: up(1) IF-MIB::ifOperStatus = INTEGER: up(1) Can anyone help me in simulating the linkdown trap. ? Also can the *send_linkUpDownNotification*s function defined in * ifTable_data_access.c* be used for generating these traps ? Thanks -anand ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users