从Spacewalk服务器(从UI),我只能在客户端执行“rhn_check”命令后才能在客户端上安装软件包; 在此之前,它只是显示行动等待。 date和时间是同步的。 钥匙工作正常。 我没有安排到以后的时间。 我select了“尽快安排行动”。
当然,我们可以写一个脚本或其他东西,但显然有些问题。 我也不想等4个小时。
osad服务支持即时推送到Spacewalk客户端。
在客户端系统上:
yum安装osad 服务osad开始
所以rhn_check(1)是查询Spacewalk服务器的程序,提取挂起的动作,但rhnsd(8)是运行rhn_check的服务。 我现在意识到,你提到的“4小时”是手册页中提到的“240分钟”:
$ man rhnsd RHNSD(8) Red Hat, Inc. RHNSD(8) NAME rhnsd - A program for querying the Red Hat Network for updates and information. ... DESCRIPTION ... The rhnsd daemon does not listen on any network ports, nor does it ever talk to the network directly. Any network activity is done via the rhn_check utility. ... OPTIONS -i, --interval Specify the interval that rhnsd should wait between checking the Red Hat Network. Default is 240 minutes, the minimum is 60 min- utes. This can also be specified in /etc/sysconfig/rhn/rhnsd ...
在我的箱子上:
$ cat /etc/redhat-release CentOS release 5.5 (Final) $ cat /etc/sysconfig/rhn/rhnsd INTERVAL=240
正如手册中提到的,最低限度是60分钟,这似乎是不合理的。 我想最好的解决办法是更新/etc/sysconfig/rhn/rhnsd ,将INTERVAL设置为60 。
aspanpanic说osad照顾这个。
确保安装osad并运行。 它需要从客户端系统到太空行走的TCP 5222,并且您可以检查rhn-actions-control --report weather允许卫星运行客户端上的运行程序。
如果你使用osad而不是rhn_check ,那么你可以从太空行走安排活动,并且连接的节点应该立即采取。 这就是为什么我build议启用osad。