Hello,
I would like to know the response of snmp get in case of failure. We are 
getting zero in most of the success cases.
If we can get 1 in case of timeout,  shall we use value of "$?" as snmp success 
and failure (0 and 1 respectively) on Solaris box ? please reply asap. Thanks


TCSH02-fm-1# /opt/MOTcagt/bin/snmpget -v3 -u admin -a SHA -A 
09618538758384384367 -x AES -X 86095694849620176636 -l authPriv  27.182.4.222 
1.3.6.1.2.1.1.5.0
SNMPv2-MIB::sysName.0 = STRING: NESIM-60001-ENodeB980
TCSH02-fm-1# echo $?
0
TCSH02-fm-1# /opt/MOTcagt/bin/snmpget -v3 -u admin -a SHA -A 
09618538758384384367 -x AES -X 86095694849620176636 -l authPriv  27.182.4.222 
1.3.6.1.2.1.1.5.01
SNMPv2-MIB::sysName.1 = No Such Object available on this agent at this OID
TCSH02-fm-1# echo $?
0
TCSH02-fm-1# /opt/MOTcagt/bin/snmpget -v3 -u admin -a SHA -A 
09618538758384384367 -x AES -X 86095694849620176636 -l authPriv  27.182.18.51 
1.3.6.1.2.1.1.5.0
SNMPv2-MIB::sysName.0 = STRING: TCSH02-fm-sb
TCSH02-fm-1# /opt/MOTcagt/bin/snmpget -v3 -u admin -a SHA -A 
09618538758384384367 -x AES -X 86095694849620176636 -l authPriv  27.182.18.51 
1.3.6.1.2.1.1.5.0
SNMPv2-MIB::sysName.0 = STRING: TCSH02-fm-sb
TCSH02-fm-1# /opt/MOTcagt/bin/snmpget -v3 -u admin -a SHA -A 
09618538758384384367 -x AES -X 86095694849620176636 -l authPriv  27.182.18.48 
1.3.6.1.2.1.1.5.0
snmpget: Timeout
TCSH02-fm-1#  echo $?
1

--
With regards,
Akshay



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
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
  • SNMP get resp... Ballarpure, Akshay (EXT-Tata Consultancy Ser - IN/Hyderabad)
    • Re: SNMP... Joel Hansell
      • RE: ... Ballarpure, Akshay (EXT-Tata Consultancy Ser - IN/Hyderabad)
        • ... Joel Hansell

Reply via email to