Re: 'FORMAT' message written to SNMP log file
Fulko Hew <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAGuV3hPNUQ03f1Kxe7bJULLQ+m_06eWF6H+sFjndj7ye4k+9_A@mail.gmail.com> |
On Wed, Nov 2, 2016 at 2:55 PM, Lemons, Terry <[email protected]> wrote: > Hi > > > > Apologies if this has been asked for; a quick search through the mailing > list archive didn’t find it. > > > > I’ve installed net-snmp-5.7.3-4.2.x86_64 on my SLES 12 SP1 system. > Because security is important, I’ve read up on and (I hope) correctly > configured net-snmp to use SNMPv3 with User-based Security Model. I can’t > use the certificate-bases security model because my Cisco Nexus 9000 > switches don’t support this (I believe) > > > > Here are my two configuration files: > > > > ... snip ... > > > > # cat /etc/snmp/snmptrapd.conf > > ############################################################ > ############### > > # > > # snmptrapd.conf > > # > > # - created by the snmpconf configuration program > > # > > ############################################################ > ############### > > # SECTION: Output formatting for traps received. > > # > > # Output from snmptrapd is formatted according to the > > # rules defined by the formatting configuration directives. > > > > # format2: How SNMPv2 and SNMPv3 traps are formatted. > > # See the snmptrapd.conf manual page for format string details. > > # arguments: formatstring > > > > > format2 FORMAT > > > ... snip ... > > > Eventually, I’ll want to send traps via email. For now, I’m just trying > to see the traps written to a file. > > > > When I execute the test command: > > > > snmptrap -e 0x800000090300059B27CF00 -v 3 -u alerts -a SHA -A > sha-passphrase -x AES -X aes-passphrase localhost 0 coldStart > > > > The only output I see written to /var/log/snmptrapd.log is: > > > > FORMAT > > > > Every time I repeat my test command, ‘FORMAT’ gets written to > /var/log/snmptrapd.log. > > > > So, I’m guessing I have some kind of format error. But my configuration > files and test command syntax seem to follow what I see in the Net-SNMP > wiki (and other) pages. > > > > I’d value any thoughts/suggestions. > If you look at your snmptrapd.conf (above), you'll see that the 'format' of the message to be written is 'FORMAT'. as in: format2 FORMAT the comment above it says you need to look at the man page for details about how to compose the value of FORMAT. ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ 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