Thank you so much Alistair for replying. Apparently the passtest script had
a tiny bug. The case statement which checks for a particular OID has been
broken into multiple line but without any line continuation terminator '\'
and which was giving syntax error which i came to know only after i ran the
script individually. Thanks again. I wonder how a test script which was
downloaded for the net-snmp website could have such bugs? And i was silly
as i wasn't checking if the script was actually working and i was just
trying to get the value from the MIB browser!
On Fri, Nov 11, 2011 at 3:19 AM, Alistair Bayley <[email protected]>wrote:
> > I checked even with the
> > wireshark, the get request and response packets are present, however the
> > returned value is "No Such Instance". I even ran the snmpd with
> > -Ducd-snmp/pass and it prints the following line
> > ucd-snmp/pass: pass-running: /bin/sh
> > /home/rvragav/11n/net-snmp-5.7.1/local/passtest -g
> > .1.3.6.1.4.1.8072.2.255.1.0
>
> Is the passtest script being run? Can you verify this by modifying it
> to write to a log file somewhere?
>
> 1. If it is not being run, check the permissions in snmpd.conf. You'll
> need some combination of com2sec/group/view that allows access to the
> OID subtree.
>
> 2. If it is being run, what is it printing on stdout? Please run it
> manually and paste the output in a reply.
> e.g.
> ./passtest -g .1.3.6.1.4.1.8072.2.255.1.0
>
> According to the snmpd.conf man-page, it should print just three lines
> and then exit:
> oid
> type
> value
>
> The oid should be that passed in. The type should be one of: integer,
> gauge, counter, timeticks, ipaddress, objectid, string.
>
> What snmp command are you using to test snmpd? Please show command line.
>
> Alistair
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
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