Re: Snmpd question

2014-02-13 Thread Patrick Lamaiziere
Le Wed, 12 Feb 2014 11:25:58 -0600,
Bales, Tracy tracy.ba...@williams.com a écrit :

Hello,

 Is it possible to have a shell script modify the contents of a user
 defined OID that is setup in snmpd.conf?
 
 I would like to have a cron event run a shell script and that script
 modify the OID values so that a remote SNMP server can monitor the
 changes using SNMP gets and mgets.  I do not want to use SNMP traps.
 
 Thanks for any feedback!

I don't know if snmpd can do this, I use net-snmpd (in ports) to pass
user OID values.

Regards,



Re: Snmpd question

2014-02-13 Thread Stuart Henderson
On 2014-02-12, Reyk Floeter r...@openbsd.org wrote:
 On 12.02.2014, at 18:25, Bales, Tracy tracy.ba...@williams.com wrote:

 Is it possible to have a shell script modify the contents of a user defined 
 OID that is setup in snmpd.conf?
 
 I would like to have a cron event run a shell script and that script modify 
 the OID values so that a remote SNMP server can monitor the changes using 
 SNMP gets and mgets.  I do not want to use SNMP traps.
 
 Thanks for any feedback!
 


 No.

 You would have to restart snmpd, there is no way to change it on runtime.

 But AgentX support might solve this in the future (you still need an shell - 
 AgentX wrapper).

 Reyk




If restarting snmpd is acceptable as an interim measure, you can use
something like:

oid 1.3.6.1.4.1.30155.42.3.1 name testStringValue read-only string $STRING

and start snmpd with 'snmpd -D STRING=somevalue'.



Snmpd question

2014-02-12 Thread Bales, Tracy
Is it possible to have a shell script modify the contents of a user defined OID 
that is setup in snmpd.conf?

I would like to have a cron event run a shell script and that script modify the 
OID values so that a remote SNMP server can monitor the changes using SNMP gets 
and mgets.  I do not want to use SNMP traps.

Thanks for any feedback!



Re: Snmpd question

2014-02-12 Thread Reyk Floeter
On 12.02.2014, at 18:25, Bales, Tracy tracy.ba...@williams.com wrote:

 Is it possible to have a shell script modify the contents of a user defined 
 OID that is setup in snmpd.conf?
 
 I would like to have a cron event run a shell script and that script modify 
 the OID values so that a remote SNMP server can monitor the changes using 
 SNMP gets and mgets.  I do not want to use SNMP traps.
 
 Thanks for any feedback!
 


No.

You would have to restart snmpd, there is no way to change it on runtime.

But AgentX support might solve this in the future (you still need an shell - 
AgentX wrapper).

Reyk