To list all users in a HMC
# lshmcusr
To list only user names and managed resource roles for all HMC users :
# lshmcusr -F name:resourcerole
To create a user :
# mkhmcusr -u User_Id -a ROLE -d DESCRIPTION --passwd PASSWORD -M PASSWD_EXPIRATION_DAYS
To remove a user :
# rmhmcusr -u USER_NAME
To change an hmc user's password :
# chhmcusr -u User_Name -t passwd -v New_Password
To change the task role for the user "user1" to hmcoperator :
# chhmcusr -r user1 -t taskrole -v hmcoperator
Some other task roles ->
hmcsuperadmin, hmcoperator, hmcviewer, hmcpe, hmcservicerep or a user defined task role
To list all managed resource objects :
# lsaccfg -t resource
To list all managed resource roles :
# lsaccfg -t resourcerole
To create a task role using a config file :
# mkaccfg -t resourcerole -f /tmp/fil1
To create a task role :
# mkaccfg -t taskrole -i "name=tr1,parent=hmcsuperadmin,"resources=cec:chcod+lscod+lshwres,lpar:chssyscfg+lssyscfg+mksyscfg""
To change a task role :
# chaccfg -t taskrole -i "name=tr1,"resources=cec:chhwres+chsysstate,lpar:chssyscfg+chled+chhwres""
To remove a task role :
# rmaccfg -t taskrole -n tr1
No comments:
Post a Comment