HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- model command on Linux
Operating System - Linux
1830060
Members
2743
Online
109998
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
11-22-2006 08:28 PM
11-22-2006 08:28 PM
model command on Linux
Hello,
Is there a way to get model of a host from linux ?
on HP-UX I have
hpux> uname -m
9000/800
hpux> model
9000/800/rp3440
hpux>
unfortunatly, model didn't exist for Linux:
[linux]$ model
-bash: model: command not found
[linux]$ uname -m
i686
[linux]$
is there a way (a file in /proc, a command, perl crypt- I mean perl EASY command ) to have same information ?
(If answer is no, can a Linux Guru explain why ?)
Jean-Yves Picard
Is there a way to get model of a host from linux ?
on HP-UX I have
hpux> uname -m
9000/800
hpux> model
9000/800/rp3440
hpux>
unfortunatly, model didn't exist for Linux:
[linux]$ model
-bash: model: command not found
[linux]$ uname -m
i686
[linux]$
is there a way (a file in /proc, a command, perl crypt- I mean perl EASY command ) to have same information ?
(If answer is no, can a Linux Guru explain why ?)
Jean-Yves Picard
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 09:07 PM
11-22-2006 09:07 PM
Re: model command on Linux
Hello!
Have you try with "uname -a"?
Bye
Have you try with "uname -a"?
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 09:56 PM
11-22-2006 09:56 PM
Re: model command on Linux
Hi,
checking :
http://www.unixguide.net/unixguide.shtml
and
http://bhami.com/rosetta.html
confirms uname -m as the closest match.
What do you want to see as an output ?
Something like:
DELL Computer WINXP Optiplex GX270/SFF 2.4 GHz
Probably not available without serious scripting etc.
Sorry
checking :
http://www.unixguide.net/unixguide.shtml
and
http://bhami.com/rosetta.html
confirms uname -m as the closest match.
What do you want to see as an output ?
Something like:
DELL Computer WINXP Optiplex GX270/SFF 2.4 GHz
Probably not available without serious scripting etc.
Sorry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 10:09 PM
11-22-2006 10:09 PM
Re: model command on Linux
Hello,
I use ouput from hpdiag (work only on HP :-\ )
[linux]# /opt/hp/hpdiags/hpdiags -t > me.xml
HP Insight Diagnostics Version 7.6.0.1977A
Copyright (c) 2002, 2005 Hewlett-Packard Development Company, L.P.
System configuration capture completed (100%)
then process which sxltproc
[linux]$ xsltproc s4.xsl me.xml | awk 'NF > 1'
ProLiant DL380 G4
ProLiant DL380 G4
ProLiant DL380 G4
ProLiant DL380 G4
where s4.xsl is
the reason for awk 'NF>1' is huge amount on newline and white in result.
hope this help (you have to have hpdiag first, which I believe are in Proliant support pack and should be lurking somewhere on hp.com )
Jean-Yves Picard
I use ouput from hpdiag (work only on HP :-\ )
[linux]# /opt/hp/hpdiags/hpdiags -t > me.xml
HP Insight Diagnostics Version 7.6.0.1977A
Copyright (c) 2002, 2005 Hewlett-Packard Development Company, L.P.
System configuration capture completed (100%)
then process which sxltproc
[linux]$ xsltproc s4.xsl me.xml | awk 'NF > 1'
ProLiant DL380 G4
ProLiant DL380 G4
ProLiant DL380 G4
ProLiant DL380 G4
where s4.xsl is
the reason for awk 'NF>1' is huge amount on newline and white in result.
hope this help (you have to have hpdiag first, which I believe are in Proliant support pack and should be lurking somewhere on hp.com )
Jean-Yves Picard
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