Hi,
I'm using the "pass through" extension provided by the snmpd. And I'm using
the passtest script present inside the local directory with no changes made
to it and still I'm not able to get the values printed in the command line
and here is how my setup is. I've a virtual machine running slax(linux with
ip address 192.168.0.53) with snmpd installed in it. And from the windows
machine (ip address 192.168.0.99) using iReasoning software I query the
variable netSnmpPassString and others under netSnmpPassExamples. All of
them return the same output "No Such Instance". 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
Hence it is working correctly but it doesn't print any value as present
inside the script. My snmpd.conf file is as below. The extend commands
present in the snmpd.conf file works and I'm able to view the value in the
nsExtendOutput1Table. What is going wrong with pass through extension? Plz
help.
snmpd.conf
----------------------------------------------------
agentAddress udp:192.168.0.53:161
#view systemonly included .1.3.6.1.2.1.1
#view systemonly included .1.3.6.1.2.1.25.1
rocommunity public
rwcommunity private
sysLocation Sitting on the Dock offff
sysContact Me <[email protected]>
# Application + End-to-End
layers
sysServices 72
extend test1 /bin/echo Hello, world!
extend-sh test2 echo Hello, world! ; echo Hi there ; exit 35
pass .1.3.6.1.4.1.8072.2.255 /bin/sh
/home/rvragav/11n/net-snmp-5.7.1/local/passtest
Regards,
R.Vasanth Ragavendran.
------------------------------------------------------------------------------
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