ONTAP 9.14.1 commands

vserver context

Set Vserver context

Availability: This command is available to cluster administrators at the admin privilege level.


Cluster administrators can use the vserver context command to login to a specified Vserver with a specified Vserver user name. All subsequent commands will be issued in the context of that Vserver. The role of the cluster administrator will be the same as that of the user name with which the Vserver context was set. The context is valid for the duration of the CLI or Web UI session in which it is specified. The exit command can be used to return to the original context.


-vserver <vserver> - Vserver

Use this parameter to specify the Vserver.

[-username <text>] - Vserver Administrator User Name

Use this parameter to specify a Vserver administrator user name for the context. The default value vsadmin is used if one is not specified.


The following example sets the CLI context to Vserver vs0.example.com . All subsequently issued commands will be executed in the context of that Vserver:

cluster1::> vserver context -vserver vs0.example.com
    Info: Use 'exit' command to return.
Top of Page