このドキュメントで説明されているソフトウェアはサポートされていないか、拡張サポートが提供されています。
現在サポートされているリリースにアップグレードすることをお薦めします。

10.4.3 spacecmdを使用した構成チャネルの操作

構成チャネルを作成するには、configchannel_createコマンドを使用します。

spacecmd {SSM:0}> configchannel_create
Name: Oracle Linux 6 Server Configuration
Label: ol6-server-config
Description: Generic configuration channel for Oracle Linux 6 servers

コンフィギュレーション・ファイルをチャネルに追加するには、configchannel_addfileコマンドを使用します。

spacecmd {SSM:0}> configchannel_addfile ol6-server-config
Path: /etc/motd
Symlink [y/N]: N
Directory [y/N]: N
Owner [root]: [Enter]
Group [root]: [Enter]
Mode [0644]: [Enter]
SELinux Context [None]: [Enter]
Revision [next]: [Enter]
Read an existing file [y/N]: y
File: /var/config_file_templates/ol6-server/etc/motd
Path:            /etc/motd
Directory:       False
Owner:           root
Group:           root
Mode:            0644
SELinux Context: 

Contents
--------
System Information
==================
Client system: {|rhn.system.hostname|}
Spacewalk SID: {|rhn.system.sid|}
Asset tag:     {|rhn.system.custom_info(asset_tag) = 'Asset tag missing'|}
Profile:       {|rhn.system.profile_name|}
Description:   {|rhn.system.description|}
IP address:    {|rhn.system.ip_address(eth0)|}
MAC address:   {|rhn.system.net_interface.hardware_address(eth0)|}

Is this ok [y/N]: y

カスタム・マクロrhn.system.custom_infoは、システムの「カスタム情報」タブに割り当てられているasset_tagという名前のカスタム・システム情報キーの値で置き換えられます。 それ以外の場合は、値Asset tag missingを挿入します。

10.4.4項、「spacecmdを使用したカスタム情報キーの定義」を参照してください。

付録C、「構成ファイルのマクロ」を参照してください。

構成チャネルの詳細を表示するには、configchannel_detailsコマンドを使用します。

spacecmd {SSM:0}> configchannel_details ol6-server-config
Label:       ol6-server-config
Name:        Oracle Linux 6 Server Configuration
Description: Configuration channel for generic Oracle Linux 6 servers

Files
-----
/etc/motd