SAN EMC VNX - Commandes NaviCli

De Wiki de Romain RUDIGER
Aller à : navigation, rechercher

Cette page n'est qu'une note de certaines commandes sous Windows avec navicli...

=================
==Unable to delete old secondary LUN, Unable to add old secondary LUN in a mirror
=================
for /f "tokens=1,2,3,4 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa01 mirror -async -addimage -name MIRROR-%b -arrayhost 1.1.1.4-lun %d -enddelay 15 )
Adding async mirror image failed.  Specified LU not available for mirroring.
for /f "tokens=1,2,3,4,5,6,7,8 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa02 lun -destroy -name IMAGE-%b -o )
Cannot unbind LUN because its being used by a feature of the Storage System
for /f "tokens=1,2,3,4,5,6,7,8 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa02 getlun -messner %d -stack )
Listed Driver:             K10RollBackAdmin
                            K10FarAdmin
                            K10SnapCopyAdmin
for /f "tokens=1,2,3,4,5,6,7,8 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa02 mirror -async -setfeature -off -lun %d )
for /f "tokens=1,2,3,4,5,6,7,8 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa02 getlun -messner %d -stack )
Listed Driver:

=================
==Create LUN
=================
for /f "tokens=1,2,3,4,5,6,7,8 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa02 lun -create -type NonThin -capacity %c -sq gb -poolName %d -sp %e -name IMAGE-%a )
=================
==Create Mirror session
=================
for /f "tokens=1,2,3,4 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa01 mirror -async -create -name MIRROR-%b -lun %c -o )
=================
==Add secondary LUN
=================
for /f "tokens=1,2,3,4 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa01 mirror -async -addimage -name MIRROR-%b -arrayhost 1.1.1.4-lun %d -enddelay 15 )

=================
==Create group
=================
NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa01 mirror -async -creategroup -name MIRROR-SERVER-BDD1 -enddelay 15 -o
NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa01 mirror -async -creategroup -name MIRROR-SERVER-BDD2 -enddelay 15 -o
=================
==Add to group
=================
for /f "tokens=1,2,3,4 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa01 mirror -async -addtogroup -name MIRROR-%a -mirrorname MIRROR-%b )
 
=================
==Create snapshot
=================
for /f "tokens=1,2,3,4 delims=," %a in ( list.txt ); do ( NaviSECCli.exe -User "sysadmin" -Password "xxx" -Scope 0 -Address sanspa02 snapview -createsnapshot %b -snapshotname SNAPSHOT-%a )