- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Console doesnt work
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
Discussions
Discussions
Forums
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
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
тАО11-02-2009 03:04 AM
тАО11-02-2009 03:04 AM
$ DISPLAY=IP:0.0: export=DISPLAY
then wanted to run installer file.
when i came back to MP(Ctrl+B) for signing to console, i got strange thing.
mp->co gives me this sign >, not $ or #
doesnt take any commands. What's wrong?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 03:56 AM
тАО11-02-2009 03:56 AM
SolutionIt means there was an un-closed parenthesis or quote on a previous command line. The shell is prompting for you to write the rest of the command. When a command line with the correct closing element (closing parenthesis or the correct type of a quote) is entered, the shell will attempt to execute everything from the original command to the command line with the closing element as one long command line.
If you've tried to enter any commands to the > prompt, the resulting multi-line command would probably be a mess. Type the interrupt character to restore the shell to the normal mode (Control-C if your session used the HP-UX default .profile). It throws away the accumulated multi-line command without trying to execute it.
When you disconnect from a MP, the system does not automatically log you out: you can even write a part of a command line on the console, press Ctrl-B, disconnect from MP, move to another PC, re-connect to the MP, use the CO command, write the rest of the command line and press Enter... and the command is executed just as if it was typed all at once.
This is intentional: it allows the sysadmin to start up long-running jobs (e.g. installing a new Quality Pack to an old, slow system) on the MP console. If the sysadmin's connection to MP fails, it does not cause the job to abort.
When reconnecting to a session that has a full-screen TUI running (e.g. swinstall in interactive mode), the display may be garbled. In that case, it is useful to know how to make the application refresh the terminal screen completely. The necessary keystroke is application-specific, but it is often either Control-L (the "form feed" character for printers) or Control-R (for "refresh").
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 04:13 AM
тАО11-02-2009 04:13 AM
Re: Console doesnt work
Thanks, when i did Ctrl+C, i got # for type commands. i could switch via su - otheruser, when i type su - root got crazy strings. i made screen in attach file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 04:28 AM
тАО11-02-2009 04:28 AM
Re: Console doesnt work
the output you got from "Console" or your ssh/telnet session ?
you press enter->enter
if its console
export TERM=hp
HTH,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 05:07 AM
тАО11-02-2009 05:07 AM
Re: Console doesnt work
Is your terminal/emulator using a vt100-compatible emulation? If the TERM variable setting does not match what your terminal/emulator actually uses, you'll get garbage on your screen.
Refreshing the display does not work in the command prompt: only full-screen TUIs do that.
It looks like the automatic terminal size detection may have failed. Just ignore the mess, press Enter once to make sure you have an empty command line, then type "clear" to clear the display, or "reset" to send a code to the terminal/emulator that resets all terminal display attributes to defaults.
The system registers only what you type, even if there is extra garbage on the screen.
You can use this command to force the re-detection of terminal size:
eval $(resize)
Sometimes even a simple "resize" command works, but when it is encapsulated by the eval statement, it also causes the COLUMNS and LINES environment variables to be set correctly. (Some shells do that automatically, but not all of them.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 05:41 AM
тАО11-02-2009 05:41 AM
Re: Console doesnt work
I use putty and connect ssh. Maybe i have to change terminal keyboard options? The parameter Function Key and Keypad is chosen - Esc(n~, maybe should be VT100+ ?
i see, there is a mail, where a lot information (from 20 may 2009). Could be this mail due of this error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 06:09 AM
тАО11-02-2009 06:09 AM
Re: Console doesnt work
ttytype -s
This program will send terminal identifier strings and looks for the type of terminal (emulator) you are using. In a standard HP /etc/profile, replace all this code:
# set term if it's not set
if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup" \
-o "$TERM" = "network" ]
then
eval `ttytype -s -a`
fi
export TERM
# set erase to ^H, if ERASE is not set
if [ "$ERASE" = "" ]
then
ERASE="^H"
export ERASE
fi
stty erase $ERASE
with this:
eval $(ttytype -s)
eval $(resize)
The (archaic) HP default assumes that your incoming terminal emulator has preset the terminal type using telnet subcodes -- never a good idea. Always detect the terminal automatically to avoid problems. Be sure to fix /etc/profile (for sane shells like ksh, POSIX or bash) and per-user profiles such as .profile.
Note that if you are setting DISPLAY=
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 06:29 AM
тАО11-02-2009 06:29 AM
Re: Console doesnt work
by the way, i changed .profile file. I add there this parameter umask 022, i add coz read about it here http://download.oracle.com/docs/cd/B19306_01/install.102/b25293/pre_install.htm section 2.14. To other words, i want to make user's environment in HP-UX.I've done these today:
1. add that parameter in ./profile
2. $DISPLAY=my_pc's_ip_address:0.0; export DISPLAY (not server's ip_address, where i'm gonna install Oracle)
but still says that my DISPLAY Environments doest set...
did i wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 12:40 PM
тАО11-02-2009 12:40 PM
Re: Console doesnt work
umask 022 is always recommended for .profile
> 2. $DISPLAY=my_pc's_ip_address:0.0; export DISPLAY (not server's ip_address, where i'm gonna install Oracle) but still says that my DISPLAY Environments doest set...did i wrong?
This is referring to Xwindows, a special environment needed to (unfortunately) install Oracle these days (based on their docs). SO before you start, you must have an Xwindow emulator running on your PC. Without Xwindow support on your PC, the DISPLAY value is meaningless.
If you are running an Xwindow emulator, then be sure you follow the recommendations in the Oracle note. After setting the DISPLAY value to your PC's IP address, run the xhost
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2009 09:42 PM
тАО11-02-2009 09:42 PM
Re: Console doesnt work
> umask 022 is always recommended for .profile
Maybe i typed worng string? i brought my .profile's information in attach file.
>SO before you start, you must have an Xwindow emulator running on your PC.
I downloaded X Windows Emulator - Cygwin/X. Installed, after that would start as gives in official docs http://x.cygwin.com/docs/ug/using.html#using-starting
There are no startx.sh or bat files. Have u ever used this soft, or could u recommend me other X Windows Soft?
Regards,
Rustam