Host Resources: Check the Execution of a Command on a Remote Server
This utility provides the output of a command by running it on the specified remote server.
Usage:
remoteExecCommand.{sh|bat} HostAddress [enc] userId password [domain=<domain>] [wmiserver=<wmiserver>] [cto=<connectTimeout>] [sto=socketTimeout>] [accessCmd=accessControlCommand>]
HostAddresses | The hosts to verify. It can be hostname, IP address, or range of IP addresses, or a comma-separated list of them. |
userId password | Use the [enc] option to provide encrypted user ID and password arguments. |
domain | The Domain for the Windows hosts (only for connecting to a Windows server) |
wmiserver | Name of the WMI Proxy Server |
cto | Connection time-out in milliseconds |
sto | Socket time-out in milliseconds |
accessCmd | An access control command such as sudo |
Examples:
remoteExecCommand.sh 172.16.1.21 myuser mypasswd /usr/bin/df -k
remoteExecCommand.sh 172.16.1.21 myuser mypasswd accessCmd=sudo cto=10000 /usr/bin/df -k