Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

AIX : HMC - how to connect to a lpar console?

Posted on 2012-09-06
7
Medium Priority
?
1,862 Views
Last Modified: 2012-09-06
Hi,

SSH is not working on a LPAR.

How to connect to a LPAR console from HMC via CLI?

I know what IP address has the LPAR.
0
Comment
Question by:g0all
  • 4
  • 3
7 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 38372107
The interactive way:

Log in to HMC as hscroot and issue:

vtmenu

You will see a list of managed systems.
Choose the desired one (type its number and <Enter>)

Now you will see a list of LPARs.
Again, choose the desired one (type its number and <Enter>)

You will see the login prompt.

When your work is done exit the shell with "exit" as usual, then type

~~.

(tilde tilde dot)

to close the virtual terminal.

The non-interactive way:

Log in to the HMC as hscroot, then issue:

mkvterm -m managed_system -p partition_name

Again, you should see the login prompt. Terminate shell and session as described above.

wmp
0
 
LVL 1

Author Comment

by:g0all
ID: 38372125
Great.

Logged in, but cannot issue any commands:

ksh: 0403-031 The fork function failed. There is not enough memory available

Is there a way to restart LPAR via HMC?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38372202
Yep.

To shut down immediately and restart:

chsysstate -r lpar -m managed_system -n lpar_name -o shutdown --immed --restart

Note: Only values in italic are variables to be replaced with actual values,
so e.g. "-r lpar" has to be entered literally!

"man chsysstate" has good additional info!

Thx for the points!

wmp
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:g0all
ID: 38372213
OK, but cannot manage how to find out managed_system.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38372257
If you used the interactive method of starting a virtual terminal you should already have seen (and selected) the proper managed system on the first selector screen.

Anyway, see all your managed systems with:

lssyscfg -r sys -F name

To see their LPARs use the managed_system names obtained with the above, one by one, and run:

lssyscfg -m managed_system -F name
0
 
LVL 1

Author Comment

by:g0all
ID: 38372445
MILLION Thanks WMP!

Was able to reboot. Machine ran out of paging space.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38372459
You're always welcome!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question