Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SNMP Extend with Variable as Args

Status
Not open for further replies.

ampra2

Technical User
Apr 18, 2011
4
AU
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:
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
Any idea how to solve this problem?

Thanks.
 
I would guess the v2c public does not have write access, hence the noacccess error.

You could try using private it may work or configuring your agent to allow public sets.

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top