Date: Mon, 24 Jan 2011 14:33:16 +0100 From: Harti Brandt <hartmut.brandt@dlr.de> To: Eugene Grosbein <egrosbein@rdtc.ru> Cc: hackers@freebsd.org, "net@freebsd.org" <net@freebsd.org> Subject: Re: Querying bsnmpd through /var/run/snmpd.sock Message-ID: <20110124143206.V47002@beagle.kn.op.dlr.de> In-Reply-To: <4D3C43EE.8060307@rdtc.ru> References: <4D3C43EE.8060307@rdtc.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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> 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> 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. harti
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110124143206.V47002>