On Jun 18, 2011, at 4:04 AM, Peter Volkov wrote:

> В Птн, 17/06/2011 в 07:57 -0700, Wes Hardaker пишет:
>>>>>>> On Fri, 17 Jun 2011 10:12:50 -0400, Jeff Johnson <[email protected]> said:
>> ...
>> JJ> You run the script under cron.
>> 
>> How do you (safely) install a cron script on every platform that has rpm
>> installed?
> 
> Why this is required in net-snmp? Even on single platform - in Gentoo we


The cron script is _REQUIRED_ only for the narrow case of rpm-based distros
that would wish to upgrade net-snmp but not rpm.

The benefit for net-snmp is uncoupling the HR-MIB from an rpmdb, and not
having to link RPM libraries.

> allow users choose different cron implementations and thus in some cases
> it's better just install cron script into /usr/share/doc/net-snmp
> directory and document its existence then put into /etc/cron.d (which
> vixie-cron specific afair and I don't have such directory on systems
> with fcrond installed). So I'd provided script as reference
> implementation in extra directory and avoided need to assume anything
> about cron on platform.
> 

Yes. Gentoo would not need to use a cron script whatsoever.

OTOH, gentoo has masked RPM because net-snmp doesn't build with the
latest and greatest net-snmp, and the issue is solely no patch available
for net-snmp to link against whatever version of RPM happens to be
in Gentoo.

Fixing net-snmp linking against rpm was exactly the issue in August 2008
that I sent to Dave Shield as well as to gentoo.

>> How do you select the period at which rpm itself should be run?
> 
> In Gentoo I'd tried to use portage (our package manager) hooks to
> populate hrmib database.
> 

Yes with a different means of populating the HR-MIB "installed software" then 
there is no
reason to link -lrpm nor to use a cron script or anything else.

Meanwhile its a historical fact that Gentoo masked RPM solely because
a patch was needed for net-snmp in order to link against -lrpm,
essentially forcing a both-or-neither upgrade of net-snmp and rpm.

73 de Jeff

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to