- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Display full IP address for export when using ...
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
08-01-2005 02:50 AM
08-01-2005 02:50 AM
Display full IP address for export when using terminal server
The user needs to export their DISPLAY back to the IP address.
I thought the last command would show the complete address i.e. 199.99.99.99:1.0?However, using last -R (and fwtmp) only displays a truncated column with the hostname of the terminal server which is not specific enough to export the DISPLAY to.
I have tried variations on the who (-um) (-R) and who am i commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2005 02:56 AM
08-01-2005 02:56 AM
Re: Display full IP address for export when using terminal server
Would the technique described in this thread work?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=758221
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2005 02:57 AM
08-01-2005 02:57 AM
Re: Display full IP address for export when using terminal server
What does who -R give you?
Roger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2005 03:00 AM
08-01-2005 03:00 AM
Re: Display full IP address for export when using terminal server
export DISPLAY=$(who -mu|awk '{print $8}'):0.0
doesn't suite fine for you?
RGDS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2005 03:22 AM
08-01-2005 03:22 AM
Re: Display full IP address for export when using terminal server
Thanks for the replies but none of them solve the problem.
who -um shows the hostname only as does
who am i -R
I need the specific IP address per user login from the terminal server. There are five people login into the terminal server then onto the UNIX server. They all appear with the same hostname address.
They need to be able to differentiate one address from the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2005 03:35 AM
08-01-2005 03:35 AM
Re: Display full IP address for export when using terminal server
Check Clay's final response in the thread I direct you to. It's for C shell, but it works for me like this, too:
$ XX=`who -um | awk '{ split($NF,x,":"); print x[1] }'`
$ echo $XX
george
$ getip ${XX}
199.1.4.215
The key is the getip.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2005 03:39 AM
08-01-2005 03:39 AM
Re: Display full IP address for export when using terminal server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2005 03:47 AM
08-01-2005 03:47 AM
Re: Display full IP address for export when using terminal server
If I am not misunderstanding your dilemma, you are using a terminal server (or something like it) as a concentration point and this point's name, hence the ip address, is showing up in the who -um. In which cas, you will not be able to obtain the actual communication initiating workstations ip address anywhere on your shell variables, hence will not be able to export it.
On the other hand, I know that there is a ssh tunneling for X-windows traffic, which does what you need to do, but details of the method eludes me. I have seen it happen. Someone at one of my old workplaces, ssh'ed into his home linux machine using putty or securecrt(details of which I do not remember) through 3 firewalls, from a corporate network. And, while his reflection-x emulation running on his desktop, he fired up an x-clock session and I have seen it show up on his corporate desktop. So, the functionality is there but how to do it is something I can not answer. I am sure someone else here can explain it to you.
Needless to say, your server should be running sshd and be able to accept ssh connections, as well as the clients should have some sort of ssh client installed.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2005 04:25 AM
08-01-2005 04:25 AM
Re: Display full IP address for export when using terminal server
Found the users had changed their access method. They were using REXEC in place of TELNET. When TELNET is used the individual IP address shows from the last -R command not the terminal server host name.
Thanks for the replies, I have assigned some points.