Friday, January 30, 2015

To Enable Remote Command from Red Hat Central Management Portal

The latest version of the following packages needs to be installed:

up2date 
rhncfg 
rhncfg-actions 
rhncfg-client
 
The remote commands currently on the Pending actions queue can be applied immediately to the system by running the command from the command prompt:

# rhn_check

But schedule actions actually depends on rhnsd service (Red Hat Network Daemon) that periodically connects to Red Hat Network to check (rhn_check) for updates, notifications or to apply remote commands if it is configured. This service will check with RHN every 240 minutes (default). If you want to schedule your remote command to run every hour, please change the value in the file to:

/etc/sysconfig/rhn/rhnsd

INTERVAL=60

Please take note that changing this interval to less than 15 minutes will result to "Abuse of Service" error which means that the system is checking in with RHN more than the allowed number of times (100 check in per 24 hours).

After changing the INTERVAL, run this command:

# service rhnsd restart
 
Actually, to run remote commands, we only need to enable:

# rhn-actions-control --enable-run

but if you want to run config files, diffing package versions, mtime, etc., --enable-all
will be appropriate.

--enable-all will let you deploy remote commands

No comments: