The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find out the ipaddress? DineshV UNIX for Dummies Questions & Answers 3 05-06-2008 01:20 AM
Add IpAddress Through Programatically ykmraju High Level Programming 6 07-17-2006 07:48 AM
how to find ipaddress shruti_mgp HP-UX 14 05-04-2006 03:58 AM
unable ping ipaddress pdoug76 UNIX for Dummies Questions & Answers 1 05-30-2003 07:25 AM
change the IPAddress and local name lapnguyen UNIX for Dummies Questions & Answers 2 07-10-2002 10:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-24-2008
Registered User
 

Join Date: Feb 2008
Posts: 6
Stumble this Post!
ipaddress in HP-UX

Hi,

How can I figure out the IP address of my node in HP-UX?

Here is uname -a:

/throra10 >uname -a
HP-UX finprod B.11.23 U ia64 3832216299 unlimited-user license

This is to launch Xterminal.

Thanks.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-24-2008
matt.d's Avatar
Registered User
 

Join Date: Feb 2008
Location: /dev/null
Posts: 62
Stumble this Post!
ifconfig interface

example: ifconfig eth0
Reply With Quote
  #3 (permalink)  
Old 03-24-2008
Registered User
 

Join Date: Feb 2008
Posts: 6
Stumble this Post!
Thanks for the response. How do I find out the interface of my client machine? I want to be able to launch Oracle install on this machine. I think that if xclock works I should be ok.

I am new to HP-UX. Thanks.
Reply With Quote
  #4 (permalink)  
Old 03-24-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,450
Stumble this Post!
Try
nslookup finprod
Reply With Quote
  #5 (permalink)  
Old 03-24-2008
Registered User
 

Join Date: Apr 2002
Location: Dallas, TX
Posts: 53
Stumble this Post!
Your system could have multiple LAN cards. Type 'lanscan' to see all LAN devices configured for your system. HP LAN interface names usually look like: lan0, lan1, lan2, etc. Type 'ifconfig lan0' for that interface's ip address.

A different option would be nslookup. If you're logged into the box then you must know its hostname. Type 'nslookup <hostname>' to see what the box thinks its ip address is. It is possible that this may give you the wrong information if DNS sees the ip as different than its hosts file but in most cases it should work. Try logging in to that specific ip to verify that it is indeed the correct one.
Reply With Quote
  #6 (permalink)  
Old 03-24-2008
Registered User
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 98
Stumble this Post!
getip `hostname`
Reply With Quote
  #7 (permalink)  
Old 03-25-2008
Registered User
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 338
Stumble this Post!
Wink

To figure out the ip addresses , open the file /etc/hosts.It should have the ip address of your host.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0