Thursday, July 12, 2012

100 useful commands ...(11 to 20)

11. How do I determine the firmware version my drives and shelves are running? How do I determine which version they should be running?
a. Use sysconfig –v command

        NetApp Release 8.0.2P3 7-Mode: Thu Oct 13 15:56:25 PDT 2011
        System ID: 1574658697 (WHMN23905); partner ID: 1574658663 (WHMN23906)
System Serial Number: 700000838568 (WHMN23905)
       
        ....
00.8 : NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.9 : NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.10: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.11: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.12: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.13: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.14: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.15: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.16: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.17: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.18: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.19: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.20: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.21: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.22: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                00.23: NETAPP   X412_S15K7560A15 NA00 560.0GB (1147307688 520B/sect)
                Shelf   0: IOM3 Firmware rev. IOM3 A: 0131 IOM3 B: 0131
        slot 0: SAS Host Adapter 0b (PMC-Sierra PM8001 rev. C, SAS, <UP>)
                Firmware rev:       01.11.00.00
                Base WWN:           5:00a098:00085fa:0c


Where             NA00 è is Disk FW version
                        Shelf   0: IOM3 Firmware rev. IOM3 A: 0131 IOM3 B: 0131 è 0130 is Shelf FW version its SAS disk shelf with IOM 3 module

Once you identified your disk and shelf firmware version of your environment, you can cross check with http://support.netapp.com/NOW/download/tools/diskfw/ site for latest disk-fw availability, if you don't have latest FW version you can upgrade your FW version.
For this case the disk model is "X412_S15K7560A15", so you need to compare by using this model from above web link.

For my case I already running latest disk FW so its require to upgrade FW until I get the new one.


SP-412A-R5/
X412A-R5
Seagate 15k7 600 GB 15k RPM SAS (520 BPS)
NETAPP X412_S15K7560A15
Active
DS4243
7.3.2
Yes

Initial FW release
08-JAN-10


For shelf FW go to http://support.netapp.com/NOW/download/tools/diskshelf/ weblink you can compare with current FW version, my case i have shelf FW version is IOM3 A/B: 0131. But from the weblink comparison there is a latest FW available to upgrade which is IOM3 rev 0132, so I require upgrading my shelf FW. For All SAS disk-shelf with IOM module FW upgrades is non-disruptive one.


SP-5712A-R6
IOM3, SAS, 3Gb, R6 for DS4243 Shelf
FAS2XXX systems
FAS3XXX systems
FAS6XXX systems
IOM3 Firmware rev: 0132
This release of IOM3 firmware increases reliability, availability and supportability.
16-DEC-11


12. NetApp Storage system automation using ssh and rsh commands

SSH is very much a secured protocol and a simple following statement states the need of SSH, rsh is a remote shell program that gives you a login connection on a remote machine. The protocol it uses passes your password in cleartext! Anyone sniffing the network between the two machins can capture your password.
ssh uses black-magic encryption to encode your datastreams so that only the two machines can understand each other. This is a great scheme provided you can trust both machines!

To make ssh/rsh to work for scripting the following steps should be followed/configured. Normally i use to run these type of scripts from DFM server
rsh.access host=xx.xx.xx.xx
rsh.enable on
trusted.hosts *

e.g.  rsh <filername/IP> <command> >> C:\log.txt
# rsh filer12 storage show disk -T
DISK                  SHELF BAY SERIAL           VENDOR   MODEL      REV TYPE
--------------------- --------- ---------------- -------- ---------- ---- ------
0d.16                   1    0  xxxxxxxxxxxxxxxx NETAPP   X276 NA07 FCAL
0d.17                   1    1  xxxxxxxxxxxxxxxx NETAPP   X276 NA07 FCAL
0d.18                   1    2  xxxxxxxxxxxxxxxx NETAPP   X276 NA07 FCAL
0d.19                   1    3  xxxxxxxxxxxxxxxx NETAPP   X276 NA07 FCAL
0d.20                   1    4  xxxxxxxxxxxxxxxx NETAPP   X276 NA07 FCAL
0d.21                   1    5  xxxxxxxxxxxxxxxx NETAPP   X276 NA07 FCAL
0d.22                   1    6  xxxxxxxxxxxxxxxx NETAPP   X276 NA07 FCAL



6 comments:

  1. I could see only 11th commands, hope you are still in process of adding the rest.


    Thanks,
    Raj

    ReplyDelete
    Replies
    1. Hello,

      Was busy with some migration works, will start adding information next week.

      Bali

      Delete
  2. Could you share the rest of commands from 13 to 100 pls

    ReplyDelete
  3. your post's are so useful. pls share the links for rest of the Netapp commands

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

    ReplyDelete
  5. plz add remaining post so useful

    ReplyDelete

Hello

Hello