November 19, 2012

VNX/Clariion - NaviSecCli Commands


EMC provides a very useful tool to manage EMC storage boxex, previously it was called Navisphere but now it is called Unisphere. In presence to these tools once could easily say that he/she do not need to remember all naviseccli commands to work on commandline but these commands are very useful in situation where you are unable to access GUI.


Here I am trying to list all possible commands that are used to perform maintenance task on VNX/Clariion


Storage Pool
Creating a new storage pool on VNX/Clariion

naviseccli -h [SP_IP] storagepool -create -disks [bus_enc_disk] -rtype [raid_type] -name [pool_name]

Displaying all configured storage pools on a VNX/Clariion

naviseccli -h [SP_IP] storagepool -list

Expanding an existing storage pool on a VNX/Clariion

naviseccli -h [SP_IP] storagepool -expand -id [pool_id] -disks [bus_enc_disk] -rtype [raid_type]

Creating a new storage group on a VNX/Clariion

naviseccli -h [SP_IP] storagegroup -create -gname storagegrp_name]

LUNs opoeration

Display information for all LUNs:

naviseccli -h <SP_IP> getlun -uid -rg -type -drivetype -capacity

Display information for a particular LUN:
naviseccli -h <SP_IP> getlun <CX_lun_ID> -uid -rg -type -drivetype -capacity

Create LUN from a Raid Group
naviseccli -h <SP_IP> bind <raid_type> <CX_lun_ID> -rg <rg_number> -sp <SP> -sq <size-qualifier> -cap <capacity>

Creating a LUN from a storage pool on a VNX/Clariion
naviseccli -h [SP_IP] lun -create -type [lun_type] -capacity [capacity] -sq gb -poolID [pool_id] -sp [owning_SP] -l [lun_id] -name “[lun_name]“

Adding a LUN to an existing storage group on a VNX/Clariion
naviseccli -h [SP_IP] storagegroup -addhlu -gname [storagegrp_name] -hlu [hlu#] -alu [alu#]

Host Operation

Registering a new Host to the VNX/Clariion array
naviseccli -h [SP_IP] storagegroup -setpath -o -hbauid [hba_wwn] -sp [SP] -spport [SP_port] -type [host_type] -ip [host_IP] -host [hostname] -failovermode [failovermode] -arraycommpath [arraycommpath] -unitserialnumber [unitserialnumber]

Adding a Host to an existing storage group on a VNX/Clariion
naviseccli -h [SP_IP] storagegroup -connecthost -host [hostname] -gname [storagegrp_name]


SP Reboot and Shutdown GUI
naviseccli –h <SP_IP_Address> rebootsp
naviseccli –h <SP_IP_Address> resetandhold

Generating SP Collects
naviseccli -h <SP_IP_Address> spcollect

List SP collect files stored on the storage
naviseccli -h <SP_IP_Address> managefiles -retrieve -path <local_path> -file <file_name> -o