Re: snmptrap question
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGYCbKKdu04A6iFTsJXUxnnOa5Gvff28M=3-dw3meZwfpw@mail.gmail.com> |
On 11 January 2012 21:31, Simon Chamlian <[email protected]> wrote: > I'm issuing the following snmptrap command: > > snmptrap -v 3 -u testrwauth -a MD5 -A "authentication test" -l authNoPriv > 172.27.57.34 42 MPBC-RMH-MIB::mpbcRMH-Mon-HPU-State What is the definition of the MIB object mpbcRMH-Mon-HPU-State ? Is this defined as OBJECT-TYPE or NOTIFICATION-TYPE? If it's defined as a MIB object (rather than as a Notification), then it's not valid to use it here. > 1) This is returning the ObjectID in the summary of my trap window > (i.e, my trap log has 4 columns: Time, Source, Type and Summary). > > Instead of getting the ObjectdID in the Summary, is it possible to get > the 'Value' this OID? The snmptrap command takes two basic parameters: - an integer (the "sysUpTime" value) - an OID (of a Notification-Type object) This is then optionally followed by a number of OID-type-value triplets (in the same form as would be used for "snmpset") So if the notification definition lists four payload objects, then the snmptrap command should look something like snmptrap .... 42 myTrapOID myTime.1 t 12345 mySource.1 a 1.2.3.4 myType.1 i 99 mySummary.1 s "The Good, the Bad and the Ugly" (with suitable varbind triples for the four payload elements) Yes, the trap can contain the required values, but you'll need to specify these as part of the snmptrap command. > 2) the 42 right after the IP address, what does it do? This is the sysUpTime.0 value. >From the snmptrap(1) man page: snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] uptime trap-oid [OID TYPE VALUE]... In your exapmle 42 is the parameter 'uptime' mpbcRMH-Mon-HPU-State is the parameter 'trap-oid' Dave ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ 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