sinfo

The sinfo program is a combination of a script, C code and a data file. When compiled, sinfo will display information about your Solaris system.

Execute sinfo as follows:

    sinfo 

Along with the Makefile, these files create a program that shows all the values that can be obtained using sinfo(2).

Example

sms> sinfo
See sysinfo(2)
==============
sysinfo (SI_ARCHITECTURE)       = sparc
sysinfo (SI_HOSTNAME)   = magician
sysinfo (SI_HW_PROVIDER)        = Sun_Microsystems
sysinfo (SI_HW_SERIAL)  = 2171277422
sysinfo (SI_ISALIST)    = sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc
sysinfo (SI_KERB_REALM) = 
sysinfo (SI_MACHINE)    = sun4u
sysinfo (SI_PLATFORM)   = SUNW,Ultra-250
sysinfo (SI_RELEASE)    = 5.6
sysinfo (SI_SRPC_DOMAIN)        = magician.myths.com
sysinfo (SI_SYSNAME)    = SunOS
sysinfo (SI_VERSION)    = Generic_105181-05
sms>

Files

sinfo.list contains a list of all possible name parameters. Add to sinfo.list if your system supports other values. Do not remove any values.

sinfo.build converts sinfo.list into a C header file, sinfo.inc. sinfo.inc is included in sinfo.c. The Makefile compiles sinfo.c into sinfo.

The sinfo program calls sinfo(2) for each valid definition in sinfo.list.

sinfo.build

The sinfo.build script must be given executable permissions.

sinfo.list

sinfo.list lists all of the definitions recognised by sinfo(3). You may wish to add to this list.

sinfo.c

sinfo.c executes sinfo(2) for each definition in sinfo.list.

Home