Opened 16 years ago

Last modified 16 years ago

#23 new defect

Zoek uit hoe snmp scripts remotely uitgevoerd kunnen worden

Reported by: richardvm Owned by: somebody
Priority: major Milestone: convert ssh script into snmp scripts
Component: component1 Version:
Keywords: Cc:

Description


Change History (1)

comment:1 by richardvm, 16 years ago

[richard@hermes ~]$ snmpwalk -v2c -c public rabo .1.3.6.1.4.1.2021.8
UCD-SNMP-MIB::extIndex.1 = INTEGER: 1
UCD-SNMP-MIB::extNames.1 = STRING: FooRVM
UCD-SNMP-MIB::extCommand.1 = STRING: /usr/local/share/snmp/foo.sh
UCD-SNMP-MIB::extResult.1 = INTEGER: 0
UCD-SNMP-MIB::extOutput.1 = STRING: 17101984
UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0)
UCD-SNMP-MIB::extErrFixCmd.1 = STRING:


/usr/local/share/snmp/foo.sh:
#!/bin/sh

echo "17101984";


cat /usr/local/share/snmp/snmpd.conf
...
exec FooRVM /usr/local/share/snmp/foo.sh


This method would mean that the script is present on each node, not really my preferred way.

Note: See TracTickets for help on using tickets.