Ibm Xiv Storage System Xcli Utility User Manual

IBM XIV Storage System Model 114 for machine types 2810 and 2812 is now offering the 3 Terabyte (TB) Serial-Attached SCSI (SAS) hard disk drives populated in the XIV interface and data modules. Key prerequisites XIV Storage System Gen3 Model 114 with IBM XIV Storage System Software Version 11.0.1, or later, installed. Planned availability date. Aug 08, 2011  How to Power off your IBM XIV 1. This will start applying power to the components in the rack, and initiate the boot process forthe Interface Modules and Data Modules.Power-offPowering the system off must be done solely from either the XIV GUI or the XCLI. You mustbe logged on as Storage Administrator (storageadmin role).

Permalink

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up
Find file Copy path
Cannot retrieve contributors at this time
Ibm Xiv Storage System Xcli Utility User Manual
#!/bin/bash
#
# Creates snapshot of specified XIV volume
#
# Matvey Marinin 2014
#
# $1 = XIV name (xiv1, xiv2)
# $2 = volume name
# $3 = (optional) existing snapshot to overwrite
#
set -e
#XCLI path
XCLI=/opt/ibm/xiv/xcli
functionusage {
echo'Usage: $(basename $0) <XIV name> <master volume SCSI WWID> [<pre-created snapshot volume SCSI WWID>]'
exit 2
}
if [[ -z'$1'||-z'$2' ]];then
usage
fi
XIV=$1
MASTER_WWID=$(echo '$2'| awk '{if (length($0)>16) print substr($0,2); else print $0;}')#'#
SNAPSHOT_WWID=$(echo '$3'| awk '{if (length($0)>16) print substr($0,2); else print $0;}')#'#
## Get XIV volume list with WWIDs
echo'Getting XIV volume list'
VOLUME_LIST=$('$XCLI' -m '$XIV' vol_list -l -t 'name,wwn'|tail -n+2)
#echo '$VOLUME_LIST'
MASTER_VOL=$(echo'$VOLUME_LIST'| awk -v IGNORECASE=1 -v wwid='$MASTER_WWID''$2wwid {print $1;}')#'# fix syntax highlighting
[[ -n'$MASTER_VOL' ]] || (echo 'Could not find volume with WWID=$MASTER_WWID';exit 1;)
#echo 'Master volume name=$MASTER_VOL'
## Check if existing snapshot is specified in a command line
if [[ -n'$SNAPSHOT_WWID' ]];then
## Overwrite existing snapshot
SNAPSHOT_VOL=$(echo'$VOLUME_LIST'| awk -v IGNORECASE=1 -v wwid='$SNAPSHOT_WWID''$2wwid {print $1;}')#'# fix syntax highlighting
[[ -n'$SNAPSHOT_VOL' ]] || (echo 'Could not find volume with WWID=$SNAPSHOT_WWID';exit 1;)
#echo 'Snapshot volume name=$SNAPSHOT_VOL'
echo'Overwriting snapshot $SNAPSHOT_VOL of volume $MASTER_VOL'
'$XCLI' -m '$XIV' snapshot_create vol='$MASTER_VOL' overwrite='$SNAPSHOT_VOL'
else
## Create new snapshot
echo'Creating new snapshot of volume $MASTER_VOL'
'$XCLI' -m '$XIV' snapshot_create vol='$MASTER_VOL'
fi
  • Copy lines
  • Copy permalink

IBM-XCLI

This module provides a simple object oriented interface to the IBM XIV XCLI utility.

The IBM XIV XCLI is a utility providing a command line interface to an IBM XIV storage arrayexposing complete management and administrative capabilities of the system.

This module provides a simple interface to the IBM XIV XCLI utility by providing convenientwrapper methods for a number of XCLI native method calls. These methods are named for and areanalagous to their corresponding XCLI counterparts; for example, a call to the vol_list methodexposed by this module returns the same data as would an execution of the native vol_listcommand would be expected to return.

The primary difference between the return value of method calls exposed by this module andthe return value of native XCLI calls is that methods in this module using native method namesreturn a nested hash rather than whitespace delimited or comma-separated data.

Ibm Xiv Storage System Xcli Utility User Manual 2017

Note that if access to the raw data as returned by the XCLI native method call is required thenthe raw methods can be used to retrieve CSV data as retured directly from the XCLI. See theRAW METHODS section in the official documentation for further details.

The XCLI utility must be installed on the same machine as from which the script is ran.

INSTALLATION

To install this module, run the following commands:

Manual

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with theperldoc command.

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright (C) 2012 Luke Poskitt

Ibm Xiv Storage System Xcli Utility User Manual 2016

This program is free software; you can redistribute it and/or modify itunder the terms of either: the GNU General Public License as publishedby the Free Software Foundation; or the Artistic License.

Ibm Xiv Storage System Xcli Utility User Manual Pdf

See http://dev.perl.org/licenses/ for more information.