Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by insaniac (Friar)
on Mar 16, 2009 at 11:57 UTC ( [id://750870]=note: print w/replies, xml ) Need Help??


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 (Archbishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://750870]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found