sneep (Serial Number in EEPROM) is a cool utility for Solaris that can retreive the Chasis Serial Number (CSN) or the Product Serial Number (PSN). This comes real handy when taking inventory or when having to work with Sun Support. sneep can also store useful information like system Assett Tag or Location into the EEPROM which can be retreived later on.
Sneep searches for the serial number in several data sources, including the system eeprom, platform-specific hardware-based sources, the configuration files for the Sun “explorer” and “Configuration Service Tracker (CST)” tools, and its own backup file. This order of searched can be altered.
Display Serial Number
To simply display the serial number run sneep with no arguements
To display the serial number and its associated tag in the EEPROM and infact all stored Tag/Value pairs.
# sneep -T
Store Information in EEPROM
To store information into the EEPROM like the asset tag use the “-t” to set the tag name and the “-s” option to set its value as below:
# sneep -t “AssetTag” -s 001234
To display all information
# sneep -T
Sneep is not installed by default in Solaris. Click here to download the latest version of Sneep utility. (requires a sunsolve account)
Install as follows from the directory where the sneep package (SUNWsneep) is downloaded to:
# uncompress SUNWsneep2.6.tar.Z
# tar -xvf SUNWsneep2.6.tar
# pkgadd -d . SUNWsneep
To confirm the installation
# pkginfo -l SUNWsneep
NAME: Serial Number in EEPROM
VENDOR: Sun Microsystems, Inc.
DESC: Persistent, software-accesible storage of Chassis Serial Number (CSN) across OS and application changes. Works on all Sun platforms. Can also store and retrieve arbitrary other values in EEPROM.
INSTDATE: Jun 04 2009 17:22
HOTLINE: Support provided through normal Sun support channels
STATUS: completely installed
FILES: 25 installed pathnames
1315 blocks used (approx)
If you didn’t accept to create a link file in /usr/sbin during the pkgadd, add a symbolic link as follows;
# ln -s /opt/SUNWsneep/bin/sneep .
To check the man page
# man -M /opt/SUNWsneep/man sneep
For command help
# sneep -h
Save and retrieve Chassis Serial Number ( CSN ) using EEPROM.
sneep [-aFhlTvVx] [-t tag] [-s setting ] [-P ds1:ds2…] \
[-d default] [-o separator]
setcsn -c serialnumber
showplatform -p csn
-h This help message
For detailed information, consult the man page. Try
man -M /opt/SUNWsneep/man sneep