A.2.2. Getting A Config File; A.2.3. Viewing Config Channels; A.2.4. Differentiating Between Config Files - Red Hat NETWORK SATELLITE 5.2 Reference Manual

Hide thumbs Also See for NETWORK SATELLITE 5.2:
Table of Contents

Advertisement

A.2.2. Getting a Config File

To download the most relevant configuration file for the machine, issue the command:
rhncfg-client get /etc/example-config.txt
You should see output resembling:
Deploying /etc/example-config.txt
You may then view the contents of the file with less or another pager. Note that the file is selected
as the most relevant based upon the rank of the config channel containing it. This is accomplished
within the Configuration tab of the System Details page. Refer to
for instructions.

A.2.3. Viewing Config Channels

To view the labels and names of the config channels that apply to the system, issue the command:
rhncfg-client channels
You should see output resembling:
Config channels: Label Name ----- ---- config-channel-17 config chan 2
config-channel-14 config chan 1
The following table lists the options available for rhncfg-client get:
Option
--topdir=TOPDIR
-h, --help
Table A.2. rhncfg-client get options

A.2.4. Differentiating between Config Files

To view the differences between the config files deployed on the system and those stored by RHN,
issue the command:
rhncfg-client diff
The output resembles the following:
--- /tmp/@3603.0.rhn-cfg-tmp 2004-01-13 14:18:31.000000000 -0500 +++ /
etc/example-config.txt 2003-12-16 21:35:32.000000000 -0500 @@ -1,3 +1,5
@@ +additional text
In addition, you may include the --topdir option to compare config files in RHN with those located in
an arbitrary (and unused) location on the client system, like so:
Section 6.4.2.9, "System Details"
Description
Make all file operations relative to this string.
Show help message and exit
Getting a Config File
191

Advertisement

Table of Contents
loading

Table of Contents