submit_add_remote_host
Use the submit_add_remote_host
emcli command line option to add remote host to the remote agent:
Format
emcli submit_add_remote_host
-host_names=<host name>
-remote_cache_root=<path to remote cache>
-remote_cache_sbin_root=<path to remote cache utilities>
-agent=<agent name>
-host_cred_mon=<credentials type, e.g. SSH>
-host_cred_admin=<root credentials, e.g. SSH_ROOT>
-privilege_delegation_setting="/usr/bin/sudo -u %RUNAS% %COMMAND%"
-wait_for_completion
Options
remote_cache_root
Cache of scripts, archives, monitoring utilities and application metadata maintained on remote host. Minimum 1 GB space required on remote host.
remote_cache_sbin_root
Cache contains utilities like nmosudo and nmgsshe root owned contents on remote host. Remote agent may need certain root owned executables for monitoring.
host_cred_mon
Used for monitoring and will not need escalation to root. All metric collections will use this credential.
Supports SSH keys and username/password.
host_cred_admin
Root credentials used for pushing sbin content as part of Cache Maintenance operations
Require ability of escalating to root without a password using PDP settings (sudo)
privilege_delegation_setting
Default path,
/usr/bin/sudo -u %RUNAS% %COMMAND%
, can be changed as needed.
Example
emcli submit_add_remote_host
-host_names=host1.example.com
-remote_cache_root=/u01/app/rcache
-remote_cache_sbin_root=/u01/app/rcacheroo
-agent=host1.example.com:1838
-host_cred_mon=SSH
-host_cred_admin=SSH_ROOT
-privilege_delegation_setting="/usr/bin/sudo -u %RUNAS% %COMMAND%"
-wait_for_completion