RE: No ifAdminStatus

"Ron Rader" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <6BA04340F278EB47AB42AAF2EED9CBBA02A6446B@dellserver.cipheroptics.local>
> From: lanas [mailto:[email protected]]


>   I'm doing a test on linkUpDownNotifications and I don't receive any
> ifIndex, ifAdminStatus, or ifOperStatus when a link is brought up or
down.

> snmpd.conf is:
> 
> smuxsocket 127.0.0.1
> sysobjectID .1.3.6.1.4.1.15004.3.1
> rwcommunity test_rw
> agentSecName testunit_internal
> rouser testunit_internal
> linkUpDownNotifications yes

  I'd think you'd need a createUser statement somewhere in your
configuration tree, but linkUpDownNotifications is just a macro defined
as a set of more atomic configuration actions.  My link traps were
similar to yours while I used that macro.  Try something along these
lines in your snmpd.conf and then adapt to your specific requirements:

trapcommunity public
createUser _internal MD5 "test key"
rouser _internal
iquerySecName _internal
notificationEvent linkUpTrap linkUp ifIndex ifAdminStatus ifOperStatus
notificationEvent linkDownTrap linkDown ifIndex ifAdminStatus
ifOperStatus
monitor -r 5 -e linkUpTrap "Generate linkUp" ifOperStatus != 2
monitor -r 5 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
trap2sink 192.168.1.1

  The notificationEvent statements will ensure that your traps contain
the OIDs you specify.

  Ron



The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.