SMCLI Commands for NetApp E-Series

Issue

I needed to remove a disk from a disk pool on an E-series 5700 (http://www.jordansphere.co.uk/remove-drives-from-pool-in-netapp-e-series/ ). This can only be done via SMCLI – which i’d never used before. Here are few useful steps and commands I found on the way.

Steps

Firstly I needed to install the E-Series Santricity Manager (despite the my E-Series being Web based). I downloaded the latest 11.53 and installed as “management station” mode

Being new to SMCLI I ran a few show commands first to familiarize myself with the process:

Show all volumes on array

SMcli -clientType https {MGMT_IP_OF_SAN} -u admin -p myPassword -c "show allVolumes;" -k

Show disk status in Shelf 1, Drawer 1, Drive 1

SMcli -clientType https {MGMT_IP_OF_SAN} -u admin -p myPassword -c "show drive [1,1,1] summary;" -k

Output:

Performing syntax check…

Syntax check complete.

Executing script…

SUMMARY
Number of drives: 1
Current media type(s): Hard Disk Drive (1)
Current interface type(s): SAS (1)
Drive capabilities: Data Assurance (DA) (1)

BASIC:

  SHELF, DRAWER, BAY  STATUS   CAPACITY   MEDIA TYPE       INTERFACE TYPE  CURRENT DATA RATE  PRODUCT ID       FIRMWARE VERSION  CAPABILITIES
  1,    1,      1     Optimal  10.692 TB  Hard Disk Drive  SAS             12 Gbps            HUH721212AL5204  NE00              DA

DRIVE CHANNELS (Controller A):

  SHELF, DRAWER, BAY  PREFERRED CHANNEL  REDUNDANT CHANNEL
  1,    1,      1     1                  2, 3

Script execution complete.

SMcli completed successfully.