--===============0676891453==
Content-Type: multipart/alternative;
boundary="----=_Part_6544_7671255.1170230886003"

------=_Part_6544_7671255.1170230886003
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
what's the command you typed?

try like these:
snmpget -v1 -c public localhost system
snmpget -v1 -c public localhost sysName.0
etc.

(you should add " rwcommunity public" to snmpd.conf,and restart snmpd)

what will you see after that ?

Jiang

On 1/31/07, sarathy wrote:
>
> Hi,
> Thanks for the reply. I have already tried those you have
> mentioned. 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.
> 3. While specifying incorrect agent port in an snmpget.
>
> Hence is such cases, i thought if net-snmp outputs an error code, i can
> process it accordingly.
>
> Thanks,
> Sarathy
>
>
> On 1/31/07, jiang jilin wrote:
> >
> > Hi,
> > Have you ever run snmpget,snmpgetnext etc. to get a non-exist OID ?
> > just look at the output carefully and maybe you would get what you
> > want.
> >
> > Jiang
> >
> > On 1/31/07, sarathy wrote:
> >
> > > Hi all,
> > > Is there a way to capture SNMP v2 error codes [ noAccess (6)
> > > , wrongType(7), notWritable (17) ... ], through net-snmp commands ( snmpget,
> > > snmpgetnext ... ) ???
> > >
> > > Please do clarify,
> > > Sarathy
> > >
> > >
> > > --
> > > Mob: +91 99001 97505
> > > Off: 080 - 4184 7134
> > >
> > > -------------------------------------------------------------------------
> > > 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?p...rge&CID=DEVDEV
> > >
> > > _______________________________________________
> > > 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/...net-snmp-users
> > >
> > >
> > >

> >

>
>
> --
> Mob: +91 99001 97505
> Off: 080 - 4184 7134
>


------=_Part_6544_7671255.1170230886003
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
what's the command you typed?

try like these:
snmpget -v1 -c public localhost system
snmpget -v1 -c public localhost sysName.0
etc.

(you should add " rwcommunity public" to  snmpd.conf
,and  restart  snmpd)

what will you see  after that  ?

Jiang

On 1/31/07, sarathy <sps.sarathy@gmail.com
> wrote:
Hi,
       Thanks for the reply. I have already tried those you have mentioned. 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.
3. While specifying incorrect agent port in an snmpget.


Hence is such cases, i thought if net-snmp outputs an error code, i can process it accordingly.

Thanks,
Sarathy




On 1/31/07, jiang jilin
<freephp@gmail.com> wrote:

Hi,
Have you ever run snmpget,snmpgetnext etc. to get a non-exist  OID  ?

just look  at the output carefully and maybe you would get what you want.

Jiang

On 1/31/07,
sarathy
<sps.sarathy@gmail.com> wrote:



Hi all,
          Is there a way to capture SNMP v2 error codes [ noAccess (6) , wrongType(7), notWritable (17) ... ], through net-snmp commands ( snmpget, snmpgetnext ... ) ???


Please do clarify,

Sarathy





--
Mob: +91 99001 97505
Off: 080 - 4184 7134


-------------------------------------------------------------------------
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



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









--
Mob: +91 99001 97505
Off: 080 - 4184 7134




------=_Part_6544_7671255.1170230886003--


--===============0676891453==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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?p...rge&CID=DEVDEV
--===============0676891453==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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/...net-snmp-users

--===============0676891453==--