Net snmp version: NET-SNMP version: 5.4.2.1
I am tryting to execute pass through scripts via the snmp agent on Mac server.
I placed these lines in the snmpd.conf file:
# Extensible sections.
#
exec Pages_free /bin/sh /etc/snmp/cat.sh Pages_free
exec Pages_free /bin/sh /etc/snmp/cat.sh Pages_active
exec Pages_free /bin/sh /etc/snmp/cat.sh Pages_inactive
exec Pages_free /bin/sh /etc/snmp/cat.sh Pages_wired_down
exec Pages_free /bin/sh /etc/snmp/cat.sh Translation_faults
exec Pages_free /bin/sh /etc/snmp/cat.sh Pages_copy-on-write
exec Pages_free /bin/sh /etc/snmp/cat.sh Pages_zero_filled
exec Pages_free /bin/sh /etc/snmp/cat.sh Pages_reactivated
exec Pages_free /bin/sh /etc/snmp/cat.sh Pageins
exec Pages_free /bin/sh /etc/snmp/cat.sh Pageouts
exec Pages_free /bin/sh /etc/snmp/cat.sh Object_cache
After recycling the agent, when I call the oids referenced by these scripts,
only the first one is executed. I am not getting any data points for the rest.
I do this all the time with Red Hat Linux and it works well. What is the
problem here?
snmpwalk -v2c -c DJServerInventory 172.26.184.145 .1.3.6.1.4.1.2021.8.1.101
UCD-SNMP-MIB::extOutput.1 = STRING: 4672995328
There should be 10 more output here.
Thanks,
hasan
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders