On Tue, Sep 14, 2010 at 8:49 PM, Robert Story <rst...@freesnmp.com> wrote:

> On Tue, 14 Sep 2010 17:13:23 +0300 xor wrote:
> XE> Like that :
> XE>
> XE> > XE> # snmpd -f -c /etc/snmp/snmpd.conf -DALL
>
> sorry, didn't see that part!  That will definitely read snmpd.conf twice,
> as /etc/snmp/ is one of the default locations... so try droping the
> '-c /etc/snmp/snmpd.conf' part...
>

Thanks that solved the problem but i still can not query my modules ,none of
them. Here is the log when starting the snmpd :

snmpd -f -DALL


# tail -f /var/log/snmpd.log | grep skynetPortInteger
read_config: /etc/snmp/snmpd.conf:490 examining: dlmod skynetPortInteger
/home/makkalot/scalar_get_int/skynetPortInteger.so
read_config: /etc/snmp/snmpd.conf:490 examining: dlmod skynetPortInteger
/home/makkalot/scalar_get_int/skynetPortInteger.so
read_config: Found a parser.  Calling it: dlmod / skynetPortInteger
/home/makkalot/scalar_get_int/skynetPortInteger.so
dlmod: dlmod_load_module skynetPortInteger:
/home/makkalot/scalar_get_int/skynetPortInteger.so
handler:inject: injecting instance before skynetPortInteger
handler::register: Registering skynetPortInteger
(::serialize::scalar::instance::skynetPortInteger) at
SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger
register_mib: registering "skynetPortInteger" at
SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger with context "(null)"
wtest: oid in: SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger
wtest: oid cmp: SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger  --- off = 7, in
off = 7 test = 1
wtest: oid cmp: SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger  --- off = 7, in
off = 7 test = 1
wtest: oid cmp: SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger  --- off = 7, in
off = 7 test = 1


here is when i query  my variable :

dumpv_recv:                ObjID:
SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger.0
wtest: oid in: SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger.0
wtest: oid cmp: SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger  --- off = 7, in
off = 7 test = 1
results:        SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger.0 = No Such
Object available on this agent at this OID
dumpv_send:            ObjID: SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger.0

Here is the result : (I can query system and other variables succesfully
...)

[makka...@makkalot-tux nfsroot_marvel]$ snmpget -t 10 -v3 -u makkalot -l
authNopriv -a MD5 -A md5passw localhost skynetPortInteger.0
SKYNET-SNMP-EXAMPLES-MIB::skynetPortInteger.0 = No Such Object available on
this agent at this OID


Any ideas ?
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to