NetApp System Administration

In this section I will talking about NetApp system adminstration, I will talk about disk administrator in another topic. Basically the NetApp filer is a Unix server highly tuned to deliver large amounts of storage, the hardware again is very similar to the computer that you have at home but will have extra redundancy features.

As you know the Operating Systems is called Data ONTAP which is based on Free BSD, you don't need to know a great deal about Unix in order to manage and setup a NetApp file, it comes with two excellent GUI tools one of which is web based but it would be worth while getting to know Unix for more problematic problems as you will need to use the commandline.

Generally the NetAPP filer will be setup when you receive it, it should have the latest Data ONTAP o/s installed and be ready to go, I am not going to go into much regarding the operating system.

Accessing NetApp

Once you have your NetApp filer powered up and on the network, you can access it by any of the following common methods

Web Access GUI (http)
System Manager (GUI)

I will only be using telnet (commandline) and the system manager in my examples.

There are a number of common session related parameters that you may wish to tweak, there are many more than below so take a peek at the documentation


ontap1> options ?

Telnet ontap1> options telnet
telnet.access legacy
telnet.distinct.enable on
telnet.enable off

## Enabling telnet access
ontap1> options telnet.enable on

ontap1> options ssh
ssh.access *
ssh.enable on
ssh.idle.timeout 0
ssh.passwd_auth.enable on
ssh.port 22
ssh.pubkey_auth.enable on
ssh1.enable off
ssh2.enable on

## change the idle timeout to 5 minutes
ontap1> options ssh.idle.timeout 300

## You can also use the secureadmin command to setup SSH/SSL

secureadmin [setup|addcert|enable|disable|status]

## You also use the system manager


ontap1> options http
httpd.access legacy
httpd.admin.access legacy
httpd.admin.enable on
httpd.admin.hostsequiv.enable off
httpd.admin.max_connections 512
httpd.admin.ssl.enable on on
httpd.autoindex.enable off
httpd.bypass_traverse_checking off
httpd.enable off
httpd.log.format common
httpd.method.trace.enable off
httpd.rootdir XXX
httpd.timeout 300
httpd.timewait.enable off

## Enabling HTTP administration access
ontap1> httpd.admin.enable on

Session timeout

ontap1> options autologout
autologout.console.enable on
autologout.console.timeout 300
autologout.telnet.enable on
autologout.telnet.timeout 300

## Change the timeout values
ontap1> options autologout.telnet.timeout 300

Security ontap1> options trusted
trusted.hosts *

## Only allow specific hosts to administrate the NepApp filer
ontap1> options trusted.hosts <host1>,<host2>

System Configuration and Administration

NetApp filers have two privilege modes, the advanced privilege allows you to access more advanced and dangerous features

To set the privilege


priv set [-q] [admin | advanced]

Note: by default you are in administrative mode

-q = quiet suppresses warning messages

You can use the normal shutdown or reboot command to halt or restart the Netapp filer, if your filer has a RML or BMC you can also start the filer in different modes

startup modes
  • boot_ontap - boots the current Data ONTAP software release stored on the boot device
  • boot primary - boots the Data ONTAP release stored on the boot device as the primary kernel
  • boot_backup - boots the backup Data ONTAP release from the boot device
  • boot_diags - boots a Data ONTAP diagnostic kernel

Note: there are other options but NetApp will provide these as when necessary


halt [-t <mins>] [-f]

-t = shutdown after minutes specified
-f = used with HA clustering, means that the partner filer does not take over

restart reboot [-t <mins>] [-s] [-r] [-f]

-t = reboot in specified minutes
-s = clean reboot but also power cycle the filer (like pushing the off button)
-r = bypasses the shutdown (not clean) and power cycles the filer
-f = used with HA clustering, means that the partner filer does not take over

When the filer boots you have a chance to enter the boot menu [Ctrl-C] which gives you a number of options, that allow you change the system password, put the filer into maintenance mode, wipe all disks, etc.

Boot Menu

