MagniComp Home Page Know IT allTM
September 7, 2010 Home Customer Services Pricing Downloads Support Contact Us
SysInfo
Related
Products
SysInfoTM
Total system and storage asset inventory information for Linux, Mac, UNIX, and Windows.
 
StorSys ProTM
Total SAN/NAS Storage System information.TM
 
RDist
Remote software distribution system.
Search
 

SysInfo Solutions Center

System Model in a shell script

If you have a UNIX shell script and wish to obtain the system model or similiar data via SysInfo, you can use the shell double backtic (``) to get this information from SysInfo. The follow sample sh(1) script gets the system model and prints it out:

#!/bin/sh

model=`/opt/sysinfo/bin/sysinfo --show model`
echo "System Model is $model"
exit 0

This same method can easily be used to obtain similiar information such as system memory, CPU Model, CPU Speed, etc. To see a list of arguments valid for use with --show run the command:

/opt/sysinfo/bin/sysinfo --nw --list show


Current: 9
All Releases
Let us know what's on your mind! Send us feedback
Aug 1, 2009: Linux on PPC is now supported with SysInfo version 9. Read more in ReleaseNotes and Download
May 11, 2009: SysInfo 9 is a major new release now available featuring support for XML, enhanced Virtual Machines, and much more. (More...) Download

Want to Receive Announcements?
If you wish to receive announcements about new releases of SysInfo, please Register with us.
© Copyright 1992-2010 MagniComp