Table of ContentsView in Frames

Accessing a storage system from a UNIX client by using RSH

You can use an RSH connection to access a storage system from a UNIX client to perform administrative tasks.

Before you begin

The rsh.enable option must be set to on.

If you access the storage system by using its IPv6 address, the ip.v6.enable option must be set to on for the system and the UNIX client you use must support IPv6.

Step

  1. Do one of the following:
    • If the UNIX host name or the user name you use is not specified in the /etc/hosts.equiv file on the root volume of the storage system, enter the rsh command in the following format:
      rsh hostname_or_ip -l username:password command 
    • If the UNIX host name and the user name you use are specified in the /etc/hosts.equiv file on the root volume of the storage system, enter the rsh command in the following format:
      rsh hostname_or_ip [-l usernamecommand 

    hostname_or_ip is the host name, IPv4 address, or IPv6 address of the storage system.

    Note: You can also specify the IP address by using the rsh.access option.

    command is the Data ONTAP command you want to run over the RSH connection.

Examples of RSH requests

The following rsh command uses a user name, carl, and a password, mypass, to access the storage system, myfiler, to run the Data ONTAP version command:
rsh myfiler -l carl:mypass version
The following rsh command uses a user name, carl, and a password, mypass, to access the storage system whose IP address is 192.0.2.66 to run the Data ONTAP version command:
rsh 192.0.2.66 -l carl:mypass version
The following rsh command uses a user name, carl, and a password, mypass, to access the storage system whose IPv6 address is 2001:0DB8:85A3:0:0:8A2E:0370:99 to run the Data ONTAP version command:
rsh 2001:0DB8:85A3:0:0:8A2E:0370:99 -l carl:mypass version
The following rsh command runs the Data ONTAP version command from a UNIX host that is specified in the /etc/hosts.equiv file of the storage system, myfiler:
rsh myfiler version