0% found this document useful (0 votes)
235 views11 pages

Working With NetApp ONTAP CLI Shells

ONTAP uses three CLI shells: the cluster shell, node shell, and system shell. The cluster shell is used to manage the cluster and nodes. The node shell runs node-level commands, while the system shell is for diagnostics. Each shell has a different command set and privilege level. The cluster shell is the default and requires changing privilege levels like advanced to run certain commands. The node and system shells can be accessed from the cluster shell.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
235 views11 pages

Working With NetApp ONTAP CLI Shells

ONTAP uses three CLI shells: the cluster shell, node shell, and system shell. The cluster shell is used to manage the cluster and nodes. The node shell runs node-level commands, while the system shell is for diagnostics. Each shell has a different command set and privilege level. The cluster shell is the default and requires changing privilege levels like advanced to run certain commands. The node and system shells can be accessed from the cluster shell.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

1

my
a
us
th
Working with NetApp
Mu
r

ONTAP CLI Shells


ma
l ku
hi
nt
Se

SENTHILKUMAR MUTHUSAMY 1
2

Administration overview with the CLI

You can administer ONTAP systems with the command-line interface (CLI). You
can use the ONTAP management interfaces, access the cluster, manage nodes,
and much more.

my
Different Shells for CLI Commands

a
The cluster has three different shells for CLI commands, the clustershell,

us
the nodeshell, and the systemshell. The shells are for different purposes, and they
each have a different command set.
th
Mu
 The clustershell is the native shell that is started automatically
when you log in to the cluster.
r

o It provides all the commands you need to configure and


ma

manage the cluster. The clustershell CLI help (triggered


ku

by ? at the clustershell prompt) displays available


clustershell commands.
l

The man command_name command in the clustershell


hi

displays the man page for the specified clustershell


nt

command.
Se

 The nodeshell is a special shell for commands that take effect


only at the node level.
o The nodeshell is accessible through the system node
run command.
o The nodeshell CLI help (triggered by ? or help at the
nodeshell prompt) displays available nodeshell
commands. The man command_name command in the

SENTHILKUMAR MUTHUSAMY 2
3

nodeshell displays the man page for the specified


nodeshell command.
o Many commonly used nodeshell commands and options
are tunneled or aliased into the clustershell and can be
executed also from the clustershell.
 The systemshell is a low-level shell that is used only for
diagnostic and troubleshooting purposes.
o The systemshell and the associated “diag” account are
intended for low-level diagnostic purposes. Their access
requires the diagnostic privilege level and is reserved only

my
for technical support to perform troubleshooting tasks.

a
us
CLI Shells: th
Mu
ONTAP uses the following three CLI shells:
 Cluster Shell (Default One) – scope is all the nodes in the
r
ma

cluster
 Node Shell --- Scope is particular Node only (7-Mode
ku

commands)
l

 System Shell --- Scope is one node only (Used for


hi

troubleshooting and diagnostics)


nt
Se

SENTHILKUMAR MUTHUSAMY 3
4

Cluster Shell:

Login to NetApp ONTAP through SSH using putty.

a my
us
th
Mu
r
ma
l ku
hi
nt
Se

SENTHILKUMAR MUTHUSAMY 4
5

Default its, Login to cluster shell.


You can manage the ONTAP cluster using cluster shell commands.
Prompt Example: Cluster-name::>

a my
us
th
Mu
r
ma

Press “?” to list the cluster shell command directories.


l ku
hi
nt
Se

SENTHILKUMAR MUTHUSAMY 5
6

Node Shell:

 The nodeshell is a special shell for commands that take effect


only at the node level.
o The nodeshell is accessible through the system node
run command.
Prompt Example: Node-Name>
You can run only 7-Mode commands.

my
Switch to Node Shell from Cluster Shell.

a
us
th
Mu
r
ma
l ku
hi
nt
Se

SENTHILKUMAR MUTHUSAMY 6
7

To list aggregates and volumes.

a my
us
th
Mu
Cluster Shell Privilege Levels:
r
ma

Cluster Shell Has Three Modes of privilege level.


ku

 admin (default one)


l

 advanced
hi

 diagnostics
nt
Se

SENTHILKUMAR MUTHUSAMY 7
8

You can use the set command to check the privilege level.

a my
us
th
Mu
r

Few commands only work in Advanced and diagnostics mode.


ma

Example:
ku

To check the cluster RDB status, you need advanced privilege mode.
l
hi
nt
Se

SENTHILKUMAR MUTHUSAMY 8
9

Switch to Advanced Privilege Mode.


use set adv command.
Prompt Example: Cluster-Name::*>

my
a
us
th
Mu
r
ma
ku

Now you can list the cluster RDB.


l
hi
nt
Se

SENTHILKUMAR MUTHUSAMY 9
10

Switch to diagnostic Mode.


Use set diag command.

a my
us
th
Mu

System Shell:
r
ma

 The systemshell is a low-level shell that is used only for


ku

diagnostic and troubleshooting purposes.


l

You can switch to System Shell use the following command. But you
hi

need diag mode privilege is required.


nt

Prompt Example: Node-Name-01%


Se

SENTHILKUMAR MUTHUSAMY 10
11

To list and troubleshoot cluster configurations.

my
a
us
To check the ONTAP Cluster RDB.
th
Mu
r
ma
l ku
hi
nt
Se

SENTHILKUMAR MUTHUSAMY 11

You might also like