RE: v5.4.1 traps generated at snmpd startup

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

> >  I realize this is nearly a FAQ, but my v5.4.1 snmpd agent generates a
> > whole host of traps at startup (linkUp/Down, authenticationFailure,
> > etc.) when a trap host is configured.

> You shouldn't be getting authFail traps.
> I suggest you take a close look at how the agent is configured.

  Here's an example of my agent configuration:

trapcommunity public
createUser _internal MD5 "<none of your beeswax>"
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
authtrapenable 1
sysLocation RLR desk
sysContact dunbugme
sysName CEP10_CEP1.4
rocommunity "rocommunity"
rocommunity "rocommunity2"
trap2sink 192.168.1.145

  I just restarted the agent, it generated nsNotifyShutdown and coldStart almost immediately (as expected).  About 10-15 seconds later, it generated authenticationFailure, and a whole host of linkUp/Down traps for all interfaces in the stack.

  I don't see any obvious problem with the configuration.

> linkUp/Down processing is based on the "monitor" directive.
> Check the snmpd.conf(5) man page description of "monitor" - in
> particular, the '-S' directive.

  Ah ha, that looks juicy, didn't notice that before.  I'll give it a try:

"-S   indicates that the monitor expression should _not_ be evaluated when the agent first starts up."

> >  Is there any way on any version to suppress nsNotifyShutdown and
> > coldStart traps while leaving trap hosts configured?
> 
> Edit the code, and recompile the agent.

  I see.  Does snmpd.conf handle any comment delimiters?  I'd like to comment the trap2sink lines when necessary in our application, if that's possible.  Couldn't see anything about comments in the man page.

  Thanks, Dave.

  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.

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