The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
IP address of machine harneet2004us UNIX for Advanced & Expert Users 3 04-16-2008 04:54 PM
how to retrieve IP address of a machine mridula IP Networking 5 11-02-2005 09:21 AM
How to get IP Address of machine? Ahsan High Level Programming 7 10-24-2003 11:16 AM
Restricting access to a machine by IP Address patch UNIX for Dummies Questions & Answers 2 10-20-2003 02:46 PM
Changing Machine IP address kkinnon UNIX for Advanced & Expert Users 7 08-27-2002 02:17 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-28-2006
asutoshch asutoshch is offline
Registered User
  
 

Join Date: Mar 2001
Location: Calcutta, India
Posts: 49
Getting Unix machine IP address

Can someone help me how I can find the IP address of the AIX Unix machine ? I want to use some command from a Bourn shell script.

Thanks in advance
asutoshch
  #2 (permalink)  
Old 04-28-2006
ranj@chn ranj@chn is offline Forum Advisor  
Playing with Ubuntu Now!
  
 

Join Date: Oct 2005
Location: Chennai
Posts: 365
how about

how about nslookup mach_name
  #3 (permalink)  
Old 04-28-2006
Awadhesh's Avatar
Awadhesh Awadhesh is offline
Registered User
  
 

Join Date: Jul 2005
Location: Delhi, India
Posts: 92
Smile Re

#ifconfig -a to see the IP Address.
man ifconfig

Cheers,
Awadhesh
  #4 (permalink)  
Old 04-28-2006
Ambikesh Ambikesh is offline
Registered User
  
 

Join Date: Feb 2006
Location: California
Posts: 45
Yup.. nslookup will work..
  #5 (permalink)  
Old 04-28-2006
buffoonix buffoonix is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 145
On most Unices (except for Linux)

netstat -in

will show you IP addresses bound to plumbed NICs.

If you know the NIC's device name you could also use (e.g. en0 on a PowerPC)

ifconfig en0

I assumed you meant the box'es own IP address(es).
Otherwise query a name service with tools like nslookup.
  #6 (permalink)  
Old 04-29-2006
asutoshch asutoshch is offline
Registered User
  
 

Join Date: Mar 2001
Location: Calcutta, India
Posts: 49
Thanks a lot. Both nslookup and ifconfig did work.
  #7 (permalink)  
Old 04-30-2006
Santi Santi is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 23
Hello,

Try with the examples for Linux boxes posted at:

console address

Regards,

--
Santi Saez
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0