1830895 Members
2098 Online
110017 Solutions
New Discussion

IP-Address from Console

 
SOLVED
Go to solution

IP-Address from Console

Hello,


When I’m logged in on a HPUX-System (from 10.20 till 11.23), with which command can I find out the IP-Address of the Console?

Can someone help?

Thank you.
16 REPLIES 16
YAQUB_1
Respected Contributor

Re: IP-Address from Console

Hi Raymond,

We need know the system IP address then execute:

# netstat -in or
# netstat â rn

We need know the MP LAN IP address the login MP lan then-
MP>cm ===== (command menu)
MP:CM>ls ==== (LAN status)

Thanksâ Yaqub
HP Support!!!

Re: IP-Address from Console

Hello YAQUB,


I now that I can get the IP-Address over the MP, but how can I get the Address from the console when I am logged into the system.
Is there no command like "netstat -in", to get the IP-Address from the console?

Thanks
chandra Sekhar_7
Frequent Advisor

Re: IP-Address from Console

Hai,

For finding IPaddress for console by using #netstat -in will work for 11.0 & 11.23 ver
For 10.0 netstat -in will not work so you can use #ifconfig lan0
then you will get ip address for the console.

Regards
Chandra
Naveen M
Advisor

Re: IP-Address from Console

If you know the hostname of the Management Processor, then #ping may help.
Jeeshan
Honored Contributor

Re: IP-Address from Console

Hi Raymond

run command to determine your termianl
#tty

It will show the console name such like if you directly connect through ssh
/dev/pts/1
then you apply the command who -a which will show the IP address associated with this terminal
a warrior never quits
Torsten.
Acclaimed Contributor

Re: IP-Address from Console

Not sure how this exactly works, but if I go to the system management homepage of my test system

http://myserver:2301

log in and click the "management processor" link, the page is showing me the ip address of the MP.

Try it.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: IP-Address from Console

Hello,

Maybe I didn't explain my problem correctly.
With the console, I mean the GSP-IP-Address. Sorry.

@ashan: I don't get a IP-Address with who -a

@Torsten: I try it, it didn't work. But the problem is, that a need a lot more information from many different systems. so I write a script, that I copy to each system and let it run.

@NAM: I don't now the name of the GSP

Raymond


Jeeshan
Honored Contributor
Solution

Re: IP-Address from Console

getting Console IP from OS is not possible.
a warrior never quits
Torsten.
Acclaimed Contributor

Re: IP-Address from Console

I would not say it is not possible (see my earlier post) - need to look into what the SMH does...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Bill Hassell
Honored Contributor

Re: IP-Address from Console

Although there was an OS interface using cu with the very early version A GSP boards, that was removed in subsequent revisions. So the answer is no, there is no possible way to query the GSP or MP from the OS. Since you have several systems, you'll have to get a laptop and a 9pin serial crossover (aka, printer) cable and plug into each machine to access the GSP/MP port information.

This is a good time to design a proper diagnostic or maintenance network. It is a bad security practice to place low security devices onto the same network used by everyine else. Instead, the GSP/MP connections should have a separate subnet that is carefully restricted only to qualified system administrators. After all, these ports have commands that can turn power or crash the machine with a TOC.

In any case, *EVERY* GSP and MP port must have a new login and password setup during this inventory you'll be making. The reason is that you cannot be sure who knows the IP addresses or has been gaining unauthorized access to these ports in the past.


Bill Hassell, sysadmin
Torsten.
Acclaimed Contributor

Re: IP-Address from Console

BTW, since a long time most systems come with the MP set to DHCP by default. The network name is mp.

Whenever I read such a question I wonder if nobody track already assigned ip addresses in the network ... ???

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: IP-Address from Console

Hello,

@Bill: All our systems have an ip-address on the gsp and are in a apart network and have a other password then the original.
But some of the IP arenâ t reachable.
So I want to compare every IP with my documentation. Maybe there is a literal error in my documentation, or something is wrong with the network.
The only thing I can do, is take my laptop and walkâ ¦walk.

But one question I still have.
Why can I reset the GSP, but can not read the IP.
â stty +resetGSP < /dev/GSPdiag1â and press â pâ on the GSP.


Raymond
Torsten.
Acclaimed Contributor

Re: IP-Address from Console

I run the hpsmh module (getMPInfo.cgi) from command line and it returns the correct result on my test system.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: IP-Address from Console

Hello Torsten,

I don't now "hpsmh".
How can I let run the module on the command line?

Raymond
Torsten.
Acclaimed Contributor

Re: IP-Address from Console

HP System Management Homepage - HP-UX

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SysMgmtWeb

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: IP-Address from Console

Hello,


Thank you very match to all for helping me and for the information.

I close this thread.


Raymond