Sunday, June 24, 2012

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 details

4. How to check for hardware configuration errors on Netapp: 

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....

21 comments:

  1. Thanx! Good info

    ReplyDelete
  2. Command 10 may be "How 2 view vol status"?

    ReplyDelete
  3. Welcome to my blog.
    True..its typo.

    ReplyDelete
  4. Command 11 "snapmirror status" will tell you the current status of replication with another netapp device.

    ReplyDelete
  5. Command 12 "options autosupport.dot " will generate a ticket and send all logs to netapp support.

    ReplyDelete
    Replies
    1. is actually "options autosupport.doit xxxxx" (where X's are the name you want to give the file)

      Delete
  6. Command 13 "environment status chassis all" will list the power supply's and fans if having a problem with power supply.

    ReplyDelete
  7. Command 14 "ifconfig " will change the IP address of an interface. Also, be sure to check the /etc/rc and/or /etc/hosts file to ensure the entries are correct before changing.

    ReplyDelete
  8. Good information. I'm bookmarking this page. Beginner question - How can I remove a single email address in the "autosupport.partner.to" field. I want to return the field to its default empty parameter. I really don't need the management log and performance data reports every day.
    Thanks

    ReplyDelete
    Replies
    1. Hi,

      use this command to make the receipet list empty.

      options autosupport.to ""

      If you need to remove only one mail id, use.. options autosupport.to <just mention only the e-mail you want to stay in separation of commas (,)

      e.g. options autosupport.to xxxxx@gmail.com,yyyyy@gmail.com, if you need to remove only yyyyy@gmail.com then you can use below command
      options autosupport.to xxxxxx@gmail.com

      Delete
  9. where is the next page?

    ReplyDelete
    Replies
    1. Soon, you will see here. I'm busy with some migration.

      Delete
  10. What for used "sysconfig -r" command?

    ReplyDelete
  11. Display aggregates and plexes

    ReplyDelete
  12. how can i subscribe your blog using my gmail???

    ReplyDelete
  13. Please give the details about san and nas migration in netapp briefly

    ReplyDelete
  14. please give the command for listing the aggregate count

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. I read your post when it was fresh. I stumbled on this link again while searching for something else. Since this appears to be favored by Google it is worth pointing out MS has changed its mind.

    NetApp skills are highly recommended in today's job market. NetApp Certification Exams provides industry validation for your skills as a NetApp technical professional.
    KillerDumps offers the entire IT exam dump file and practice test simulator at a discounted price with 100% guaranteed success. We provide ongoing after-sales support for NetApp Q&A and practice software to address any inconvenience.

    You can get NetApp Exam Dumps

    ReplyDelete
  17. 100% Pass Guarantee is offered by us after ISTQB Advanced Test Manager ATM exam preparation, with Prepare4Test’s exam dumps. You can pass the ATM exam in the first go with good marks, and it will be easy for you to attempt all ATM questions.

    ReplyDelete
  18. Prepare for Linux Foundation CKS exam with our preparation material with full confidence. We offer you 100% real Certified Kubernetes Security Specialist Exam Linux Foundation CKS exam dumps for your better results. Prepare4Test’s CKS pdf dumps are verified by Linux Foundation Gurus.

    ReplyDelete

Hello

Hello