On Jun 23, 2011, at 12:31 PM, Wes Hardaker wrote:
>>>>>> On Thu, 23 Jun 2011 12:20:12 -0400, Jeff Johnson <[email protected]> said:
>
>>> 3) Needs to be configurable so that the system can do the "install in
>>> cron" thing. Rough config tokens needed:
>>>
>>> RPMDirectory /path/to/it
>>> RPMFrequency 1d (or directory to stat?)
>>> RPMCommand /path/to/script/or/whathaveyou
>>>
>
> JJ> These goals seem opposed imho. The cron script is proposed
> JJ> solely for a _COMPLETE_ solution and is otherwise handled
> JJ> better directly in RPM to synchronously maintain the directory
> JJ> based store.
>
> Sure, a file based cached managed completely by RPM would be ideal. I
> agree. From the Net-SNMP point of view, though, we simply need them to
> be there one way or another for the system to be functional. We also
> need to support older systems, not just the newer ones, so we need to be
> able to create an archive ourselves if one doesn't exist. As a long
> term solution, yes, RPM will hopefully self-maintain it and 10 years
> from now everyone will be using a new RPM. Maybe.
>
I can/will give you a cron script then.
(aside)
Because RPM uses POPT its quite feasible to retrofit a
--rebuildhrmib
option to all versions of rpm, even legacy. Then there
is no cron "script" per-se whatsoever, and RPM (including
legacy versions) is responsible for maintaining the
"installed software base" and net-snmp is responsible for
reporting that info through the HR-MIB.
Presumably sysadmin's can arrange for a cron script to invoke
rpm --rebuildhrmib
on whatever time scale they choose important to their own reporting needs,
including invoking "rpm --rebuildhrmib" at the end of any upgrade operation.
And there's finally a clean separation of responsibilities without the rather
difficult -lrpm and Berkeley DB locking deadly embrace.
hth
73 de Jeff
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders