If you are a beginner for learning netapp administration, then probably you need to keep lot of commands in mind. These commands helps in when managing, monitoring, and troubleshooting a Netapp filer.
General Commands
- Â setup (Re-Run initial setup)
- Â halt (Reboots controller into bootrom)
- Â reboot (Reboots controller back to Data Ontap)
- Â sysconfig -a (System configuration and information)
- Â java netapp.cmds.jsh (limited freebsd cli)
- Â storage show disk (show physical information about disks)
- Â passwd (Change password for logged in user)
- Â sasadmin shelf (shows a graphical layout of your shelves with occupied disk slots)
- Â options trusted.hosts x.x.x.x or x.x.x.x/nn (hosts that are allowed telnet, http, https and ssh admin access. x.x.x.x = ip address, /nn is network bits)
- Â options trusted.hosts * (Allows all hosts to the above command)
- Â sysstat -s 5 (Displays operating statistics every 5 seconds i.e. CPU, NFS, CIFS, NET, DISK, etc)
- Â options autologout.console.enable on (Turns on autologout for the console)
- Â options autologout.console.timeout 300 (300 second autologout for the console)
- Â options autologout.telnet.enable on (Turns on autologout for telnet)
- Â options autologout.telnet.timeout 300 (300 second autologout for the console)
Diagnostics
- Â Press DEL at boot up during memory test followed by boot_diags and select all (Diagnostic tests for a new install)
- Â priv set diags (Enter diagnostics CLI mode from the Ontap CLI)
- Â priv set (Return to normal CLI mode from diagnostics mode)
Software
- Â software list (Lists software in the /etc/software directory)
- Â software get http://x.x.x.x/8.0_e_image.zip 8.0_e_image.zip (Copy software from http to software directory)
- Â software delete (Deletes software in the /etc/software directory)
- Â software update 8.0_e_image.zip -r (Install software. The -r prevents it rebooting afterwards)
ACP (Alternate Control Path)
- Â options acp.enabled on (Turns on ACP)
- Â storage show acp -a (show ACP status)
Root Volume
The Root Volume can only be on a 32 bit aggregate if you want to create a 64 bit aggregate you must create a seperate aggregate.
Aggregates
- Â aggr create aggregate_name (Creates an Aggregate)
- Â aggr destroy aggregate_name (removes an Aggregate)
- Â aggr offline aggregate_name (takes an Aggregate offline)
- Â aggr online aggregate_name (bring an Aggregate online)
- Â aggr options aggregate_name root (makes an Aggregate root|Only use if your Root Aggregate is damanged)
- Â aggr status (shows status of all aggregates)
- Â aggr status aggregate_name (show status of a specific Aggregate)
- Â aggr status -r aggr0 (shows the root volume on aggr0 and the disk layout)
- Â aggr status -s aggr0 (shows spare disks on aggr0)
- Â aggr show_space aggregate_name (shows specific aggregate space information)
- Â aggr options aggregate_name nosnap=on (Disable snapshot autocreation)
- Â aggr options aggregate_name raidsize=x (x being the number of drives in the RAID)
- Â snap reserve -A aggregate_name 0 (Set Aggregate snap reserve to 0% or any number you enter)
- Â snap list -A aggregate_name (Lists snapshots on specified aggregate)
- Â snap delete -A aggregate_name (Deletes a snapshot on a specified aggregate)
- Â snap sched -A aggregate_name x x x@x,x,x (Creates a snapshot shedule in weeks days hours@time ie 0 2 1@9 means no weekly snaps, 2 daily, 1 hourly @ 9am)
Volumes
- Â vol create volume_name (Creates a volume)
- Â vol autosize volume_name (Shows autosize settings for a given volume)
- Â vol autosize volume_name on|off (Turns Volume autosize on or off)
- Â vol options volume_name (Lists volume options)
- Â vol size volume_name + size k|m|g|t (increase volume size by KB, MB, GB or TB)
- Â vol status -f (lists broken or failed disks)
- Â vol scrub status -v (Shows the scrubbing status of volumes)
- Â vol options nosnapdir on|off (enables or disables snapshot visibility from the volume or LUN level)
Qtreeâs
- Â qtree create /vol/volume_name/qtree_name (Create a qtree within a volume)
- Â qtree security /vol/volume_name/qtree_name unix|ntfs|mixed (Change security settings of a qtree)
- Â qtree stats qtree_name (Shows CIFS or NFS ops/sec for a given qtree)
- Â qtree status (Displays all your Qtreeâs)
Click here for more Netapp Commands
Related Blogs
- Related Blogs on netapp Command