操作方法2011/05/14 |
|
コマンドの発行は全て Certmaster 上から行います。基本的な書式は下記の通りです。
func target call module method [args ...]
target、module、method は以下のコマンドで調べることができます。
具体的な使い方は次項以降を参照ください。
|
|
| [1] | 管理対象 minon の表示 |
|
# 管理対象一覧を全て表示する [root@certmaster ~]# func "*" list_minions
minion01
minion02 # 複数のminionを指定して表示する [root@certmaster ~]# func "minion01;minion02" list_minions minion01 minion02 |
| [2] | 使用可能なモジュールを全て表示 |
|
# minion01 で使用可能なモジュールを全て表示する [root@certmaster ~]# func "minion01" call system list_modules
{'minion01': ['bridge',
'certmastermod',
'command',
'confmgt_augeas',
'copyfile',
'cpu',
'delegation',
'disk',
'djangoctl',
'echo',
'fact',
'filetracker',
'func_getargs',
'func_module',
'getfile',
'hardware',
'httpd',
'iptables',
'iptables.port',
'jboss',
'jobs',
'mount',
'nagios-check',
'netapp.options',
'netapp.snap',
'netapp.vol',
'netapp.vol.clone',
'networktest',
'overlord',
'process',
'pullfile',
'reboot',
'rpms',
'service',
'smart',
'snmp',
'sysctl',
'test',
'users',
'vlan',
'yumcmd']}
|
| [3] | あるモジュールでの使用可能なメソッドを全て表示 |
|
# 「command」で使用可能なメソッドを全て表示する [root@certmaster ~]# func "minion01" call command list_methods
{'minion01': ['run',
'config_items',
'grep',
'exists',
'save_config',
'module_version',
'grep',
'list_methods',
'module_description',
'get_method_args',
'module_api_version']}
|
| Sponsored Link |
|
|