- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Generate list of all HPUX servers
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
05-11-2004 05:28 AM
05-11-2004 05:28 AM
Generate list of all HPUX servers
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 05:40 AM
05-11-2004 05:40 AM
Re: Generate list of all HPUX servers
I would expect that you might already have a list in /etc/hosts. If you have other servers listed in there, you can edit it to put in comments that identify the type of server like this:
130.1.0.249 dam dam.holstein.com #unixhost#dam
Other than that, I can't think of a way to find this information from the command line.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 05:53 AM
05-11-2004 05:53 AM
Re: Generate list of all HPUX servers
Just to add something:
I can get list of IP address rather than names of all hosts in the network. And that is possible by doing ==>
#ping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 05:56 AM
05-11-2004 05:56 AM
Re: Generate list of all HPUX servers
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 06:05 AM
05-11-2004 06:05 AM
Re: Generate list of all HPUX servers
Telnet to box, if you get hp-ux string, it is hp-ux server else not.
(But this is not a very reliable way and you can always change the stuff that is displayed during login)
Hope this helps.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 06:12 AM
05-11-2004 06:12 AM
Re: Generate list of all HPUX servers
Secondly, presumably you mean all the
HP-UX servers on your LAN or in your
domain, not the entire Internet!
The tricky part is figuring out what hosts
you want to query. /etc/hosts might
have such a list, but if you're using
NIS or DNS you'll have to use something
like nslookup to get the list. Try the
"ls" command inside of nslookup. ("ls -h"
supposedly lists the CPU and OS info
records for all machines in a domain, but
that info is not always reliable.)
Once you have the list of servers you're
interested in, try using telnet (in a
script) and check the banner, e.g.:
HP-UX hpux_box B.11.22 U ia64 (tc)
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2004 12:44 AM
05-12-2004 12:44 AM
Re: Generate list of all HPUX servers
Anil touched on the very thought I had. I know of no other method to obtain this information than using telnet to obtain the
initial system message, i.e.:
HP-UX rufus 11.00 U 9000/800 (ta)
This is actual output of a test (rufus is the hostname) and you can not only tell the OS type (HP-UX), but the version (11.00). However, as Anil mentioned, this is not always reliable as the message can be changed or removed and you can be returned nothing or a fake string (an SA can make the system report that it's a MAC OS or some other OS).
Also, some telnet sessions do not automatically timeout so it would be hard to generate a script that can obtain this info, dump it into a file, and then break out '^]' of the telnet session and continue.
If you trust that nobody has changed the system string on the systems that you are trying to obtain this information from then this is a valid option and won't take a lot of time. Also, if you are not good at writing scripts but you have a GUI screen, you can simply cut and paste the hostname/IP you are performing the telnet to and the system string you receive.
Hope this helps. Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:46 PM
05-18-2004 03:46 PM
Re: Generate list of all HPUX servers
I assume this is your first experience on the ITRC forum as you did not award points to the forumers for the answers you were provided. May I suggest that you take a look at the following link to learn about the points system in use here. Thanks.
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Please read the article, assess the assistance you were provided by the forumers, then reward them. Thanks!