- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System Console Locked Help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2001 08:19 AM
05-17-2001 08:19 AM
view /etc/fstab > fstab.out
and now my console is locked and I can't
control c out..
Help
Laurie
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2001 08:27 AM
05-17-2001 08:27 AM
Re: System Console Locked Help
Simply login somewhere else (telnet, etc.) and do:
# ps -ef|grep view
Find the pid of the hung 'view' and 'kill' it.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2001 08:37 AM
05-17-2001 08:37 AM
Re: System Console Locked Help
I got in by doing a ctrl-B and going into CM
Mode, I couldn't break the vi(ew) command I did
and then a RS to reboot.
We had a disk crash and all telnet and disk
is out, I'm trying to re-create.
I hope it comes backup up..it's at another site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2001 10:26 AM
05-17-2001 10:26 AM
SolutionWhen working on the console, especially on a system that has lost remote access, use tsm.
Tsm allows you to run multiple shells through a console interface. It is ideal for recovering from just the sort of lock up you experienced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2001 10:44 PM
05-17-2001 10:44 PM
Re: System Console Locked Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2001 05:16 AM
05-18-2001 05:16 AM
Re: System Console Locked Help
or the Escape key would not break me out of
the eternal vi mode.
I don't remember what I did to fix this, yesterday was a bad day. I think I went
into Control B and into
CM Mode (whatever that is)
and type rs
and that seemed to fix it.
If you want to lock up your telnet session
type
view filename > filename.out
You'll see what I mean...
Not pretty...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2001 07:36 AM
05-18-2001 07:36 AM
Re: System Console Locked Help
I think you probably want to use
cat filename>filename.out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2001 12:49 PM
05-18-2001 12:49 PM
Re: System Console Locked Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2001 01:05 PM
05-18-2001 01:05 PM
Re: System Console Locked Help
what it doesn't work...Vi can be dangerous
and quit=^\ (which I didn't know about)
Web console you can't do a copy and paste
and you can only do a screen print.
Unix is so fun, but Web Consoles are
even more fun...Laurie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2001 01:30 PM
05-18-2001 01:30 PM
Re: System Console Locked Help
I know it's too late now - but you were not
actually in all that terrible a mess (at least initially). First your view > xxx had redirected standard output but you still had standard input. All you really had to do was ":q!" to exit view and all would have been well. In this particular case, ctrl-c (SIGINT) would have done you no good because vi traps it. By the way, don't be afraid to use ctrl-c - it almost always does no harm.
You did well in that you actually knew the command that did you in.
I would urge you to learn one lesson that few sys admins take to heart - use kill -9 as a weapon of absolute last resort. It does no cleanup and shared memory segments are left,
tmp files are left, and sometimes databases are unrecoverable.
Just food for future thought, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2001 01:52 PM
05-18-2001 01:52 PM
Re: System Console Locked Help
and I had no other telnet's available. I only
had the one web console with no physical console. So when I tried all my vi exit
commands
ZZ
:q!
Control C
Control D
I must have hit the escape key - twenty million
types and still I was not breaking my
connection. I tried them all several times..
(let's see insanity is trying the same thing
over and over again and excepting different
results..Yes I was there)
Web Console is not friendly..I would have loved
to do a kill -9, I use that command a lot..
but I had no other way of getting into my
box...It was just a bad day to make that kind
of error... Never do "view filename > output"
Never never never again...
Today is good..I got the server back manually..
Thanks..Laurie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 09:03 AM
05-21-2001 09:03 AM