HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: I need to how to find IP address
Operating System - Linux
1829700
Members
2091
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-12-2006 07:48 AM
10-12-2006 07:48 AM
I need to how to find IP address
Hi there,
I have a list of 100 hostnames and I need to find out ip addresses of each.
How do I get it fast?
Its a pain to use ping on each host to find out ip address.
Can I have a script to do it or or any other suggestion.
Please help its urgent !!
Thanks
Girish
I have a list of 100 hostnames and I need to find out ip addresses of each.
How do I get it fast?
Its a pain to use ping on each host to find out ip address.
Can I have a script to do it or or any other suggestion.
Please help its urgent !!
Thanks
Girish
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2006 07:56 AM
10-12-2006 07:56 AM
Re: I need to how to find IP address
If your name resolution works fine, you can use a script like this:
for IP in `seq 254`; do
ping -c 1 192.168.1.$IP
host 192.168.1.$IP
done
Or something like this:
for HOST in ` awk '{ print $2 }' /etc/hosts` ; do
ping -c 1 $HOST
done
for IP in `seq 254`; do
ping -c 1 192.168.1.$IP
host 192.168.1.$IP
done
Or something like this:
for HOST in ` awk '{ print $2 }' /etc/hosts` ; do
ping -c 1 $HOST
done
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2006 07:59 AM
10-12-2006 07:59 AM
Re: I need to how to find IP address
Sure, it can be done with script.
How does the list look like - the script will have to parse it,so...
P.S.
You also have 100% of unassigned points.
How does the list look like - the script will have to parse it,so...
P.S.
You also have 100% of unassigned points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2006 08:10 AM
10-12-2006 08:10 AM
Re: I need to how to find IP address
Found the solution
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP