in reply to Re: IP address of peer when using NetSNMP::agent
in thread IP address of peer when using NetSNMP::agent

ah no :) I need the IP address of the peer / host connecting to my SNMP agent ;-) Not the interface tabel of a node....

Thanks anyway!

to ask a question is a moment of shame
to remain ignorant is a lifelong shame

  • Comment on Re^2: IP address of peer when using NetSNMP::agent

Replies are listed 'Best First'.
Re^3: IP address of peer when using NetSNMP::agent
by zentara (Cardinal) on Mar 16, 2009 at 12:04 UTC
    Just as a guess as to where to look, it would seem that the module must have a way to access the IO::Socket object it uses ( if it uses IO::Socket ), once you have the $sock, you can do my $remote $ip = $sock->PeerAddr of the IO::Socket::INET module.

    I'm not really a human, but I play one on earth My Petition to the Great Cosmic Conciousness