Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Executing commands and setting options for vFilers

Methods for executing commands for vFilers  Top

You can enter commands for vFilers in the following ways:

Entering commands from the vFiler  Top

To enter commands for vFilers from the vFiler, complete the following step.

Step

Action

1

To run in the context of the vFiler, enter the following command:

vfiler context vfiler_name

Example

vfiler context vfiler1 
2

Enter the command you want to run.

Example

?

This shows all the commands available to you from the context of the vFiler.

3

To return to the context of the hosting filer, enter the command

vfiler context vfiler0

Entering commands for vFilers from the hosting filer  Top

To enter commands for vFilers from the hosting filer, complete the following step.

Step

Action

1

Enter the following command:

vfiler run vfilertemplate command

Example

vfiler run vfiler1 useradmin

Note
Not all Data ONTAP commands can be executed for vFilers. To see what commands are supported, enter ? from the context of a vFiler (see Entering commands from the vFiler) or enter the following command:

vfiler run vfilertemplate ?

Prerequisites for entering commands through rsh from a vFiler client  Top

You must meet the following prerequisites if you want to enter commands for a vFiler through rsh:

Commands that you can enter through rsh  Top

You can enter the commands listed in the following table through an rsh connection to a vFiler.

?
help
qtree
passwd
exportfs
quota
options
hostname
lun
igroup
iscsi
       

Note
The hostname command is only for displaying, not changing, the name of the vFiler.

Entering a command for a vFiler through rsh  Top

To enter a command for a vFiler through an rsh connection, complete the following step.

Step

Action

1

Enter the following command:

rsh vfiler_IP_address command

Example

The following command displays all options on the vFiler whose IP address is 123.123.123.1:

rsh 123.123.123.1 options

Options that can be set for vFilers  Top

Not all Data ONTAP options are supported on vFilers. You can use the options command for the following options:

Exception

You can display the cifs.wins_servers option only from the hosting filer.

Path names specified by options  Top

Path names specified by options are complete path names. For example, the path name specified by the cifs.home_dir option should begin with the /vol/vol_name prefix.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments