Helpful AIX Commands to keep -Enjoy


 
Thread Tools Search this Thread
Operating Systems AIX Helpful AIX Commands to keep -Enjoy
# 8  
Old 12-04-2009
working with lpars from hmc command line

show managed frames attached to a hmc
Code:
lssyscfg -r sys -F name:type_model:serial_num

show managed lpars on a frame
Code:
lssyscfg -m <frame> -r lpar -F name

show profiles from a specific lpar
Code:
lssyscfg -r prof -m <frame> --filter "lpar_names=<lpar>"

Open /close a console on a hmc
Code:
mkvterm -m <framename> -p <lparname>
rmvterm -m <framename> -p <lparname>

activate rsct subsystem to perform dlpar activities (on an AIX lpar):
Code:
/usr/sbin/rsct/install/bin/recfgct

Add resources to an lpar dynamically
Code:
chhwres -m <frame>  -p <lpar> -r mem -o a -q <1024>
chhwres -m <frame>  -p <lpar> -r proc -o a --procunits 1.2 (ent)
chhwres -m <frame>  -p <lpar> -r proc -o a --procs 2 (virt)

Remove resources from an lpar dynamically
Code:
chhwres -m <frame>  -p <lpar> -r mem -o r -q <1024>
chhwres -m <frame>  -p <lpar> -r proc -o r --procunits 1.2 (ent)
chhwres -m <frame>  -p <lpar> -r proc -o r --procs 2 (virt)

shutdown lpar forced
Code:
chsysstate -m <frame> -r lpar -n <lpar> -o shutdown –-immed

To perform a partition shutdown
Code:
chsysstate -m <frame> -r lpar -n <lpar> -o osshutdown

To perform a restart of a partition after initiating a dump
Code:
chsysstate -m <frame> -r lpar -n <lpar> -o dumprestart

boot lpar
Code:
chsysstate -m <frame> -r lpar -n <lpar> -o on -f <profile>

To perform a partition boot into sms:
Code:
chsysstate -m <frame> -r lpar -n <lpar> -o on –f <profile> -b sms

To perform a partition boot into diagnostic with default bootlist
Code:
chsysstate -m <frame> -r lpar -n <lpar> -o on –f <profile> -b dd

To perform a partition boot into diagnostic with stored bootlist
Code:
chsysstate -m <frame> -r lpar -n <lpar> -o on –f <profile> -b ds

To perform a partition boot into open firmware OK prompt
Code:
chsysstate -m <frame> -r lpar -n <lpar> -o on –f <profile> -b of

remove lpar from frame
Code:
rmsysstate -r lpar -m <frame> - n <lpar>

show free processor/memory on specific frame/lpar
Code:
lshwres -r proc -m  <frame> --level sys
lshwres -r proc -m  <frame> --level lpar
lshwres -r mem -m  <frame> --level sys
lshwres -r mem -m  <frame> --level lpar

show io resources in a frame
Code:
lshwres -r io --rsubtype unit -m  <frame>
lshwres -r io --rsubtype bus -m  <frame>
lshwres -r io --rsubtype slot -m  <frame>

To power on a frame:
Code:
chsysstate -m <frame> -r sys -o {on | onstandby}

To power off a frame:
Code:
chsysstate -m <frame> -r sys -o off [--immed]

To restart a frame:
Code:
chsysstate -m <frame> -r sys -o off --immed --restart

# 9  
Old 12-08-2009
I am new to this forum and I am not terribly interested in roiling the waters, but I feel the need to respond to this thread.

Google Analytics (and my server logs) tell me where people are coming from (when they come to my site) and this thread showed up recently. I just so happens that I am recently a member, so I am taking this opportunity to weigh in.

The QuickSheet post was my content. It is free to distribute as long as credit to the author and the site name is included. (That is my "payment" for the work of putting these together.) This BSD-ish license is explicitly listed at the end of the document. The really frustrating part is when MY own content beats me in the SERPs - and then no reference is given to me.

Had the cut-n-paste operation been complete, the URL would have been included and then all would be cool. But the result is a dated version (bad for the readers) and a frustrated author (bad for me).

The 2.0.0 version is much better with updated content, support for 6.1, and better formatting. The QuickStart page has significant more content but is not in the "tri-fold" format.
# 10  
Old 12-09-2009
Good day
we are not in anyway claiming what you have complied and believe me its good that you have taken your time and organized this, thank you! what we are doing only is trying to make info available to others, I agree with you that it seems to you that your effort its not recognized, but believe you me its nothing like that, we are not in any case taking this personal and privatizing it. We are on this forum to help each other, we Google we post, we scan we post, we hit a bottom rock we ask for info, we get it we post, otherwise forums like this wont be available if it wasn’t for people like you and me. What is the use of a forum if it’s empty? I would be proud if I were you knowing that I made change and shared knowledge with the world.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Red Hat

i want to enjoy and rock my career as linux admin

hello i want to build my career as linux admin.I have completed my Engineering and had one month training on LINUX ADMIN course.I am doing well now in basics.Kindly provide suggetions or advice or books etc etc so that it will enhance my knowledge in linux Redhat. (1 Reply)
Discussion started by: dillipkmrpadhy
1 Replies

2. AIX

Processing of commands in AIX

Whenever we type in a command of AIX, how does it get interpreted by AIX?(backend processing) (2 Replies)
Discussion started by: AIXlearner
2 Replies

3. What is on Your Mind?

Very Helpful Site

I haven't had to post a question in the forum for sometime now. I have been able to find the answers to all of my questions simply by looking around and usually find them just by reviewing the new posts. I just wanted to thank you all for having and participating in this site - it has been so... (0 Replies)
Discussion started by: Barb
0 Replies
Login or Register to Ask a Question