CMM Scripting

18.3.2Setting Event Action Scripts

Setting event action scripts can be done using any of the standard CMM interfaces (CLI, SNMP, RPC). The format for the CLI command is as follows:

cmmset -l [location] -t [Sensor Name] -dEventAction -v [Event Code]:[script to be run]

This setting gets written to the actionscripts.cfg file and is synced to the standby CMM. It is persistent across boots.

18.4Running CMM Event Scripts on CMM State Transitions (Active/Standby/Ready/Not Ready)

Event scripts can be set to run when a CMM becomes active, and to cease running when a CMM becomes the standby CMM. The script will begin running on a newly active CMM following any kind of failover.

The following is a list of the events and their associated event ID’s to be used for associating a script.

Table 78. CMM State Transition Events and Event IDs

Event ID

Event Name

 

 

1024

CMM is Not Ready

 

 

1025

CMM is Ready

 

 

1026

CMM is Active

 

 

1027

CMM is Standby

 

 

1028

CMM ready timed out

 

 

The Active event is an EventAction fired as a result of the SEL entry when the CMM transitions to the Active state. Similarly, the Standby event is an EventAction fired as a result of the SEL entry when the CMM transitions to the Standby state. These are not health related events.

The “CMM not ready” and “CMM ready” events are triggered internally by CMM firmware. It will log “CMM not Ready” when the CMM first becomes active. Once all internal status bits are set by firmware, it will log “CMM is Ready” and deassert the “Not Ready” state. The status bits set by the hardware are described below.

If the CMMReadyTimeout is set to a positive number of seconds, then an event is asserted if the CMM has not become ready with in that time. This is deasserted once the CMM is Ready or goes to Standby. This is a minor health related event.

18.4.1Sensor Data Bits

The CMM Status sensor is a normal discrete sensor, defined in the CMM’s SDR file, and it has an entry in the sensor table. The sensor status bits are assigned as follows:

166MPCMM0001 Chassis Management Module Software Technical Product Specification

Page 166
Image 166
Intel MPCMM0001 manual Setting Event Action Scripts, Sensor Data Bits, CMM State Transition Events and Event IDs