What you are probably looking for is the error code which are contained in the pdu. After verifying that the status==0 (a response was recieved inside the defined time frame) you have to look inside the returned pdu to check for error by inspecting the response->errstat field.

Mark.

----- Original Message ----- From: "Shivali Gupta" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, April 25, 2005 12:05 PM
Subject: Fwd: man page for snmp_synch_response



hi,

where can i find documentation of the function
snmp_synch_response?

look at this code

int status,df;

df =
read_objid("HOST-RESOURCES-MIB::hrStorageType.8",
id_oid1, &id_len1);

snmp_add_null_var(pdu, id_oid1, id_len1);
status = snmp_synch_response(sess_handle, pdu[nm-1],
&response);

in this case "HOST-RESOURCES-MIB::hrStorageType.8"
is
an invalid OID since the valid ones range from
"HOST-RESOURCES-MIB::hrStorageType.1" to
"HOST-RESOURCES-MIB::hrStorageType.6". Question is
how

can i detect that the specified OID is invalid. As
even in this case the value of df = 1(means
successful) and status =0(again means successful).
checking which variable can tell that this OID does
not exist.
(Plz dont suggest me to go through the code of
snmpwalk or snmpget)

thanking u,
anubhuti


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com


__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 21.04.2005




-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 21.04.2005



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to