Intel MPCMM0001 manual Else, Endif, 27.6.4 SET

Models: MPCMM0001

1 281
Download 281 pages 15.26 Kb
Page 229
Image 229

FRU Update Configuration File

Additionally there is wild card support for numbers in a tag string. When the ‘#’ character is used in the tag string following an IFSET statement, it will match any number found in that position of any of the tags previously saved in the tag string link list.

For example, when screening for various versions of a platform, you can use the following IFSET statement:

IFSET “MPCHC000#”

27.6.2ELSE

The ELSE command has no parameters. It defines the alternate path of commands to run if the previous unmatched IFSET command failed when checking the tags. The ELSE command also signals the end of the commands that will be run when the matching IFSET command succeeds. If an ELSE command does not have a matching IFSET and ENDIF, the program should exit and notify the user. The commands following the ELSE command up to the matching ENDIF command will be processed and executed if the matching IFSET fails. If the matching IFSET command passed, then the commands following the ELSE command and up to the matching ENDIF are skipped.

Example:

CLEAR FALSE

IFSET “FALSE”

//Skip this stuff

ELSE

//Do this stuff

ENDIF

27.6.3ENDIF

The ENDIF command signals the end of the commands controlled by an IFSET or ELSE command. If an ENDIF command does not have a matching IFSET or ELSE command, the program should exit and notify the user.

27.6.4SET

The SET command adds a tag to the master list to be checked by IFSET commands. If the tag already exists in the list, it is added again. When a tag is set, it remains set for the remainder of the processing phase, is has no affect of IFSET commands prior to it in the file, only those that follow, or until cleared.

Example:

SET “tag”

MPCMM0001 Chassis Management Module Software Technical Product Specification

229

Page 229
Image 229
Intel MPCMM0001 manual Else, Endif, 27.6.4 SET