SNMP get response result

"Ballarpure, Akshay (EXT-Tata Consultancy Ser - IN/Hyderabad)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <B54A1F0110356A49A9369F62FB26200119C98632@SGSIMBX006.nsn-intra.net>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.