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'.