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

I'm not sure how the module actually works, but SNMP info seems to do it.

I'm not really a human, but I play one on earth My Petition to the Great Cosmic Conciousness
  • Comment on Re: IP address of peer when using NetSNMP::agent

Replies are listed 'Best First'.
Re^2: IP address of peer when using NetSNMP::agent
by insaniac (Friar) on Mar 16, 2009 at 11:57 UTC
    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

      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