Hi all,
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:
I have also tried using another solution, by using snmpset on the nsExtendArgs, but it gave me no Access to do so:
Any idea how to solve this problem?
Thanks.
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:
Code:
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:
Code:
[ampra2@east-lin ~]$ snmpset -v2c -c public $node NET-SNMP-EXTEND-MIB::nsExtendArgs s $JOB
Error in packet.
Reason: noAccess
Failed object: NET-SNMP-EXTEND-MIB::nsExtendArgs
Thanks.