Table of ContentsView in Frames

Executing SSH commands for a vFiler unit

You can execute commands for a vFiler unit by using SSH. You can also execute commands from the default vFiler unit to a nondefault vFiler unit by using the vfiler run command.

Before you begin

  • The SSH protocol must be enabled.

    You can enable the SSH protocol by setting the ssh.enable option to on. By default, SSH is allowed on a vFiler unit.

  • You must enter the command on a client of the vFiler unit that is permitted to have SSH access to the vFiler unit.

    The client must be one of the hosts specified by the ssh.access option for the vFiler unit.

About this task

Starting with Data ONTAP 8.1, you can start SSH as an interactive shell, and issue vfiler commands that require user interaction through SSH.

Step

  1. Enter the following command to execute commands for a vFiler unit by using SSH:
    ssh vfiler_IP_address command
    • If you specify command, you start a non-interactive SSH session.
    • If you do not specify command, you start an interactive SSH session.

      You can enter command when the storage system prompt appears.

    Example

    The following command launches a non-interactive SSH session to display all options on the vFiler unit with the IP address 123.123.123.1:

    ssh user_name@123.123.123.1 options

    Example

    The following command launches an interactive SSH session to vFiler unit with the IP address 123.123.123.1:

    ssh user_name@123.123.123.1

    Note: The SSH options that are available through a non-interactive SSH session are also available through the interactive SSH session.