"Wrong Type (should be OCTET STRING): INTEGER: 0"

2006-03-03 Thread Li Juen Hwang



Hi,

   the error message shown on Subject happened after i changed
   the type of my mib variable, MediaTime, from 'ASN_OCTET_STR'
   to 'ASN_INTEGER' in my agent code.
   My agent was running on a remote Linux box. I used 'snmpget'
   on my local Linux to get the value of MediaTime.
   I then updated the SYNTAX of MediaTime from 'DateAndTime'   
   to 'Integer32' on my local mib file: 
/usr/local/share/snmp/mibs/myMIB.mib,

   but it does not fix the problem. (My snmp package is installed in
   /usr/local on remote and local system)
   What did i miss?
   Need help.
   Thanks.


   Li-Juen


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: "Wrong Type (should be OCTET STRING): INTEGER: 0"

2006-03-03 Thread Li Juen Hwang


Hi,

   I turned on debugging and found that snmpget read in
   the old MIB file, myMIB.txt.orig, which was saved in
   /usr/share/snmp/mibs.
   The new correct MIB file under /usr/share/snmp/mibs
   is a link to /usr/local/share/snmp/mibs/myMIB.txt which
   contains the new type.
   After removing myMIB.txt.orig from /usr/share/...,
   the error message disappeared.
   Sign, I seemed always finding the answer *after* throwing
   the question. Sorry if i bothered you.
   Thanks.


   Li-Juen


Li Juen Hwang wrote:




Hi,

   the error message shown on Subject happened after i changed
   the type of my mib variable, MediaTime, from 'ASN_OCTET_STR'
   to 'ASN_INTEGER' in my agent code.
   My agent was running on a remote Linux box. I used 'snmpget'
   on my local Linux to get the value of MediaTime.
   I then updated the SYNTAX of MediaTime from 'DateAndTime'  to 
'Integer32' on my local mib file: /usr/local/share/snmp/mibs/myMIB.mib,

   but it does not fix the problem. (My snmp package is installed in
   /usr/local on remote and local system)
   What did i miss?
   Need help.
   Thanks.


   Li-Juen


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users






---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users