Re: No ifAdminStatus

lanas <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Le Vendredi, 23 Mai 2008 09:12:37 -0400,
"Ron Rader" <[email protected]> a écrit :

>>   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.

>   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:

[...]
> 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

Thanks, this works.



-------------------------------------------------------------------------
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.