> hello Bob
> 
> I ran your sub-agent on my system and I only needed to add this at the
> top:
> 
> use NetSNMP::ASN qw(ASN_OCTET_STR ASN_INTEGER);
> 
> I was getting this in the snmpd logs:
> 
> "May 31 07:35:24 xone snmpd[5680]: unknown var value type: 0 "
> 
> agent was complaining about not knowing what ASN_OCTET_STRING was :)
> 
> you should be ok now....

I also had to remove the trailing ".0" from the code.... like this:

if ($oid == new NetSNMP::OID(".1.3.6.1.4.1.8072.9999.9999.7375.1")) {
        $request->setValue(ASN_OCTET_STR, "hello world!");
}

I'm quite sure you really don't want the ".0" in the end of the OID's by
I'm not 100% sure....

U need to have a closer look

Joao



------------------------------------------------------------------------------

_______________________________________________
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

Reply via email to