Print this page
NEX-17772 libfmd_snmp should learn about new FmProblem fields
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fm/protocol.h
          +++ new/usr/src/uts/common/sys/fm/protocol.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
  25   25  
       26 +/*
       27 + * Copyright 2018 Nexenta Systems, Inc.
       28 + */
       29 +
  26   30  #ifndef _SYS_FM_PROTOCOL_H
  27   31  #define _SYS_FM_PROTOCOL_H
  28   32  
  29   33  #ifdef  __cplusplus
  30   34  extern "C" {
  31   35  #endif
  32   36  
  33   37  #ifdef _KERNEL
  34   38  #include <sys/varargs.h>
  35   39  #include <sys/nvpair.h>
↓ open down ↓ 44 lines elided ↑ open up ↑
  80   84  #define FM_IREPORT_ATTRIBUTES           "attr"
  81   85  
  82   86  /*
  83   87   * list.suspect, isolated, updated, repaired and resolved
  84   88   * versions/payload member names.
  85   89   */
  86   90  #define FM_SUSPECT_UUID                 "uuid"
  87   91  #define FM_SUSPECT_DIAG_CODE            "code"
  88   92  #define FM_SUSPECT_DIAG_TIME            "diag-time"
  89   93  #define FM_SUSPECT_DE                   "de"
       94 +#define FM_SUSPECT_DESC                 "desc"
  90   95  #define FM_SUSPECT_FAULT_LIST           "fault-list"
  91   96  #define FM_SUSPECT_FAULT_SZ             "fault-list-sz"
  92   97  #define FM_SUSPECT_FAULT_STATUS         "fault-status"
  93   98  #define FM_SUSPECT_INJECTED             "__injected"
  94   99  #define FM_SUSPECT_MESSAGE              "message"
  95  100  #define FM_SUSPECT_RETIRE               "retire"
  96  101  #define FM_SUSPECT_RESPONSE             "response"
  97  102  #define FM_SUSPECT_SEVERITY             "severity"
      103 +#define FM_SUSPECT_TYPE                 "type"
  98  104  
  99  105  #define FM_SUSPECT_VERS0                0
 100  106  #define FM_SUSPECT_VERSION              FM_SUSPECT_VERS0
 101  107  
 102  108  #define FM_SUSPECT_FAULTY               0x1
 103  109  #define FM_SUSPECT_UNUSABLE             0x2
 104  110  #define FM_SUSPECT_NOT_PRESENT          0x4
 105  111  #define FM_SUSPECT_DEGRADED             0x8
 106  112  #define FM_SUSPECT_REPAIRED             0x10
 107  113  #define FM_SUSPECT_REPLACED             0x20
↓ open down ↓ 264 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX