- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vi messed up on System Console
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
07-27-2001 07:17 AM
07-27-2001 07:17 AM
My web console won't let me do any vi stuff.
The TERM = hp. I think I should change
it to vt220 but I don't know how to do this
in borne shell.
When I type vi filename I get the file compressed all in one line, kind of hard to read and edit.
HAPPY SYS ADMIN DAY TO ALL...
Laurie
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2001 07:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2001 07:24 AM
07-27-2001 07:24 AM
Re: vi messed up on System Console
You can do the following :
export TERM=vt100 or
export TERM=vt220
You wrote in your question :
TERM = hp
Attention : You don't need to write extra blancs between TERM and hp. Just like :
TERM=hp
export TERM
or
export TERM=hp
Good luck
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2001 08:48 AM
07-27-2001 08:48 AM
Re: vi messed up on System Console
control-L should reset the screen.
:e! will restore the your vi version of the file to the last time you saved it.
:q! will exit without saving changes.
:w /tmp/modded.file will save the file as modded.file in directory /tmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2001 09:53 AM
07-27-2001 09:53 AM
Re: vi messed up on System Console
Here's how these boxes work: the default setting for the console connection is vt100 for the Guardian Service Processor or GSP. Now the GSP has nothing to do with emulating a terminal but the tset and ttytype programs were modified to ignore the actual terminal connected to the console port (on A/L/N-class) and instead, queried the GSP as to the termin type.
This is why HP service (and even some Response Center engineers) will tell you to turn off HP terminal capability on your 700/92 terminal and use EM100 (short for EMULATE VT100) so that when you login on the console, the cursor won't jump around and vi will work correctly.
What's happening is that regardless of the real terminal (in your case, the web console), the terminal ID programs (ttytype or tset) ignore the terminal and ask the GSP.
So here is are the two fixes:
1. Simple: change the emulation mode of your web console to vt100 and things should start to work better.
2. Better: Have your CE (or you can do it too) upgrade the GSP firmware on your machine to the latest level. Then use CTRL-B to get at the GSP, login (if not setup before, just press Return a couple of times), then type the command CA (Change Async) and use the default answers until you get to the terminal type. Change vt100 to hpterm, then default the rest of the answers.
Now exit out of the GSP and make sure your terminal is set to HP. Now login and all should work on the console. Then change the emulation on your web console to hp2392 and login again. The standard /etc/profile will ask for the terminal type via ttytype so $TERM will already be setup. vi should work fine now.
(BTW: You are probably not using the Bourne shell. The sh shell that ships as default on HP-UX is the POSIX shell which is a superset of the K-shell. Bourne shell is located at: /usr/old/bin/sh is you really want it--but NEVER change root's shell from /sbin/sh)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2001 10:06 AM
07-27-2001 10:06 AM
Re: vi messed up on System Console
Also in the webconsole left hadn side command menu do the following :
Under Config , got to network and click the right arrow on the terminal type u will get 2 options
HP 2392
VT100
Change it to vt100 and you are all set to go .
Manoj Srivastava