Skip to main content

developerWorks >  AIX and UNIX  >  Forums  >  PowerVM Forum  >  developerWorks

how to access the virtual serial port of an lpar runing over a vios    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is answered.

Permlink Replies: 7 - Pages: 1 - Last Post: Nov 10, 2009 2:45 AM Last Post By: rubisher Threads: [ Previous | Next ]
rubisher

Posts: 17
Registered: Apr 25, 2007 02:31:09 AM
how to access the virtual serial port of an lpar runing over a vios
Posted: Nov 07, 2009 12:43:34 PM
 
Click to report abuse...   Click to reply to this thread Reply
Hello all,

For testing purpose, we have a p51A running a vios (iir 2.1 not yet fp 22 but the previous one) manage with an hmc.

This vios is the basis to run 3 other lpar on this system and for each of those lpar it was defined (also by default) 2 serial port (01). One of this lpar is a small testing linux installation for which I would like to have access to one of its serial port to collect debugging information at its startup into a file.

Any idea how can I have access to this serial port:
- do I have to access it thought the physical port of the server with a serial cable?
- can I access it thanks to some kind of virtual connection from another lpar (here running aix) or the vios itself?

Thanks in advance for all additional advise,
J.
georgetanner

Posts: 134
Registered: Mar 17, 2005 04:16:29 PM
Re: how to access the virtual serial port of an lpar runing over a vios
Posted: Nov 09, 2009 12:03:40 AM   in response to: rubisher in response to: rubisher's post
 
Click to report abuse...   Click to reply to this thread Reply
The serial ports are there for TTY traffic - that is, for their consoles. You can access this via 'mkvterm' on the HMC.
rubisher

Posts: 17
Registered: Apr 25, 2007 02:31:09 AM
Re: how to access the virtual serial port of an lpar runing over a vios
Posted: Nov 09, 2009 08:05:51 AM   in response to: georgetanner in response to: georgetanner's post
 
Click to report abuse...   Click to reply to this thread Reply
Well I know well mkterm and even vtmenu but how should I log traffic which those prgm mainly receive?
e.g. I try (as I would do in a 'usual' unix env): # mkvterm -m MySystemID -p MyPartition name 2>&1 | tee /var/tmp/Pname.log
But this failed because restricted shell of hscroot user ignore 'tee', though.

Any other idea?

Tx,
J.
Jim_Partridge

Posts: 84
Registered: Oct 25, 2005 04:16:45 PM
Re: how to access the virtual serial port of an lpar runing over a vios
Posted: Nov 09, 2009 08:29:39 AM   in response to: rubisher in response to: rubisher's post
 
Click to report abuse...   Click to reply to this thread Reply
AIX has long had the console logging feature, where you can have console I/O written to the log file of your choice. Will that meet your needs?
seroyer

Posts: 156
Registered: Oct 25, 2005 03:36:38 PM
Re: how to access the virtual serial port of an lpar runing over a vios
Posted: Nov 09, 2009 09:09:26 AM   in response to: rubisher in response to: rubisher's post
 
Click to report abuse...   Click to reply to this thread Reply
Well, you can run the mkvterm command remotely via ssh from another system. You can run it non-interactively (i.e., ssh hscroot@myhmc mkvterm ...) and set up ssh keys so that it doesn't prompt for password.

Steve
seroyer

Posts: 156
Registered: Oct 25, 2005 03:36:38 PM
Re: how to access the virtual serial port of an lpar runing over a vios
Posted: Nov 09, 2009 09:16:39 AM   in response to: rubisher in response to: rubisher's post
 
Click to report abuse...   Click to reply to this thread Reply
With some additional work on the HMC, you can set it up so that you can access client partition console from VIOS mkvt command, but you will have the same problem with redirecting output in the restricted shell in VIOS.

I think you can plug a virtual serial client adapter in any LPAR, pointing it to the LPAR for which you want to access the console and virtual slot 0. The catch is that you will need a device driver. VIOS has one. AIX does not. There may be one for Linux, not sure.

One other point that may or may not concern you: HMC mkvterm does not have guaranteed delivery. So some data may be lost in the transmission if the system is under high load.

Steve
rubisher

Posts: 17
Registered: Apr 25, 2007 02:31:09 AM
Re: how to access the virtual serial port of an lpar runing over a vios
Posted: Nov 10, 2009 01:42:08 AM   in response to: Jim_Partridge in response to: Jim_Partridge's post
 
Click to report abuse...   Click to reply to this thread Reply
Jim,

Agree but what do you do if kernel failed to boot (I spoke here more about linux or grub?)

Tx,
J.
rubisher

Posts: 17
Registered: Apr 25, 2007 02:31:09 AM
Re: how to access the virtual serial port of an lpar runing over a vios
Posted: Nov 10, 2009 02:45:05 AM   in response to: seroyer in response to: seroyer's post
 
Click to report abuse...   Click to reply to this thread Reply
Steve,

I ignored the mkvt cmdl: just need to add dynamically to the vios configuration a 'client' serial adapter for my partion ;<)

Well vios restricted shell knows 'tee' so am I happy (I check that works fine).

Tx a lot,
J.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums