100 useful commands for NetApp Beginners (1 to 10)
- Balasubramani Ramamurthy
- May 1, 2014
- 3 min read
100 useful commands for NetApp Beginners (1 to 10)
Netapp beginner guide has details about basic Netapp commands and an example to explain each command.
1. How to find Data Ontap version on a filer :
filer> version NetApp Release 7.3.1: Thu Jan 8 22:29:32 PST 2012
2. How to find "uptime" of a filer?The uptime command gives system uptime. Also it gives number of NFS, CIFS, FCP, iSCSI operations on a Netapp filer.
filer> uptime 8:58pm up 23 days, 43 mins, 1354234 NFS ops, 940 CIFS ops, 0 HTTP ops, 0 FCP ops, 0 iSCSI ops filer>
3. How to get the System Configuration information of a NetApp filer:
filer> sysconfig
NetApp Release 7.3.1: Thu Jan 8 01:31:42 PST 2009
System ID: 0135025121 (whmn7027)
System Serial Number: 3093075 (whmn7027)
System Rev: D1
System Storage Configuration: Multi-Path
slot 0: System Board
Processors: 1
Memory Size: 896 MB
slot 0: Dual 10/100/1000 Ethernet Controller G20
e0a MAC Address: 00:a0:98:0a:85:54 (auto-1000t-fd-up)
e0b MAC Address: 00:a0:98:0a:85:55 (auto-1000t-fd-up)
slot 0: FC Host Adapter 0a
14 Disks: 2959.2GB
1 shelf with AT-FCX
slot 0: FC Host Adapter 0b
14 Disks: 2959.2GB
1 shelf with AT-FCX
slot 0: SAS Host Adapter 0c
1 shelf with ESAS
slot 0: NetApp ATA/IDE Adapter 0e (0x000001f0)
0e.0 249MB
Baseboard Management Controller:
Firmware Version: 1.1
IPMI version: 2.0
DHCP: off
BMC MAC address: xx:xx:xx:xx:xx:xx
IP address: xx.xx.xx.xx
IP mask: xx.xx.xx.xx
Gateway IP address: xx.xx.xx.xx
BMC ARP interval: 10 seconds
BMC has (1) user: naroot
ASUP enabled: on
ASUP mailhost: whml0242
ASUP from: bali@bali.caom
ASUP recipients: bali@bali.caom,autosupport@netapp.com
Note: "sysconfig -a" command will give you detailed information of filer configuration including disk, shelf details4. How to check for hardware configuration errors on Netapp:
4. The command "sysconfig -c" does a configuration check and reports errors if any.
filer> sysconfig -c sysconfig: There are no configuration errors.
filer>
5. How to get overall status of the Netapp Chassis (head) : The command "environment status chassis all" displays the power supply, fans , temperature sensor, nvram status etc.
filer> environment status chassis all Temperature ok PSU 1 ok PSU 2 ok Voltage ok SYS FAN ok NVRAM6-temperature-3 ok NVRAM6-battery-3 ok. filer>
6. How to view Netapp's software licenses :
Using the license command, you can view the license details on a netapp filer. "license add " will add a license.
filer> license a_sis XXXXXXX cifs XXXXXXX cluster XXXXXXX fcp not licensed flex_clone XXXXXXX flex_scale not licensed flexcache_nfs XXXXXXX gateway_hitachi not licensed http XXXXXXX iscsi not licensed multistore not licensed nearstore_option XXXXXXX nfs XXXXXXX snapmirror XXXXXXX filer>
7. How to view Netapp's current autosupport configuration :
Using the "options autosupport" command, you can view the autosupport configuration details on a netapp filer.
filer> options autosupport
autosupport.cifs.verbose off
autosupport.content complete
autosupport.doit DONT
autosupport.enable on
autosupport.from bali@bali.com
autosupport.local.nht_data.enable off
autosupport.local.performance_data.enable off
autosupport.mailhost xx.xx.xx.xxautosupport.minimal.subject.id hostname
autosupport.nht_data.enable on
autosupport.noteto
autosupport.partner.to
autosupport.performance_data.enable on
autosupport.retry.count 15
autosupport.retry.interval 4m
autosupport.support.enable on
autosupport.support.proxy
autosupport.support.to autosupport@netapp.com
autosupport.support.transport smtp
autosupport.support.url support.netapp.com/asupprod/post/1.0/postAsup
autosupport.throttle on
autosupport.to bali@bali.com
filer>
If you wish to change the autosupport configuration, fire like this e.g. "options autosupport.mailhost xx.xx.xx.xx"
8. How to view Netapp's RLM/BMC/SP current configuration :
Using the "bmc status" "rlm status" & "sp status" command, you can view the current managment console configuration details on a netapp filer.
filer> bmc status
Baseboard Management Controller:
Firmware Version: 1.1 IPMI version: 2.0 DHCP: off BMC MAC address: xx:xx:xx:xx:xx:xx IP address: xx.xx.xx.xx IP mask: xx.xx.xx.xx Gateway IP address: xx.xx.xx.xx BMC ARP interval: 10 seconds BMC has (1) user: naroot ASUP enabled: on ASUP mailhost: xx.xx.xx.xx ASUP from: bali@bali.com ASUP recipients: bali@bali.com, autosupport@netapp.com Uptime: 275 Days, 23:44:25 filer>
If you would like to change the configuration you can use "setup" command to update the current configuration e.g. "bmc setup"
9. How to view Netapp's aggr status:
filer> aggr status
Aggr State Status Options
aggr01_sa online raid_dp, aggr root
filer>
10. How to view Netapp's vol status:
filer> vol status
Volume State Status Options vol0 online raid_dp, flex root vol_anv_tst online raid_dp, flex test_drive online raid_dp, flex guarantee=none vf online raid_dp, flex
filer> To be Continued....
Commenti