I agree that exposing packages with versions is a security risk. A better
example could be this:
Create script in /tmp called test.sh containing:
#!/bin/bash
#for x in `rpm -qa`;do rpm -qi $x|head -1|awk '{print $3}';done
rpm -qai|grep "Name : "|awk '{print $3}'
Make sure test.sh is executable:
chmod 755 /tmp/test.sh
Append the following line to snmpd.conf:
exec .1.3.6.1.2.1.25.6.3.1.2 Test /tmp/test.sh
Restart snmpd:
service snmpd restart
I am still running into the 1024 character output limitation though. If anyone
figures out how to get around this please let me know.
Thanks
------------------------
Michael Beachler
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=8560#8560
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users