- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reliable method wanted to retrieve hosts serial No...
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
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
01-12-2005 01:56 AM
01-12-2005 01:56 AM
Reliable method wanted to retrieve hosts serial No.
is there a reliable method that works on any HP enterprise server without the prerequisite of any extra software to retrieve the server's serial number?
I know of different ways but they all aren't reliable because they either only seem to work for non-legacy hardware, or do require some extra piece of software like the Support Tools Manager from the OnlineDiag bundle or a shipped manifest.
I usually use these two
# /opt/ignite/bin/print_manifest -o|awk '$1~/erial/{print$NF}'
GBM393824A
# echo "sc prod system;info;wait;il"|/usr/sbin/cstm|awk '/System Serial/{print$NF}'
GBM393824A
As said, both have thier drawbacks.
The first requires a valid manifest and not too old hardware, as well as root privileges.
The latter requires the installation of STM as part of the Online Diagnostics, but can be run by any user.
What is irritating is that the command blocks for quite a while as if whole bulk of system digging goes on behind the scenes.
I searched the WWW for other sites that promised to tackle this, but what I found was pretty disappointing.
Most such URLs claim that the host ID on HP-UX can be displayed either by "uname -i" or lanscan.
Both statements seem damnright false to me.
lanscan only prints the MAC addresses of discovered NICs and uname -i, even if converted to hex, something totally different.
# uname -i
690319332
# printf "%x\n" $(uname -i)
29256fe4
# printf "obase=16;%d\n" $(uname -i)|bc
29256FE4
On a Linux box I strace-d the hostid command for open, socket, connect syscalls but couldn't see where it was read from.
At least there still was the chance to get the sources of this command and have a look there.
Is there a general "hostid" command that preferably would yield the serial/host ID on most Unix derrivatives?
Or could one write such a small program?
What would be required to be done in such a program on a HP-UX system?
Thank you for your suggestions
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 02:02 AM
01-12-2005 02:02 AM
Re: Reliable method wanted to retrieve hosts serial No.
The 'uname -i' number is definitely not the same as the actual physical serial number of the machine.
The ONLY foolproof way to get the serial number for a machine is to go and look at it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 02:10 AM
01-12-2005 02:10 AM
Re: Reliable method wanted to retrieve hosts serial No.
Hm, I thought each piece of silicon with minimal computational "skills" would issue its manufacturer's identification if fed with an appropiate pattern of currents?
So there isn't an integrating ID for the whole ensemble of wired HP hardware that can be queried?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 02:12 AM
01-12-2005 02:12 AM
Re: Reliable method wanted to retrieve hosts serial No.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 02:44 AM
01-12-2005 02:44 AM
Re: Reliable method wanted to retrieve hosts serial No.
/opt/hpsmc/common/bin/getsn
/usr/local/sysinfo/getsn
I believe first is installed with ISEE, and later with sysinfo301
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 08:41 AM
01-12-2005 08:41 AM
Re: Reliable method wanted to retrieve hosts serial No.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 09:32 AM
01-12-2005 09:32 AM
Re: Reliable method wanted to retrieve hosts serial No.
Now you know why OpenView Network Node Manager costs so much. And even that requires a client to run on each server in which you're interested.
AFAIK, there is no one single product that will work on all hardware regardless of manufacturer. A Sun utility won't work on an IBM, an IBM won't work on HP, etc. Thats why tools such as OV exist and why they cost so much (and are bloody hard to implement). The advantage of these (OV has lots of competition) is that they DO write clients for old and out-of-date hardware and software. Some of them are really quite good at collecting this data. Others provide little functionality at all.
It might be possible to write a small SNMP client yourself, then use some kind of freeware to collect the data. Were I you, thats where I'd start. Later, if you move to OV or a competitor, your clients will be compliant.
You might be able to Google up a SNMP Client. Try that. Its a common enough problem, somebody in the OpenSource community must've built one.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 04:50 PM
01-12-2005 04:50 PM
Re: Reliable method wanted to retrieve hosts serial No.
echo "sel path system\nil\nexit" | /usr/sbin/cstm | grep "System Serial Number"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2005 12:29 AM
01-13-2005 12:29 AM
Re: Reliable method wanted to retrieve hosts serial No.
where is getsn part of?
I ran a
# find / -type f -perm -0100 -name getsn
but didn't have a match.
What does ISEEE (to be taken literaly, i.e. "I see!" ;-) and sysinfo301 stand for?
Chris,
I prefer the freely available suit of Net-SNMP tools (and the namesake Perl module).
But I think I found a record in HP Knowledge Base decidedly stating that there was no SNMP support for serial number retrival yet.
Looks to me as if HP don't want too easy propagation of their serial Nos.
Generally I aggree that one probably cannot expect a universal tool for cross-platform hardware identification.
I regret that our site isn't employing OpenView, especially since we have so many HP-UX boxes.
But they decided on Tivoli, which only got halfway, and half-heartedly deployed, thus rendering most of its amply praised functionality useless.
What makes it even worse for us Unix admins is that the Tivoli administration was layed in the hands of Mainframe people.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2005 12:50 AM
01-13-2005 12:50 AM
Re: Reliable method wanted to retrieve hosts serial No.
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=U2512AA
It replaced "Predictive". HP Instant Support Enterprise Edition (ISEE).
SysInfo collects configuration information about the current system.
It also checks for some common problems including stale mirrors (if
applicable). It sends its output to a logfile or to the display.
I run from cron like so:
# Run the sysinfo script
0 6 1 * * /usr/local/sysinfo/sysinfo -a -b -o /usr/tmp/`hostname`.sysinfo >/tmp/sysinfo.cron 2>&1
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2005 01:45 AM
01-13-2005 01:45 AM
Re: Reliable method wanted to retrieve hosts serial No.
#getconf MACHINE_SERIAL
It seems to work 90% of the time on 11i boxes.
It's not even an option on 11.0 servers
I'm guessing it has to be set somewhere internally on the servers Management processors.
So it's not real reliable in our environment but it could be if everything in your shop is newish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2005 03:13 AM
01-13-2005 03:13 AM
Re: Reliable method wanted to retrieve hosts serial No.
This is what I do ..
# echo "selclass qualifier system;info;wait;infolog" | cstm |egrep "System Serial Number"
Rgds / James