Re: SNMP error code capture ??
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 31/01/07, sarathy <[email protected]> wrote: > But the problem is NET-SNMP does not report error messages properly. It > reports the same error "Timeout: No reponse from server:161" for the > following 3 cases: > > 1. While specifying incorrect community string in snmpget for version 1 and > 2c. > 2. While specifying incorrect password/passphrase in snmpget for version 3. That's correct. This is how the SNMP protocol is designed. Please see the FAQ entry Why doesn't the agent respond? http://www.net-snmp.org/wiki/index.php/FAQ:Applications_04 This is basically due to the access control settings of the agent. It will refuse to talk to an unauthorised client. > 3. While specifying incorrect agent port in an snmpget. That's because there's nothing to respond. If you direct a request to a host/port where there's nothing listening, then of course you won't get a response! Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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