SNMP Extend with Variable as Args
I'm using SNMP extend to run a script on remote machines.
I found it worked perfectly for a script which needs no args on calling.
I tried to call a script using static args and it worked as good as the previous one.
But when I tried to call a script which args is a variable, it didn't work.
This is the conf for this extend:
extend jobcheck /home/ampra2/jobcheck $JOB
I have also tried using another solution, by using snmpset on the nsExtendArgs, but it gave me no Access to do so:
[ampra2@east-lin ~]$ snmpset -v2c -c messagelab $node NET-SNMP-EXTEND-MIB::nsExtendArgs s $JOB
Error in packet.
Failed object: NET-SNMP-EXTEND-MIB::nsExtendArgs
Any idea how to solve this problem?