Operating System - HP-UX
1833846 Members
1976 Online
110063 Solutions
New Discussion

Re: Did I connect to node-IP or package-IP ?

 
SOLVED
Go to solution
PJJ
Frequent Advisor

Did I connect to node-IP or package-IP ?

I like to know if I have been connected (by telnet or ssh) through the IP-address of the node or th address of the package. Is that possible?

Tnx, Pete
4 REPLIES 4
Denver Osborn
Honored Contributor
Solution

Re: Did I connect to node-IP or package-IP ?

After connecting via ssh...

echo $SSH_CONNECTION

The 3rd field is the ip you sshd to.

-denver
Denver Osborn
Honored Contributor

Re: Did I connect to node-IP or package-IP ?

oh, and for telnet... depending on what your escape character is set to, do it...

Ctrl+]
from telnet> prompt type "status" command. Look for connected to. If it's a hostname, it all depends on what ip the hostname resolves to on the box you connected from.

hope this helps,
-denver
PJJ
Frequent Advisor

Re: Did I connect to node-IP or package-IP ?

Hi Denver,
thank you for your quick reply!
PJJ
Frequent Advisor

Re: Did I connect to node-IP or package-IP ?

The SSH symbol is an elegant method.