- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Get ALL IP addresss of my system
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
06-23-2002 05:47 PM
06-23-2002 05:47 PM
Get ALL IP addresss of my system
I want to know how to program to get all ip addesses of my system. I don't want using ifconfig or SNMP.
If you know some function or library, let me know.
Thank you in advance,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2002 08:45 PM
06-23-2002 08:45 PM
Re: Get ALL IP addresss of my system
Would
#grep "IP_ADDRESS" /etc/rc.config.d/netconf
do the trick ?
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2002 09:13 PM
06-23-2002 09:13 PM
Re: Get ALL IP addresss of my system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2002 10:32 PM
06-23-2002 10:32 PM
Re: Get ALL IP addresss of my system
netstat -in
?
Mind you, if you run a cluster several IP addresseses probably will be bound to the same NICs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2002 10:35 PM
06-23-2002 10:35 PM
Re: Get ALL IP addresss of my system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2002 11:39 PM
06-23-2002 11:39 PM
Re: Get ALL IP addresss of my system
If there is no way, I can use "netstat -in".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 01:57 AM
06-24-2002 01:57 AM
Re: Get ALL IP addresss of my system
Try
#man gethostbyaddr
#man gethostbyname
I believe there is a sample program in there too ...
Is that what you were looking for ?
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 04:06 PM
06-24-2002 04:06 PM
Re: Get ALL IP addresss of my system
#print_manifest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 04:18 PM
06-24-2002 04:18 PM
Re: Get ALL IP addresss of my system
The ignite-UX must be installed, and if the command isn't in the $PATH, just type:
/opt/ignite/bin/print_manifest
-roberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 08:15 PM
06-24-2002 08:15 PM
Re: Get ALL IP addresss of my system
If you ahve the name resolved correclty then may be nslook up hostname will give the correct IP adress of the system
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:42 PM
06-25-2002 12:42 PM
Re: Get ALL IP addresss of my system
I guess the function that you are looking for is gethostent() which returns
struct hostent where you'll
have all the ip addresses of your system.
Look at the man page for gethostent() for more info.
-Lokesh.