IBM DS6000 Series Server User Manual


 
214 DS6000 Series: Concepts and Architecture
Having added the userid called csadmin, the password has been saved in an encrypted file
called
security.dat. By default, the file is placed in:
c:\Documents and settings\<Windows user name>\DSCLI\security.dat
or
$HOME/dscli/security.dat
You can however use the
-pwfile parameter to place this file anywhere.
Setting up a profile
Having created a userid, you will need to edit the profile used by the DS CLI to store the
S-HMC IP address (or fully qualified name) and other common parameters. By default profile
is located at C:\Program Files\IBM\dscli\profile\dscli.profile or /opt/ibm/dscli/dscli.profile. An
example of a
secure profile is shown in Example 10-15.
Example 10-15 Example of a dscli.profile file
#DS CLI Profile
#
# Management Console/Node IP Address(es) are specified using the hmc parameter
# hmc1 and hmc2 are equivalent to -hmc1 and -hmc2 command line options.
# hmc1 is cluster 1 of 2105 800 23953
hmc1:10.0.0.1
#hmc2:127.0.0.1
# Username must be specified if a password file is used
username: csadmin
# Password filename is the name of an encrypted password file
# This file is located at C:\Program Files\IBM\dscli
pwfile: security.dat
# Default target Storage Image ID
# If the -dev parameter is needed in a command then it will default to the value here
# "devid" is equivalent to "-dev storage_image_ID"
# the default server that DS CLI commands will be run on is 2105 800 23953
devid: IBM.2105-23953
If you don’t want to create an encrypted password file, or do not have access to a simulator or
real DS MC, then you can specify the password in plain text. This is done either at the
command line or in a script or in the profile. This is not recommended since the password
itself is now not as secure. An example of a profile that contains plain text authentication
details is shown in Example 10-16.
Example 10-16 Example of a DS CLI profile that specifies the username and password
#DS CLI Profile
# hmc1 is cluster 1 of 2105 800 23953
hmc1:10.0.0.1
#The username to log onto the ESS
username: csadmin
# The password for csadmin:
password: passw0rd