- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script to display model information on different h...
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
02-21-2007 10:41 PM
02-21-2007 10:41 PM
Just wondered if anyone has a quick script to show model information on various server types/OS. For example the model string brings back different output on an Itanium platform to a
PA-RISC. I want to simply produce some output and one of the columns is model type. I run an ssh script to collate all of this. I only want the specific hardware string such as L2000 or rx2600
Cheers
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 11:03 PM
02-21-2007 11:03 PM
Solutionmodel will return one string, example:
9000/809/K100
9000/800/L2000-44
9000/785/J6000
9000/800/SD32000
ia64 hp superdome server SD16B
ia64 hp server rx2620
ia64 hp server rx4640
All the "9000" are PA-RISC systems, all "ia64" are Integrity.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 11:05 PM
02-21-2007 11:05 PM
Re: script to display model information on different hardware/OS levels
"Applications intended to be portable across platforms should not have dependencies on the internal structure or contents of the model string. Each new product may use a different format for the model string. The following may change in the model output: the types of information included in the model string, the order of the information fields, or the separators between the information fields."
Not a good basis for any scripting.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 11:08 PM
02-21-2007 11:08 PM
Re: script to display model information on different hardware/OS levels
is this what you want?
$ echo "$(model)" | awk -F"[/ ]" '{print $NF}'
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 11:09 PM
02-21-2007 11:09 PM
Re: script to display model information on different hardware/OS levels
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 11:15 PM
02-21-2007 11:15 PM
Re: script to display model information on different hardware/OS levels
ia64 hp server Integrity Virtual Machine
(returned by a virtual machine)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 08:48 PM
02-22-2007 08:48 PM
Re: script to display model information on different hardware/OS levels
model
# The current naming convention is:
# aadddd
# ||||`+- 00 - 99 relative capacity & newness (upgrades, etc.)
# |||`--- unique number for each architecture to ensure different
# ||| systems do not have the same numbering across
# ||| architectures
# ||`---- 1 - 9 identifies family and/or relative positioning
# ||
# |`----- c = ia32 (cisc)
# | p = pa-risc
# | x = ia-64 (Itanium & Itanium 2)
# | h = housing
# `------ t = tower
# r = rack optimized
# s = super scalable
# b = blade
# sa = appliance
HTH,
Art