RE: send a trap and location the specify column in multiple rows(the sametable)
"Mike Ayers" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <83E753BE7B6A324ABB336245BAF1DAAC0E523ECA@mailserver.metatv-ds.metatv.com> |
> From: Alexander King [mailto:[email protected]] > Sent: Friday, April 23, 2010 3:06 AM > 1.where I can fill with the warning information when the trap send? It depends - see below. > 2.If the trap OBJECTS is a scalar,I can configure snmpd.conf,use DisMan > monitor the value,and send trap,The NOTIFICATION-TYPE defination is not > necessary,is it right? Correct - it is already defined as part of DisMan. > But how do I implement this method if I want to monitor the value that > is a column in one table? I believe the DisMan table can only moitor scalars. > 3.How can I exactly location the column in multiple rows(the same > table)when I send a trap? > just a example,a piece of my mib file: > HostInterfaceFCEntry ::= > SEQUENCE { > fcConnections > Integer32, > fcPort > DisplayString, > fcStatus > INTEGER, > fcWWN > DisplayString, > fcSpeed > Counter32, > fcTopology > Unsigned32 > } > > and my trap: > fcTrap NOTIFICATION-TYPE > OBJECTS { > fcPort, > fcStatus > } > STATUS current > DESCRIPTION "This is just a demo" > ::= { trapTestingTrapTwoPrefix 1 } > > > Here I want to the trapd routine can tell the receiver which fcport's > status changed,so I put two column values in OBJECTS domain,but in my > prototype implement,I failed. > Who can tell me how to implement this? The same way you would implement a get for the same object. If you want to emit the notification for certain values of the object, or just whenever it changes, put the check in the commit phase of your set handler. HTH, Mike ------------------------------------------------------------------------------ _______________________________________________ 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