Tanti Technology

My photo
Bangalore, karnataka, India
Sandeep Kumar | Founder, Tanti Technologies At Tanti Technologies, I share practical knowledge, hands-on tutorials, and real-world solutions across Python, SQL, Docker, Kubernetes, CI/CD, AWS, Azure, Machine Learning, Generative AI, and Agentic AI. My mission is to simplify complex technologies and provide actionable insights that help developers, engineers, and businesses learn faster, build better, automate smarter, and innovate with confidence. 🚀 Learn • Build • Automate • Innovate Follow Tanti Technologies for practical technology insights and next-generation AI solutions.

Friday, 24 June 2011

HMC Tips III - User Management

HMC Tips III - User Management

1. To list all users in a HMC

# lshmcusr

2. To list only user names and managed resource roles for all HMC users :

# lshmcusr -F name:resourcerole

3. To create a user :

# mkhmcusr -u User_Id -a ROLE -d DESCRIPTION --passwd PASSWORD -M PASSWD_EXPIRATION_DAYS

3. To remove a user :

# rmhmcusr -u USER_NAME

4. To change an hmc user's password :

# chhmcusr -u User_Name -t passwd -v New_Password

5. To change the task role for the user "user1" to hmcoperator :

# chhmcusr -r user1 -t taskrole -v hmcoperator

Available task roles are
hmcsuperadmin, hmcoperator, hmcviewer, hmcpe, hmcservicerep or a user defined task role

6. To list all managed resource objects :

# lsaccfg -t resource

7. To list all managed resource roles :

# lsaccfg -t resourcerole

8. To create a task role using a config file :

# mkaccfg -t resourcerole -f /tmp/fil1

9. To create a task role :

# mkaccfg -t taskrole -i "name=tr1,parent=hmcsuperadmin,"resources=cec:chcod+lscod+lshwres,lpar:chssyscfg+lssyscfg+mksyscfg""

10. To change a task role :

# chaccfg -t taskrole -i "name=tr1,"resources=cec:chhwres+chsysstate,lpar:chssyscfg+chled+chhwres""

11. To remove a task role :

# rmaccfg -t taskrole -n tr1

No comments:

Post a Comment