[Spacewalk-list] Spacewalk 2.8 | Offline Clients

William H. ten Bensel WHTENBEN at up.com
Fri Feb 15 03:57:41 UTC 2019


You can also cron the check-in.  Also, if the hardware/profile sync is not 
put in cron, the hostname or IP changes are never updated. 


#!/bin/bash
PATH=/usr/sbin:/sbin:/bin:/usr/bin

#  Implemented on the RedHat Linux based systems supported by the five 
spacewalk environments.
#######
#Hardware / profile sync 3rd Sunday of every month
# With the # of systems each app server supports, cannot have all the 
systems running this in < 1 hour (oops).  It will degrade the app server. 
# The load on the app server was 30+.  Each app server specs. PROC: 2 
Socket, 6 Core, hyper threaded  RAM: 32 or 64 G  DB: Off host. 
# minute=1
# hour=0
# date range = 14 - 22
# month all
# day of week= Sunday

1 0 14-22 * 0 root [ -f /etc/redhat-release ] && [ `grep "release 4" 
/etc/redhat-release` ] && perl -le 'sleep rand 14400' &&  up2date 
--hardware >& /dev/null
1 0 14-22 * 0 root [ -f /etc/redhat-release ] && [[ `grep "release [567]" 
/etc/redhat-release` ]] && perl -le 'sleep rand 14400' && rhn-profile-sync 
>& /dev/null
########

########
#rhn_check

1 0 * * * root [ -f /etc/redhat-release ] && [[ `grep "release [4567]" 
/etc/redhat-release` ]] && perl -le 'sleep rand 14400' && rhn_check >& 
/dev/null
@reboot root [ -f /etc/redhat-release ] && [[ `grep "release [4567]" 
/etc/redhat-release` ]] && perl -le 'sleep rand 14400' && rhn_check >& 
/dev/null



Thanks and good luck





From:   David Rock <david at graniteweb.com>
To:     spacewalk-list at redhat.com
Date:   02/14/2019 04:26 PM
Subject:        Re: [Spacewalk-list] Spacewalk 2.8 | Offline Clients
Sent by:        spacewalk-list-bounces at redhat.com



This email originated from outside of the company. Please use discretion 
if opening attachments or clicking on links.


 

IIRC, the lowest you can set it for is 60 minutes.

— 
David Rock
david at graniteweb.com


> On Feb 14, 2019, at 07:45, P.Cookson at bham.ac.uk wrote:
> 
> No problem Harald. If you want to continue using rhnsd you can still 
reduce the check-in time in /etc/sysconfig/rhn/rhnsd if you want though 
(default is 240 mins):
> 
> # cat /etc/sysconfig/rhn/rhnsd
> INTERVAL=240
> #



_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



**

This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190214/e5194a6a/attachment.htm>


More information about the Spacewalk-list mailing list