Re: Using Unix socket domain for SNMP client (snmpget)

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Tue, 25 Apr 2006 19:33:55 +0300, "Makavy, Erez (Erez)" <[email protected]> said:

Erez> I'd like to perform an SNMP get query to the localhost master
Erez> agent (onthe same machine), and do it over the unix socket
Erez> domain.

First, it's probably not wise to query your master agent...  You
should instead put the code you're doing into the master agent
instead...  But, it will work if done carefully.  Watch out for
infinite loops though.
 
Erez> I guess I should specify, somewhere in the session structure, which
Erez> socket to use.
Erez> 1) Where?

The host name is a special parsed token that differs from transport to
transport.  For unix sockets, use the unix:/path/to/socket format.
 
Erez> 2) Shouldn't the master agent be configured for a specified socket? how?

Same way.  On the command line use unix:/path/to/socket at the end of
the command line args as well.
-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.