Setting Event Action Scripts; Running Cmm Event Scripts On Cmm State Transitions (Active/Standby/Ready/Not Ready); Sensor Data Bits - Intel NetStructure MPCMM0001 Software Instructions

Chassis management module
Table of Contents

Advertisement

CMM Scripting
18.3.2

Setting 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] -d EventAction -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.4
Running 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
1024
1025
1026
1027
1028
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.1

Sensor 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:
166
MPCMM0001 Chassis Management Module Software Technical Product Specification
Download from Www.Somanuals.com. All Manuals Search And Download.
Event Name
CMM is Not Ready
CMM is Ready
CMM is Active
CMM is Standby
CMM ready timed out

Advertisement

Table of Contents
loading

Table of Contents