IBM DS8000 manual Usage examples, Example 11-10 Return code examples

Models: DS8000

1 450
Download 450 pages 61.48 Kb
Page 265
Image 265

echo A DS CLI application error occurred. goto end

:level5

echo An authentication error occurred. Check the userid and password. goto end

:level4

echo A DS CLI Server error occurred. goto end

:level3

echo A connection error occurred. Try pinging 10.0.0.1 echo If this fails call network support on 555-1001 goto end

:level2

echo A syntax error. Check the syntax of the command using online help. goto end

:level0

echo No errors were encountered. :end

Using this sample script, Example 11-10shows what happens if there is a network problem between the DS CLI client and server (in this example a 2105-800). The DS CLI provides the error code (in this case CMUN00018E) which can be looked up in the DS CLI Users Guide (referred to in “Introduction” on page 232). The DS CLI also provides the exit status (in this example, exit status = 3). Finally, the batch file interprets the return code and provides the user with some additional tips to resolve the problem.

Example 11-10 Return code examples

C:\Program Files\IBM\dscli> checkflash.bat

CMUN00018E lsflash: Unable to connect to the management console server exit status of dscli = 3

A connection error occurred. Try pinging 10.0.0.1 If this fails call network support on 555-1001

C:\Program Files\IBM\dscli>

11.8 Usage examples

It is not the intent of this section to list every DS CLI command and its syntax. If you need to see a list of all the available commands, or require assistance using DS CLI commands, you are better served by reading the IBM TotalStorage DS8000 Command-Line Interface User’s Guide, SC26-7625, and IBM TotalStorage DS6000 Command-Line Interface User’s Guide, SC26-7681. Or you can use the online help. Example 11-11gives a sample configuration script showing most of the storage management commands that are used on a DS6000 or DS8000.

Example 11-11 Example of a configuration script

#The following command creates a CKD extent pool (CKD extent pool P0 will be created) mkextpool -dev IBM.2107-9999999 -rankgrp 0 -stgtype ckd ckd_ext_pool0

#The following command creates an array (array A0 will be created)

mkarray -dev IBM.2107-9999999 -raidtype 5 S1

#The following command creates a rank (CKD rank R0 will be created) mkrank -dev IBM.2107-9999999 -array A0 -stgtype ckd

Chapter 11. DS CLI 243

Page 265
Image 265
IBM DS8000 manual Usage examples, Example 11-10 Return code examples, Example 11-11 Example of a configuration script