182
Chapter 8. UNIX Support Guide
systems through the Satellite’s RHN website. This feature allows you to run virtually any
(compatible) application or script on any system in your domain without ever having to
open a terminal.
8.5.1. Enabling Commands
With the flexibility this tool offers comes great risk and the responsibility to mitigate that
risk. For all practical purposes, this feature grants a root BASH prompt to anyone with
administrative access to the system on the website.
This can be controlled, however, through the same config-enable mechanism used to de-
termine which systems can have their configuration files managed by Red Hat Network.
Refer to the
Configuration
tab description within the
System Details
section of the
RHN
Provisioning Reference Guide
for details.
In short, you must create a directory and file on the UNIX system that tell RHN
it is acceptable to run remote commands on the machine. The directory must be
named
script
, the file must be named
run
, and both must be located in the
/etc/sysconfig/rhn/allowed-actions/
directory specific to your UNIX variant.
For instance, in Solaris, issue this command to create the directory:
mkdir -p /opt/redhat/rhn/solaris/etc/sysconfig/rhn/allowed-actions/script
To create the requisite file in Solaris, issue this command:
touch /opt/redhat/rhn/solaris/etc/sysconfig/rhn/allowed-actions/script/run
8.5.2. Issuing Commands
You may schedule a remote command in a variety of ways: on an individual system, on
multiple systems at once, and to accompany a package action.
To run a remote command on an individual system by itself, open the
System Details
page,
click the
Remote Command
subtab, and establish the settings for the command. You may
identify a specific user, group, and timeout period, as well as the script itself. Select a date
and time to begin attempting the command, and click the
Schedule Remote Command
link.
Similarly, you may issue a remote command on multiple systems at once through the
Sys-
tem Set Manager
. Select the systems, go to the
System Set Manager
, click the
Misc
tab, and scroll down to the
Remote Command
section. From there you may run a remote
command on the selected systems at once.
To run a remote command with a package action, schedule the action through the
Packages
tab of the
System Details
page and click
Run Remote Command
while confirming the
Содержание NETWORK 4.0 -
Страница 1: ...Red Hat Network 4 0 Reference Guide...
Страница 10: ......
Страница 16: ...vi Introduction to the Guide...
Страница 24: ...8 Chapter 1 Red Hat Network Overview...
Страница 40: ...24 Chapter 2 Red Hat Update Agent Figure 2 11 Available Package Updates...
Страница 58: ...42 Chapter 2 Red Hat Update Agent...
Страница 80: ...64 Chapter 5 Red Hat Network Registration Client Figure 5 15 Text Mode Welcome Screen...
Страница 186: ...170 Chapter 7 Monitoring...
Страница 200: ...184 Chapter 8 UNIX Support Guide...
Страница 214: ...198 Appendix A Command Line Config Management Tools...
Страница 274: ...258 Appendix C Probes...
Страница 282: ...266 Glossary...