Hostname vs. IP sent in traps

"David Arthur" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <000b01c79c8b$7907a5c0$500010ac@gx520>
Hello all,

I am using Net-SNMP 5.3.1 libraries from an embedded AgentX subagent on Suse
Linux Enterprise Server 9.

I use the send_v2trap function to send traps from the embedded subagent.
1) Is there a way to send a hostname (rather than IP address) using the
snmp_varlist_add_variable()/send_v2trap() scheme?

2) If I use the snmptrap command and specify the hostname I am sending it
from, the IP address always appears at the management station end. Is this
behavior determined by the management station, or is the hostname resolved
to an IP and *then* sent in the trap?

Thank you in advance for any insight on this!
Dave A.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.