Querying bsnmpd through /var/run/snmpd.sock
hartmut.brandt at dlr.de
Mon Jan 24 13:54:26 UTC 2011
On Sun, 23 Jan 2011, Eugene Grosbein wrote:
EG>bsnmpd running with mibII module opens local socket /var/run/snmpd.sock
EG>mentioned in snmp_mibII(3) manual page:
EG> The mibII module opens a socket that is used to execute all network
EG> related ioctl(2) functions. This socket is globally available under the
EG> name mib_netsock.
EG>How do I use the socket? I hope to be able to call mib_find_if_sys() function
EG>from another process using the socket. Is there a documentation for this?
The socket works just like a UDP socket with the additional plus that the
daemon knows whether you're root or not. As I said in my previous mail,
easiest would be to implement an additional table with the sysindex as
index and ifIndex as a row.
More information about the freebsd-hackers