UNIX/Linux エージェントの管理および構成

 

発行: 2016年3月

適用対象: System Center 2012 R2 Operations Manager,System Center 2012 - Operations Manager,System Center 2012 SP1 - Operations Manager

このトピックでは、System Center – Operations Manager の UNIX/Linux エージェントの管理および構成オプションを説明します。

エージェント ディレクトリ

  • UNIX/Linux エージェントは次のディレクトリにインストールされます: /opt/microsoft/scx/

  • UNIX/Linux エージェントは次のディレクトリにログ ファイルを保持します: /var/opt/microsoft/scx/log/

  • 証明書などのエージェントの構成ファイルは次のディレクトリに格納されます: /etc/opt/microsoft/scx/

エージェント管理ツール

このセクションでは、UNIX/Linux エージェントの管理および構成ツールを説明します。

エージェント管理ツールの実行

UNIX/Linux エージェントを構成するためのツールは次のディレクトリに配置されます:

/opt/microsoft/scx/bin/tools

ツールを実行する前に、ファイル /opt/microsoft/scx/bin/tools/setup.sh を調達する必要があります。 これは、次のコマンドで行います。

. /opt/microsoft/scx/bin/tools/setup.sh

Scxadmin

scxadmin ツールは、UNIX/Linux エージェントの状態 (開始、停止、あるいは再開) を制御するだけでなく、エージェントが実行するログ記録も制御します。 ツールの使用方法は、次のコマンドで表示できます。scxadmin -?

# /opt/microsoft/scx/bin/tools/scxadmin -?

Usage: scxadmin
Generic options (for all commands)
  [-quiet]      Set quiet mode (no output)

        General Options
scxadmin -version

        Service Management
scxadmin {-start|-stop|-restart|-status}  [all|cimom|provider]

        Providers Management
scxadmin -config-list {RunAs}
scxadmin -config-set {RunAs} {CWD=<directory>|ChRootPath=<directory>|AllowRoot={true|false}}
scxadmin -config-reset {RunAs} [CWD|ChRootPath|AllowRoot]

        Log Configuration Management
scxadmin {-log-list|-log-rotate|-log-reset} [all|cimom|provider]
scxadmin -log-set [all|cimom|provider] {verbose|intermediate|errors}
scxadmin -log-set provider {{FILE:<path>|STDOUT}:<module-id>={SUPPRESS|ERROR|WARNING|INFO|TRACE|HYSTERICAL}}
scxadmin {-log-reset|-log-remove} provider [{FILE:<path>|STDOUT}]

エージェントを再起動する:

cd /opt/microsoft/scx/bin/tools/
./scxadmin -restart

すべてのログ記録を中間レベルに上げる:

cd /opt/microsoft/scx/bin/tools/
./scxadmin –log-set all intermediate

scxsslconfig

scxsslconfig ツールは、/etc/opt/Microsoft/scx/ssl/ に証明書を生成するのに使用されます。 このツールは、完全修飾ドメイン名が UNIX または Linux ホスト自身から特定できない場合、または UNIX/Linux ホストで認識される完全修飾名と Operations Manager サーバーで使用されている完全修飾名が一致しない場合の問題を修正するために使用されます。

[!メモ]

WS-Management 通信で使用するためには、生成された証明書が Operations Manager によって署名される必要があります。 以前に署名された証明書を上書きした場合も、証明書に再度署名する必要があります。

scxsslconfig ツールの使用方法は、次のコマンドで表示できます: scxsslconfig -?

# /opt/microsoft/scx/bin/tools/scxsslconfig -?
Usage: /opt/microsoft/scx/bin/tools/.scxsslconfig [-v] [-s days] [-e days] [-d domain] [-h host] [-g targetpath]

-v             - toggle debug flag
-g targetpath  - generate certificates in targetpath
-s days        - days to offset valid start date with (0)
-e days        - days to offset valid end date with (3650)
-f             - force certificate to be generated even if one exists
-d domain      - domain name
-h host        - host name
-b bits        - number of key bits
-?             - this help message

証明書を再生成し、詳細な出力で既存の証明書を強制的に上書きする:

cd /opt/microsoft/scx/bin/tools/
. setup.sh
/opt/microsoft/scx/bin/tools/scxsslconfig -f -v

証明書を再生成し、指定したホスト名と DNS ドメイン名で既存の証明書を強制的に上書きする:

cd /opt/microsoft/scx/bin/tools/
. setup.sh
/opt/microsoft/scx/bin/tools/scxsslconfig -f –h myserver –d contoso.com

追加の構成に関するトピック

SSL 暗号

必要な場合には、UNIX/Linux エージェントによって使用される SSL 暗号の一覧をカスタマイズできます。 この構成に関する詳細については、「SSL 暗号の構成」トピックをご覧ください。

Universal Linux - オペレーティング システムの名前/バージョン

Universal Linux エージェントは、CentOS、Debian GNU/Linux、Oracle Linux、および Ubuntu Server などの Linux オペレーティング システムに対応しており、ホストのオペレーティング システムの名前とバージョンを特定するためにリリース ファイルを解析します。 必要に応じて、これらのプロパティをカスタマイズできます。Operations Manager に提示される Universal Linux エージェント ホストのオペレーティング システム プロパティをカスタマイズするには、次の手順を使用します。

ファイル disablereleasefileupdates をディレクトリ /etc/opt/microsoft/scx/conf/ に作成します。

touch /etc/opt/microsoft/scx/conf/disablereleasefileupdates

このファイルが存在する場合は、エージェントは Operations Manager に返されるオペレーティング システム プロパティを更新しようとしません。 このため、カスタマイズ内容が確実に保持されます。

ディレクトリ scx-release のファイル /etc/opt/microsoft/scx/conf を編集します。 このファイルの形式は次のとおりです。

OSName=CentOS
OSVersion=6.0
OSFullName=CentOS 6.0 (x86_64)
OSAlias=UniversalR
OSManufacturer=

プロパティ OSNameOSVersion、および OSFullName の値は、カスタマイズされた値を反映するように編集できます。

[!メモ]

OSAlias プロパティを編集しないでください。 このファイルのすべてのプロパティ (OSManufacturer を除く) は必須であり、null は使用できません。