I have a need to get the IP address (v4 and/or v6) displayed in the snmptrapd 
logs.

- I disable the hostname resolution with the ā€˜-n’ switch. 
- I print %B

The resulting string is ā€œ[xxx.xxx.xxx.xxx]:161->[yyy.yyy.yyy.yyy]ā€ where I 
would expect to get the just the address (be it ipv4 or ipv6). 
Is this a bug? 
The snmptrapd docs say that %B should be giving the source address. 
--
Raymond P Chudzinski <rchudzin...@us.ntt.net <mailto:rchudzin...@us.ntt.net>>
ISS Engineer, Sr
NTT Communications Global IP Network

This email message is intended for the use of the person to whom it has been 
sent, and may contain information that is confidential or legally protected. If 
you are not the intended recipient or have received this message in error, you 
are not authorized to copy, distribute, or otherwise use this message or its 
attachments. Please notify the sender immediately by return e-mail and 
permanently delete this message and any attachments. NTT America makes no 
warranty that this email is error or virus free.  Thank you.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to