I don't think we've seen a linux command tip lately so here's one that I
found extremely useful a few weeks ago. We were installing 4 different
servers at the same time with the same OS. Being able to use the console
via LOM (lights out management) we were able to attach to the machines with
*pconsole* and do almost all of the install steps at the same time. Only
things like individual hostnames and IP addresses required one-on-one
action.
HOW-TO:
Four xterms were opened and then pconsole was run in a 5th. After determing
the device for each of the other terms we then went into command mode and
"attached" to them. Here is some screen capture from a session.
Many of you may have used pconsole or dsh to work with clustered systems,
for me this was new but I can see where it could have made my life easier so
many times in the past.
host$ sudo pconsole
>>> attach /dev/pts/2
>>> attach /dev/pts/3
At this point you will see a message in terms 2 & 3 saying [pconsole
attached from tty /dev/pts/6].
>>> connect
Press <Ctlr-A> for command mode
>
Now run all your commands on terms 2 & 3 here, enjoy the awesomeness, use
your power only for good.
<CTRL-A>
>>> detach /dev/pts/2
detaching from /dev/pts/2 : Ok
>>> exit
So you can see how this could be used after doing ssh to several remote
servers, or many other means of connecting.
==================================================================
pconsole command mode
>>> help
help Give help about the available commands
? short-cut for 'help'
version Display version information
echo Turn echo on or off
attach Attach to a tty device
detach Detach from a tty device
list Show devices currently attached to
connect Leave command mode
quit Exit pconsole
exit Exit pconsole
>>>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nlug-talk?hl=en
-~----------~----~----~----~------~----~------~--~---