Use > Server Automation > SA Global Shell > Global Shell examples > Logging on to a managed server with rosh

Logging on to a managed server with rosh

The next three rosh commands perform the same operation: logging on to the Windows server named abc.opsware.com as the Administrator user. After logging on, the current working directory on the remote shell is the default working directory of the Administrator Windows user. These rosh commands require different options, depending on the current working directory in the OGFS. For example, the first rosh command does not require the -n (server name) and -l (user) options because the option values can be inferred from the current working directory of OGFS. The options of the following three rosh commands differ because of the current working directory:

cd /opsw/Server/@/abc.opsware.com/files/Administrator
rosh
. . .
exit
. . .
cd /opsw/Server/@/abc.opsware.com
rosh -l Administrator
...
exit
. . .
cd /home/jdoe
rosh -n abc.opsware.com -l Administrator
...
exit

The next rosh command logs into the UNIX server named m256.opsware.com as the root user with the current working directory of /tmp:

rosh -n m256.opsware.com -l root -d /tmp