{
{ CML$ELEMENT_STATE_CHANGE
{
{
{ PURPOSE:
{    This statistic provides notification of the change in the
{ state of a system hardware element.  This statistic is emitted
{ by the CHANGE_ELEMENT_STATE subcommand of the Logical
{ Configuration Utility, the cmp$change_element_state program
{ interface or as a result of the NOS/VE system automatically
{ DOWNing a failing element.
{    If a manual state change originates from a job whose class
{ is maintenance, the initiator is assumed to be a "CE".
{    If a manual state change originates from a job whose class
{ is not maintenance, the initiator is identified as an "operator".
{
{ FREQUENCY:
{    Whenever the system encounters a hardware failure which cannot
{    be tolerated and which prevents further use of the element,
{    or whenever an operator or a CE changes the state of an element
{    manually.
{
{ CONTENT:
{    The  descriptive-data portion of this statistic contains:
{
{    '<mf>.<element>*<product identification>*<serial number>*..
{     <message>'
{
{      where <mf> is the identification of the mainframe in the form
{        $SYSTEM_mmmm_ssss.  Where 'mmmm' is the model number of
{        Central Processor zero (CP0), e.g. 0990, and 'ssss' is the
{        serial number of that processor, e.g. 0104.
{
{      where  <element>  is  the name of the mainframe or peripheral
{        hardware element which was the object of the system action.
{
{      where  <product  identification> is the identification of the
{        element specified in the active configuration.
{
{      where <serial number> is the unique identity of  the  element
{        relative  to its product family as specified in the active
{        configuration (in decimal).
{
{      where <message> is the following:
{        'STATE CHANGED FROM <old state> TO <new state>'
{
{    The counter-value portion of this statistic contains:
{
{    1.  State Change Code
{       1 - State changed from ON to DOWN
{       2 - State changed from ON to OFF
{       3 - State changed from DOWN to ON
{       4 - State changed from DOWN to OFF
{       5 - State changed from OFF to ON
{       6 - State changed from OFF to DOWN
{    2.  Initiator Code
{       1 - Initiated by the NOS/VE system due to element failure.
{       2 - Initiated by an operator.
{       3 - Initiated by a Customer Engineer (CE).
{

  CONST
    cml$element_state_change = cmc$min_ecc + 200;

*copyc cmc$condition_limits
