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 similar 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