1) Normal Boot.
2) Boot without /etc/rc.
3) Change password.
4) Clean configuration and initialize all disks.
5) Maintenance mode boot.
6) Update flash from backup config.
7) Install new software first.
8) Reboot node.
Selection (1-8)?

  • Normal Boot - continue with the normal boot operation
  • Boot without /etc/rc - boot with only default options and disable some services
  • Change Password - change the storage systems password
  • Clean configuration and initialize all disks - cleans all disks and reset the filer to factory default settings
  • Maintenance mode boot - file system operations are disabled, limited set of commands
  • Update flash from backup config - restore the configuration information if corrupted on the boot device
  • Install new software first - use this if the filer does not include support for the storage array
  • Reboot node - restart the filer

To check what versions of Data ONTAP you have use the version command

Data ONTAP version version [-b]

-b = include name and version information for the primary, secondary and diagnostic kernels and the firmware

I am not going to talk much about users, groups and roles as they are the same in the Unix world, the commands and options that you should be aware of are the following


you can perform the following using the secureadmin command

  • add
  • modify
  • delete
  • list

you can perform the following using the secureadmin command

  • add
  • modify
  • delete
  • list

you can perform the following using the secureadmin command

  • add
  • modify
  • delete
  • list

you can perform the following using the secureadmin command

  • add
  • delete
  • list
  • load

you can perform the following using the secureadmin command

  • lock
  • unlock
  • list
  • load
User password options

security.passwd.firstlogin.enable off
security.passwd.lockout.numtries 4294967295
security.passwd.rootaccess.enable on
security.passwd.rules.enable on
security.passwd.rules.everyone on
security.passwd.rules.history 6
security.passwd.rules.maximum 256
security.passwd.rules.minimum 8
security.passwd.rules.minimum.alphabetic 2
security.passwd.rules.minimum.digit 1
security.passwd.rules.minimum.symbol 0

System Manager GUI

The system manager can help with user and groups


Change a users password passwd

Note: the passwd command will prompt you for the user to change

When you first login into a filer you are placed into a administrative shell that only allows a number of commands to be used (type help to display commands you can access), you can obtain more commands by using the advanced privilege, but on occasions you need a normal Unix shell prompt that allows you to access the normal Unix commands, this is called the systemshell and can be access by the diag user

Access the systemshell ## First obtain the advanced privileges
priv set advanced

## Then unlock and reset the diag users password
useradmin diaguser unlock
useradmin diaguser password

## Now you should be able to access the systemshell and use all the standard Unix
## commands
login: diag
password: ********

There are a number of commands to get system configuration information and statisics

System Configuration
General information sysconfig
sysconfig -v
sysconfig -a (detailed)
Configuration errors sysconfig -c
Display disk devices sysconfig -d
sysconfig -A
Display Raid group information sysconfig -V
Display arregates and plexes sysconfig -r
Display tape devices sysconfig -t
Display tape libraries sysconfig -m
Environment Information
General information environment status
Disk enclosures (shelves) environment shelf [adapter]
environment shelf_power_status
Chassis environment chassis all
environment chassis list-sensors
environment chassis Fans
environment chassis CPU_Fans
environment chassis Power
environment chassis Temperature
environment chassis [PS1|PS2]
Fibre Channel Information
Fibre Channel stats fcstat link_stats
fcstat fcal_stats
fcstat device_map
SAS Adapter and Expander Information
Shelf information sasstat shelf
Expander information sasstat expander
sasstat expander_map
sasstat expander_phy_state
Disk information sasstat dev_stats
Adapter information sasstat adapter_state
Statistical Information
All stats stats show
System stats show system
Processor stats show processor
Disk stats show disk
Volume stats show volume
LUN stats show lun
Aggregate stats show aggregate
FC stats show fcp
iSCSI stats show iscsi
CIFS stats show cifs
Network stats show ifnet


The NetApp extra features can be enabled by licensing the product, you can perform this either via the commandline or the system manager GUI

licenses (commandline)

## display licenses

## Adding a license
license add <code1> <code2>

## Disabling a license
license delete <service>

licenses (GUI)

NTP setup

One very important configuration is the NTP service, this must be setup as it is important for snapshots.

NTP setup (commandline)

ontap1> options timed
timed.enable off
timed.log off
timed.max_skew 30m
timed.min_skew 0
timed.proto ntp
timed.sched hourly
timed.window 0s

ontap1> options timed.servers <ntp server>
ontap1> options timed.enable on

NTP setup (GUI)