HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Moving servers: How to check for IP reference...
Operating System - HP-UX
1833568
Members
3411
Online
110061
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
02-09-2005 09:21 AM
02-09-2005 09:21 AM
Moving servers: How to check for IP references
We're moving to a new Data Center.
We're changing IP addresses. All of them!
How do I "scan" a system looking for references to IP addresses instead of DNS-defined hostnames.
I know where to look in HP-UX:
/etc/hosts
/etc/resolv.conf
/etc/ntp.conf
/etc/etc...
But I'm thinking of application areas.
I have thought of just:
find / -type f | while read FILE
do
file $FILE | grep -q text
if [[ $? = 0 ]] # We have a text file
then
strings $FILE | grep $STRING
if [ $? = 0 ] # I found the
then
print "==> " $FILE "\n"
fi
fi
done
where STRING is some kind of IP address sequence.
Has anyone done this before?
We're changing IP addresses. All of them!
How do I "scan" a system looking for references to IP addresses instead of DNS-defined hostnames.
I know where to look in HP-UX:
/etc/hosts
/etc/resolv.conf
/etc/ntp.conf
/etc/etc...
But I'm thinking of application areas.
I have thought of just:
find / -type f | while read FILE
do
file $FILE | grep -q text
if [[ $? = 0 ]] # We have a text file
then
strings $FILE | grep $STRING
if [ $? = 0 ] # I found the
then
print "==> " $FILE "\n"
fi
fi
done
where STRING is some kind of IP address sequence.
Has anyone done this before?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 09:25 AM
02-09-2005 09:25 AM
Re: Moving servers: How to check for IP references
No, and I don't think there's a much easier way for doing it :(
You might also run ethereal and create logs of incoming / outgoing connections (the first packet should be enough)
You might also run ethereal and create logs of incoming / outgoing connections (the first packet should be enough)
yesterday I stood at the edge. Today I'm one step ahead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 09:41 AM
02-09-2005 09:41 AM
Re: Moving servers: How to check for IP references
As we all know apps should use FQDN instead of IP, but there's always those few that have the IP hardcoded. So, don't your application folks know where to look? Probly not.
Depending on how big your system is the find command could take a bit.
Good luck
Depending on how big your system is the find command could take a bit.
Good luck
Time to smoke and joke
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