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>
NEX-16536 SUN-IREPORT-MIB is broken
NEX-16537 enhance FM traps
NEX-16545 SMF dict should have obsolete entries removed
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Cynthia Eastham <cynthia.eastham@nexenta.com>
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
NEX-14494 FMA related SNMP traps should add description
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/libfmd_snmp/common/fmd_snmp.h
          +++ new/usr/src/lib/fm/libfmd_snmp/common/fmd_snmp.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2018 Nexenta Systems, Inc.
  24   25   */
  25   26  
  26   27  #ifndef _FMD_SNMP_H
  27   28  #define _FMD_SNMP_H
  28   29  
  29   30  #ifdef  __cplusplus
  30   31  extern "C" {
  31   32  #endif
  32   33  
  33   34  /*
  34   35   * These values are derived from, and must remain consistent with, the
  35   36   * MIB definitions in SUN-FM-MIB.
  36   37   */
  37   38  #define MODNAME_STR     "sunFM"
  38   39  #define SUNFM_OID       1, 3, 6, 1, 4, 1, 42, 2, 195, 1
  39   40  
  40   41  #define SUNFMPROBLEMTABLE_OID           SUNFM_OID, 1
  41   42  
  42   43  #define SUNFMPROBLEM_COL_UUIDINDEX      1
  43   44  #define SUNFMPROBLEM_COL_UUID           2
  44      -#define SUNFMPROBLEM_COL_CODE           3
  45      -#define SUNFMPROBLEM_COL_URL            4
  46      -#define SUNFMPROBLEM_COL_DIAGENGINE     5
  47      -#define SUNFMPROBLEM_COL_DIAGTIME       6
  48      -#define SUNFMPROBLEM_COL_SUSPECTCOUNT   7
       45 +#define SUNFMPROBLEM_COL_HOSTNAME       3
       46 +#define SUNFMPROBLEM_COL_CODE           4
       47 +#define SUNFMPROBLEM_COL_TYPE           5
       48 +#define SUNFMPROBLEM_COL_SEVERITY       6
       49 +#define SUNFMPROBLEM_COL_URL            7
       50 +#define SUNFMPROBLEM_COL_DESC           8
       51 +#define SUNFMPROBLEM_COL_FMRI           9
       52 +#define SUNFMPROBLEM_COL_DIAGENGINE     10
       53 +#define SUNFMPROBLEM_COL_DIAGTIME       11
       54 +#define SUNFMPROBLEM_COL_SUSPECTCOUNT   12
  49   55  
  50   56  #define SUNFMPROBLEM_COLMIN             SUNFMPROBLEM_COL_UUID
  51   57  #define SUNFMPROBLEM_COLMAX             SUNFMPROBLEM_COL_SUSPECTCOUNT
  52   58  
  53   59  #define SUNFMFAULTEVENTTABLE_OID        SUNFM_OID, 2
  54   60  
  55   61  #define SUNFMFAULTEVENT_COL_UUIDINDEX   1
  56   62  #define SUNFMFAULTEVENT_COL_INDEX       2
  57   63  #define SUNFMFAULTEVENT_COL_PROBLEMUUID 3
  58   64  #define SUNFMFAULTEVENT_COL_CLASS       4
↓ open down ↓ 54 lines elided ↑ open up ↑
 113  119  
 114  120  /*
 115  121   * Definitions from SUN-IREPORT-MIB
 116  122   */
 117  123  #define SUNIREPORT_OID  1, 3, 6, 1, 4, 1, 42, 2, 197, 1
 118  124  
 119  125  #define SUNIREPORTNOTIFICATIONENTRY     SUNIREPORT_OID, 1
 120  126  
 121  127  #define SUNIREPORTHOSTNAME_OID          SUNIREPORTNOTIFICATIONENTRY, 1
 122  128  #define SUNIREPORTMSGID_OID             SUNIREPORTNOTIFICATIONENTRY, 2
 123      -#define SUNIREPORTDESCRIPTION_OID       SUNIREPORTNOTIFICATIONENTRY, 3
 124      -#define SUNIREPORTTIME_OID              SUNIREPORTNOTIFICATIONENTRY, 4
 125      -#define SUNIREPORTSMFFMRI_OID           SUNIREPORTNOTIFICATIONENTRY, 5
 126      -#define SUNIREPORTSMFFROMSTATE_OID      SUNIREPORTNOTIFICATIONENTRY, 6
 127      -#define SUNIREPORTSMFTOSTATE_OID        SUNIREPORTNOTIFICATIONENTRY, 7
 128      -#define SUNIREPORTTRANSITIONREASON_OID  SUNIREPORTNOTIFICATIONENTRY, 8
      129 +#define SUNIREPORTSEVERITY_OID          SUNIREPORTNOTIFICATIONENTRY, 3
      130 +#define SUNIREPORTDESCRIPTION_OID       SUNIREPORTNOTIFICATIONENTRY, 4
      131 +#define SUNIREPORTTIME_OID              SUNIREPORTNOTIFICATIONENTRY, 5
      132 +#define SUNIREPORTSMFFMRI_OID           SUNIREPORTNOTIFICATIONENTRY, 6
      133 +#define SUNIREPORTSMFFROMSTATE_OID      SUNIREPORTNOTIFICATIONENTRY, 7
      134 +#define SUNIREPORTSMFTOSTATE_OID        SUNIREPORTNOTIFICATIONENTRY, 8
      135 +#define SUNIREPORTTRANSITIONREASON_OID  SUNIREPORTNOTIFICATIONENTRY, 9
 129  136  
 130  137  #define SUNIREPORTTRAPS_OID             SUNIREPORT_OID, 2, 0
 131  138  #define SUNIREPORTTRAP_OID              SUNIREPORTTRAPS_OID, 1
 132  139  
 133  140  
 134  141  extern int      init_sunFM(void);
 135  142  
 136  143  #ifdef  __cplusplus
 137  144  }
 138  145  #endif
 139  146  
 140  147  #endif  /* _FMD_SNMP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX