Operating System - HP-UX
1819909 Members
2728 Online
109607 Solutions
New Discussion юеВ

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Server Name on task bar when using WRQ reflection to connect HPUX servers

Dear Sirs,

I use WRQ reflection to connect different hpux servers. They are many and sometime i find very difficult to open the right short cuts during production issue because server names are not visible on windows (i use windows XP laptop) task bar. Now i open short cut and use "uname -n" command to verify server name.

I remember at my previous workplace someone was using Reflectin X and he used to keep connected to many unix servers and the name of all connected servers "shortcuts" was visible in windows desktop's taskbar. So whenever he needed to go to any box he just used to click on that particular shortcut because these shorcuts on task bar was showing complete server names also.

Can someone suggest me the steps how to configure this ?

Thanks,
Shiv
18 REPLIES 18
Alessandro Pilati
Esteemed Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Hi Shiv,
have a look to this past forum:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943464

Hope this helps

Cheers,
Alex
if you don't try, you'll never know if you are able to
Shivkumar
Super Advisor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Pilati; This is the different question. I wanted to know the names of the many servers on the windows taskbar. If WRQ Reflection runs it shows the name of the all them and we can select any box by clicking on the icons of the Reflection (or xterm ). The server names shortcuts icons sits on top of one another of the xterms and can be selected from windows taskbar. I had configured long ago for sun solaris boxes but don't recall now.

Thanks,
Shiv
Bill Hassell
Honored Contributor
Solution

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

No problem. For recent versions of Reflection/1 or Reflection/HP, select the menu item Setup, then Display. (really old versions, pre-8.0 I think, had the Display setup as part of the Terminal setup, sorry no old versions to test). Anyways, when you see the Display setup tabs, select Options and you'll now see the "Window title" line. Just clear the line and put in &h. Then close the dialogs and you'll see the name (also in the minimized icon). Be sure to select File->Save xxx.r1w so it comes back each time.

Now comes the tricky part: finding all the secret codes (and there are a bunch). You can use the Help button inside the Options dialog box or just use the main Help, select Search then type in:

window title

and scroll to the bottom of the list to select window title. Here are some of the more useful options:

&a - local IP address
&h - hostname
&f - the current settings file
&y - terminal emulation

Anything else you type in is displayed as is, something like this:

&h - TERM=&y settings=&f myIP=&a


Bill Hassell, sysadmin
Shivkumar
Super Advisor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Bill Hassell;

How to get rid of command buttons like F1 F2 ..F8 ?

I don't want these command buttons at the bottom of the screen.

Thanks,
Shiv
Shivkumar
Super Advisor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Is this possible to configure if i use xterm ?

Thanks in advance.
Shiv
Devender Khatana
Honored Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Shiv,

I follow a more simple approach to show the hostnames in the taskbars. Open WRQ reflection for HP, Go to connection, select connection setup. Give all appropriate parameters and then press connect. After connecting when it is connected to proper host you can save the session from save option through file menu.

Save the session with the hostname you just connected to. After that just click on the file which you just saved and you will be connected to that host directly showing the hostname as well of your task bar.

I do not think the function key display can be removed anyhow.

Also we use X Browser for using X sessions. It by itself shows hostname on the taskbar.

Also a better approach alongwith this would be to also display hostname on the command prompt for second verification before running commands. This can be done by adding this line to /etc/profile for all users or particular user's ./profile to apply this for him.

#export PS1=`hostname`:'$PWD>>'

HTH,
Devender
Impossible itself mentions "I m possible"
Bill Hassell
Honored Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

> How to get rid of command buttons like F1 F2 ..F8 ?

Several ways:

1. Select Setup from the main window, then terminal... From the tabs at the top of the Terminal Setup, select the rightmost tab: Function keys and turn off the option: Show funtion keys

2. Press f9. The default setting for Reflection/1 and Reflection/HP is to toggle the function key display on and off.

3. Use the tput command in HP-UX. tput depends on TERM being set correctly (no hardcoded TERM= statements in login profiles are ever recommended), so make sure it's correct by first using ttytype and then tput as in:

eval $(ttytype -s)
tput rmln

You can turn them on (liek SAM and Glance) with tput smln.

After they are turned off, be sure to save your current settings file in Reflection so the current state comes back again with a new window. Here's a tip: save rach connection in a different settings file and now you can create a shortcut icon poiting to the .r1w file. Now you can start the connection to a specific machine by selecting the icon.

> Is this possible to configure if i use xterm ?

xterm has no relationship to Reflection/1 or Reflection/HP. xterm (and hpterm and dtterm) are HP-UX programs, NOT PC programs. It is terribly confusing that WRQ chose to name several very different products with the name "Reflection". Let me explain each of these different products:

- Reflection/1 or the current product Reflection for HP is a PC-based terminal emulator for HP terminals such as the 2392A and 700/92.

- Reflection/2 or Reflection for Unix/OpenWMS which is limited to DEC VT-style emulation.

- Refelection for the Web, a host-based web application that provides terminal emulation within a web page using Java

- Reflection/X is an PC-based X/windows server that allows X/windows programs (like xterm and CDE) to display on a PC screen.

Each one is a separate and different product. The first two are true terminal emulators that run on your PC. The third runs on a server (many different choices including HP-UX) and downloads Java code to a browser for execution. Reflection/X is PC-based and just displays Xwindow code sent from Unix servers.

So here a few tips to customizing Refelection/HP:

- Setup -> Terminal Setup -> Emulation tab -> Advanced HP options: turn off Enq/Ack and Host Prompt, and turn on Inhibit handshake and Inhibit DC2 (reasons provided on request)

- Turn off function keys (as mentioned above)

- Setup -> Display Settings -> Colors tab: you can heavily customize your display so that every connection is a different color

- Also in Display Setup -> Screen: change the curso to Block (easier to see) and increase display memory to 15 to 20 blocks (more scroll lines)

- Also in Display Setup -> Options: turn off the Terminal frame (wastes screen space)

- Setup -> Toolbar Setup -> Toolbars tab: turn off all toolbars for more text space (no toolbar icons)

- Connection -> More settings: check Allow exit while connected, and Exit on disconnect. This allows you to click on the X to terminate the connection and window immediately, and if you logout of the session, the window also disappears.

Now the Refelection/HP emulator also allows you to create your own Menu items. I created an HP/VT button to switch emulation with a simple menu pulldown, and also created a colors menu button. You can browse this in Setup -> Menu

And one of my favorites: Macro recorder. You can create a automatic login in just a few seconds with the Macro recorder.

Again, these details apply to Reflection/HP (with some similarities in Reflection/Unix) and no meaning for Reflection/X.


Bill Hassell, sysadmin
Shivkumar
Super Advisor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Devender; What is X Browser ? How it is used ?
Alessandro Pilati
Esteemed Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Devender,
but X-browser is only for Mac-OS, isn't it?

/ no points please /
if you don't try, you'll never know if you are able to
Devender Khatana
Honored Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Hi,

X-Manager is the software used for opening X-window sessions on desktops. It is available here for trial.

http://www.download.com/3001-2155_4-10408090.html

It open X-sessions to any host supporting that including Linux,HP & SUN.

Not tried for Mac-OS as we do not have one.

HTH,
Devender
Impossible itself mentions "I m possible"
Mel Burslan
Honored Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

It may be a late answer for your question but if you are using an xterm emulation, a well defined one, you can change the title bar of the terminal window from your hpux command line. If you use PuTTY, I think it automatically sets the title bar to the host name. But even if you are using some other emulation software, you can change your window title with this command:

echo "^[]0;$(hostname)^G"

in order to enter the escape characters preceeded by ^ sign, you shuld do this

for ^[ ----> type ctrl-v then ctrl-[
for ^G ----> type ctrl-v then ctrl-G

better if you do what I did for multiple use with ease

create a script using vi, and put this script into a directory in your search path (mine is in /usr/contrib/bin) and you can access it multiple times. You can change the $(hostname) directive to $1 and provide what you want the title to read as a command line parameter.




________________________________
UNIX because I majored in cryptology...
Shivkumar
Super Advisor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Hi Mel Burslan;

I just tried to opend vi and put it in a file called sp.

When i ran i got below output:

[jasmine]home/sksonkar $ ksh sp
^[]0;hpat982^G

is there any special way to run it ?

Thanks,
Shiv
Bill Hassell
Honored Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Since you saw the escape sequence on your screen, your terminal emulator does not understand the escape sequence. Start by listing the file in hex:

xd -xc sp
0000000 6563 686f 2022 1b5d 303b 2428 686f 7374
e c h o " 1b ] 0 ; $ ( h o s t
0000010 6e61 6d65 2907 220a
n a m e ) 07 " \n

If your file matches the above listing then your terminal emulator is not a vt-series terminal. Are you running Reflection/X on your PC and starting an xterm window on the HP-UX system? What does

echo $TERM

display?


Bill Hassell, sysadmin
Shivkumar
Super Advisor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Hi Bill;

Here is the output of $TERM;

$ echo $TERM
xterm
$

Thanks in advance,
Shiv
Bill Hassell
Honored Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Can you post the listing of the sp file using xd as mentioned above?


Bill Hassell, sysadmin
Mel Burslan
Honored Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Shiv,

what is the terminal emulator that you are using ? Is it Reflection X ? If I am not wrong hp used reflection-x as their default platform, by remembering the good-ole hpat982 name I am assuming this is an hp server. And I remember there were some emulation discrepancies when it came to xterm of Reflection-X at some version level.

My terminal emulator is PuTTY and the escape sequence works fine for me. I also tried with my installed reflection-x ver. 9.00.0 and it worked fine. Although instead of firing up a terminal from my pc and connecting it to the server, I have launched an xterm to my PC display. So, the xterm emulator executable out of your pc may have a problem with escape sequence recognition. Also come to think of it, reflection-x did not have an actual xterm emulation. I just verified this on mine. You can set the value of term to xterm and some esc codes may work but it does not mean that emulator will understand everything.

If you really need this, try using a host based xterm or try using putty.
________________________________
UNIX because I majored in cryptology...
Shivkumar
Super Advisor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Hi Bill Hassell;

here is the output:-

$ echo $TERM
xterm
$ xd -xc sp
xd: Invalid offset argument
$


I am using WRQ Reflection.

Thanks,
Shiv
Bill Hassell
Honored Contributor

Re: Server Name on task bar when using WRQ reflection to connect HPUX servers

Humm, this is very strange for xd. What version of HP-UX are you running? Where is xd? Report the output of these commands:

uname -a
model
type xd



Bill Hassell, sysadmin