R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

163
RSH configuration commands
rsh
Syntax
rsh host [ user username ] command remote-command
View
User view
Default Level
0: Visit level
Parameters
host: IP address or host name of the remote host, a string of 1 to 20 characters.
user username: Specifies the username for remote login, which is a string of 1 to 20 characters. If you
specify no username, the system name of the firewall, which can be set by using the sysname command,
applies.
remote-command: Command to be executed remotely. Which commands are available depends on the
operating system running on the RSH server.
Description
Use the rsh command to execute an operating system (OS) command of a remote host.
The remote host must run the RSH daemon.
Examples
# Display information about the directories and files on remote server 169.254.1.100, which is running
Windows 2000.
<Sysname> rsh 169.254.1.100 command dir
Trying 169.254.1.100 ...
Press CTRL+K to abort
Volume in drive C is SYSTEM
Volume Serial Number is 2A0F-18DF
Directory of C:\WRSHDNT
2004-07-13 09:10 <DIR> .
2004-07-13 09:10 <DIR> ..
2001-05-10 09:04 162,304 UNWISE.EXE
2001-12-05 15:36 45,056 wrshdcfg.exe
1996-08-05 15:39 48,128 ctrlrshd.exe
1998-10-13 16:31 31,744 forewin.exe
2004-01-02 23:05 40,625 history.txt
2003-02-26 17:04 6,822 order.txt
1997-08-26 16:05 23,552 whoami.exe
2001-12-07 17:28 122,880 wrshdctl.exe