Hi,

The current manpage of snmptrapd.conf doesn't have the right information. The current manpage has the following information.
 as  per  RFC  2576, before being passed to the program.  The
     input format is as follows, one entry per line:

          HOSTNAME
               The name of the host that sent  the  notification,
               as determined by gethostbyaddr(3).

          IPADDRESS
               The IP address of the host that sent the notifica-
               tion.
         VARBINDS
               A list of variable bindings  describing  the  con-
               tents  of  the  notification,  one  per line.  The

But the actual output is like below.
Host: ****hostname***  (UDP: [xx.xx.xx.xx]:xxx)
    DISMAN-EVENT-MIB::sysUpTimeInstance  13:0:54:35.94
              SNMPv2-MIB::snmpTrapOID.0
SNMPv2-SMI::enterprises.42.99999.0.99
     SNMPv2-SMI::enterprises.42.99999.1  "TestTrap"
  SNMP-COMMUNITY-MIB::snmpTrapAddress.0  xx.xx.xx.xx
SNMP-COMMUNITY-MIB::snmpTrapCommunity.0  "public"
       SNMPv2-MIB::snmpTrapEnterprise.0 SNMPv2-SMI::enterprises.42.99999

I have attached the patch which might be used to change the manpage information. Any Evaluators please?


Thanks!
-- Mohan.
--- a/man/snmptrapd.conf.5.def  2006-09-25 01:42:15.000000000 -0700
+++ b/man/snmptrapd.conf.5.def  2014-02-24 04:30:55.947050368 -0800
@@ -199,12 +199,11 @@
 program.
 The input format is as follows, one entry per line:
 .RS
-.IP HOSTNAME
-The name of the host that sent the notification, as determined by
-.IR gethostbyaddr(3) .
+.IP HOSTDETAILS
+The details of the host that sent the notification in the format :
+.IP
+Host : HOSTNAME (PROTOCOL: [IPADDRESS]:PORTNO)
 .br
-.IP IPADDRESS
-The IP address of the host that sent the notification.
 .\"
 .\" XXX - What about non-IPv4 transports?
 .\"
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to