The Command Line Interface (CLI)

Table 30. Dataitem Keywords Used with the Target Parameter (Sheet 2 of 4)

dataitem

Description

Get/

CLI Get Output

Valid Set Values

Set

 

 

 

 

 

 

 

 

 

 

Used to configure user-defined

 

 

 

 

actions when events occur.

 

 

 

 

This dataitem is used with a

 

 

 

 

target (–t) parameter specified

 

 

 

 

sensor and a value (-v)

 

 

 

 

parameter. When an event

 

 

 

 

happens for that particular

 

 

 

 

sensor, then the script defined

 

 

"<ScriptName> arg1

 

in the –v parameter will be

 

 

arg2 …argN"

 

executed. The script to be

 

 

Where Script name

 

executed must be located in

 

 

criticalaction

 

 

(not full path) is the

the /home/scripts/ directory on

 

If set, the full path of the script e.g. /

majoraction

 

script file name and

the CMM and the /home/scripts

 

Both

home/scripts/EventScript.

arg1-argN are the

minoraction

path should be omitted when

 

If not set, output is ““ (null).

parameters to the

 

specifying the script.

 

normalaction

 

 

script.

Example:

 

 

 

 

 

Use “none” to

 

cmmset -l blade9 -t +5V -d

 

 

 

 

 

remove an existing

 

minoraction -v

 

 

entry.

 

“powerdownblade 9”

 

 

 

 

In this example,

 

 

 

 

/home/scripts/powerdownblade

 

 

 

 

will be executed with a

 

 

 

 

parameter of 9 when the +5V

 

 

 

 

sensor on blade1 generates a

 

 

 

 

minor event.

 

 

 

 

 

 

 

 

 

 

 

 

“<event

 

 

 

 

code>:<ScriptName

 

 

 

 

> arg1 arg2...argN”

 

 

 

 

Where event code

 

 

 

 

is the event code

 

 

 

 

associated with the

 

 

 

 

event to associate

 

Used to trigger a script based

 

 

with the script.

eventaction

on event code of a health

Set

N/A

ScriptName (not full

event. Refer to Section 18,

path) is the name of

 

 

 

 

“CMM Scripting” on page 164

 

 

the script file, and

 

 

 

 

arg1..argN are any

 

 

 

 

parameters required

 

 

 

 

with the script.

 

 

 

 

Use

 

 

 

 

“<eventcode>:none”

 

 

 

 

to remove an

 

 

 

 

existing entry.

 

 

 

 

 

 

 

 

Color properties of the LED

 

 

Gets a FRU LED’s valid color

 

"<ledtarget> supports <colors>

 

 

 

Default local control color is

 

 

set. This command returns a

 

 

 

 

<colorList>

 

 

comma separated list of

 

 

 

 

Default override color is <color>"

 

 

supported colors, the default

 

 

ledcolorprops

local control color, and the

Get

Where:

N/A

default override color. This

<ledtarget> is One of the valid LEDs

 

command should be issued

 

 

 

 

(hsled, led1, led2, led3, userled1-

 

 

before a ledstate set command.

 

 

 

 

userled251)

 

 

Implements the Get LED Color

 

 

 

 

<colorList> is Comma-separated list

 

 

Capabilities command. See

 

 

 

PICMG 3.0 table 3-24.

 

of <color> items

 

 

 

 

<color> is one of blue, red, green,

 

 

 

 

amber, orange, white

 

 

 

 

 

 

MPCMM0001 Chassis Management Module Software Technical Product Specification

95

Page 95
Image 95
Intel MPCMM0001 manual Dataitem Keywords Used with the Target Parameter Sheet 2, CMM Scripting on