Name

mcsysinfocf — MagniCompSysInfo™ platform database configuration file

Synopsis

ConfDir PathName
Define | Type | StringKey | NumericKey | Value1 | Value 2
Device | Name | Type/[SubType] | NumericID | Model | Description | Flags | DevFiles
Include FileName
  

DESCRIPTION

sysinfo.cf files contain configuration databases used by MagniComp's SysInfo program mcsysinfo(1) and its APIs. The data is used by SysInfo to interpret and/or acquire data about a system's configuration.

Text starting with # (hash/pound character) and continuing to the end of the line is ignored. Each line starts with a specific keyword as described below. All leading and trailing white space (SPACE and TAB characters) for each field is removed before parsing. All keywords are case insensitive. The valid keywords are:

ConfDir PathName

Set the name of the directory to look for configuration files in to be PathName. This also sets the value of the ${ConfDir} variable available for use with the Include keyword. The default is /opt/sysinfo/config

Define fields

Definetion. Each field is seperated by a | (vertical pipe) character. Any fields that are not specified are initialized to NULL. The StringKey and/or NumericKey fields are used in matching search criteria. The specification for each field follows:

Type

Specify the definetion type. The following Type values are allowed: CPU, Category, KArch, Kernel, NetType, OBP, Part, SysConf, SysModel, TapeInfo, VPD

StringKey

A string to use as a key.

NumericKey

A numeric value to use as a key.

Value1

A string to return for the entry.

Value2

A string to return for the entry.

Device fields

Device specification. Each field is seperated by a | (vertical pipe) character. Any fields that are not specified are initialized to NULL. The specification for each field follows:

Name

The name of the device. ( e.g. sd, cgsix )

Type/[SubType]

The type of device. The Type value is used to determine how to probe the device and what device type label to assign to it. If SubType is specified, then the Type field specifies how to probe the device and the SubType field specifies what device type label to assign. The valid keywords are: Bus, CDROM, CPU, Device, DiskCtlr, DiskDrive, FrameBuffer, Generic, KeyBoard, Memory, NetIF, Pseudo, TapeCtlr, TapeDrive

NumericID

Specifies a unique numeric identifier for a particuliar device type. This field is typically used to find a device by a numeric value returned from the kernel.

Model

The device's model.

Description

A description of the device.

Flags

The Flags field may contain either a valid keyword or a numeric value. Numeric values are used in a device-type specific manner by the device type's probe routine. The valid keywords are:

DefInfo

Use default device definetion information. Usage varies by device type.

LenCmp

Compare device name by length.

NoUnit

Don't add a unit number to the device's name.

Zombie

If the device is present, treat it as if it were alive regardless of whether the kernel has indicated so.

DevFiles

A list of space seperated device files that provide access to the device. Each file may contain a %d string which will be expanded to be the device's unit number.

Include FileName

Read and parse a sysinfo.cf file called FileName. Parsing of the current file resumes on the next line when finished with FileName. If FileName does not exist, MagniComp SysInfo will silently continue parsing the current file. FileName may contain variables that are expanded at runtime. Variable names are enclosed inside of ${} or $() and are case insensitive. The following variables are available:

${ConfDir}

The path to the MagniComp SysInfo configuration directory.

${DefConfFile}

The name of the default sysinfo.cf configuration file. ( e.g. Default.cf )

${OSname}

The name of the operating system. ( e.g. SunOS )

${OSver}

The operating system version number. ( e.g. 4.1.3 )

${OSmajver}

The operating system major version number. ( e.g. for 4.1.3 the value would be 4 )

AUTHOR

MagniComp

URL

http://www.magnicomp.com/sysinfo

SEE ALSO

mcsysinfo(1), mcsysinfoc(3)