11303Swesolows /* 21303Swesolows * CDDL HEADER START 31303Swesolows * 41303Swesolows * The contents of this file are subject to the terms of the 51303Swesolows * Common Development and Distribution License (the "License"). 61303Swesolows * You may not use this file except in compliance with the License. 71303Swesolows * 81303Swesolows * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91303Swesolows * or http://www.opensolaris.org/os/licensing. 101303Swesolows * See the License for the specific language governing permissions 111303Swesolows * and limitations under the License. 121303Swesolows * 131303Swesolows * When distributing Covered Code, include this CDDL HEADER in each 141303Swesolows * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151303Swesolows * If applicable, add the following below this CDDL HEADER, with the 161303Swesolows * fields enclosed by brackets "[]" replaced with your own identifying 171303Swesolows * information: Portions Copyright [yyyy] [name of copyright owner] 181303Swesolows * 191303Swesolows * CDDL HEADER END 201303Swesolows */ 211303Swesolows 221303Swesolows /* 23*12967Sgavin.maltby@oracle.com * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 241303Swesolows */ 251303Swesolows 26*12967Sgavin.maltby@oracle.com #ifndef _FMD_SNMP_H 27*12967Sgavin.maltby@oracle.com #define _FMD_SNMP_H 281303Swesolows 291303Swesolows #ifdef __cplusplus 301303Swesolows extern "C" { 311303Swesolows #endif 321303Swesolows 331303Swesolows /* 341303Swesolows * These values are derived from, and must remain consistent with, the 35*12967Sgavin.maltby@oracle.com * MIB definitions in SUN-FM-MIB. 361303Swesolows */ 371303Swesolows #define MODNAME_STR "sunFM" 381303Swesolows #define SUNFM_OID 1, 3, 6, 1, 4, 1, 42, 2, 195, 1 391303Swesolows 401303Swesolows #define SUNFMPROBLEMTABLE_OID SUNFM_OID, 1 411303Swesolows 421303Swesolows #define SUNFMPROBLEM_COL_UUIDINDEX 1 431303Swesolows #define SUNFMPROBLEM_COL_UUID 2 441303Swesolows #define SUNFMPROBLEM_COL_CODE 3 451303Swesolows #define SUNFMPROBLEM_COL_URL 4 461303Swesolows #define SUNFMPROBLEM_COL_DIAGENGINE 5 471303Swesolows #define SUNFMPROBLEM_COL_DIAGTIME 6 481303Swesolows #define SUNFMPROBLEM_COL_SUSPECTCOUNT 7 491303Swesolows 501303Swesolows #define SUNFMPROBLEM_COLMIN SUNFMPROBLEM_COL_UUID 511303Swesolows #define SUNFMPROBLEM_COLMAX SUNFMPROBLEM_COL_SUSPECTCOUNT 521303Swesolows 531303Swesolows #define SUNFMFAULTEVENTTABLE_OID SUNFM_OID, 2 541303Swesolows 551303Swesolows #define SUNFMFAULTEVENT_COL_UUIDINDEX 1 561303Swesolows #define SUNFMFAULTEVENT_COL_INDEX 2 571303Swesolows #define SUNFMFAULTEVENT_COL_PROBLEMUUID 3 581303Swesolows #define SUNFMFAULTEVENT_COL_CLASS 4 591303Swesolows #define SUNFMFAULTEVENT_COL_CERTAINTY 5 601303Swesolows #define SUNFMFAULTEVENT_COL_ASRU 6 611303Swesolows #define SUNFMFAULTEVENT_COL_FRU 7 621303Swesolows #define SUNFMFAULTEVENT_COL_RESOURCE 8 637275Sstephh #define SUNFMFAULTEVENT_COL_STATUS 9 647275Sstephh #define SUNFMFAULTEVENT_COL_LOCATION 10 651303Swesolows 661303Swesolows #define SUNFMFAULTEVENT_COLMIN SUNFMFAULTEVENT_COL_PROBLEMUUID 677275Sstephh #define SUNFMFAULTEVENT_COLMAX SUNFMFAULTEVENT_COL_LOCATION 687275Sstephh 697275Sstephh #define SUNFMFAULTEVENT_STATE_OTHER 1 707275Sstephh #define SUNFMFAULTEVENT_STATE_FAULTY 2 717275Sstephh #define SUNFMFAULTEVENT_STATE_REMOVED 3 727275Sstephh #define SUNFMFAULTEVENT_STATE_REPLACED 4 737275Sstephh #define SUNFMFAULTEVENT_STATE_REPAIRED 5 747275Sstephh #define SUNFMFAULTEVENT_STATE_ACQUITTED 6 751303Swesolows 761303Swesolows #define SUNFMMODULETABLE_OID SUNFM_OID, 3 771303Swesolows 781303Swesolows #define SUNFMMODULE_COL_INDEX 1 791303Swesolows #define SUNFMMODULE_COL_NAME 2 801303Swesolows #define SUNFMMODULE_COL_VERSION 3 811303Swesolows #define SUNFMMODULE_COL_STATUS 4 821303Swesolows #define SUNFMMODULE_COL_DESCRIPTION 5 831303Swesolows 841303Swesolows #define SUNFMMODULE_COLMIN SUNFMMODULE_COL_NAME 851303Swesolows #define SUNFMMODULE_COLMAX SUNFMMODULE_COL_DESCRIPTION 861303Swesolows 871303Swesolows #define SUNFMMODULE_STATE_OTHER 1 881303Swesolows #define SUNFMMODULE_STATE_ACTIVE 2 891303Swesolows #define SUNFMMODULE_STATE_FAILED 3 901303Swesolows 911303Swesolows #define SUNFMRESOURCECOUNT_OID SUNFM_OID, 4 921303Swesolows 931303Swesolows #define SUNFMRESOURCETABLE_OID SUNFM_OID, 5 941303Swesolows 951303Swesolows #define SUNFMRESOURCE_COL_INDEX 1 961303Swesolows #define SUNFMRESOURCE_COL_FMRI 2 971303Swesolows #define SUNFMRESOURCE_COL_STATUS 3 981303Swesolows #define SUNFMRESOURCE_COL_DIAGNOSISUUID 4 991303Swesolows 1001303Swesolows #define SUNFMRESOURCE_COLMIN SUNFMRESOURCE_COL_FMRI 1011303Swesolows #define SUNFMRESOURCE_COLMAX SUNFMRESOURCE_COL_DIAGNOSISUUID 1021303Swesolows 1031303Swesolows #define SUNFMRESOURCE_STATE_OTHER 1 1041303Swesolows #define SUNFMRESOURCE_STATE_OK 2 1051303Swesolows #define SUNFMRESOURCE_STATE_DEGRADED 3 1061303Swesolows #define SUNFMRESOURCE_STATE_UNKNOWN 4 1071303Swesolows #define SUNFMRESOURCE_STATE_FAULTED 5 1081303Swesolows 1091303Swesolows #define SUNFMTRAPS_OID SUNFM_OID, 7, 0 1101303Swesolows #define SUNFMPROBLEMTRAP_OID SUNFMTRAPS_OID, 1 1111303Swesolows 1121303Swesolows #define SNMP_URL_MSG "snmp-url" 1131303Swesolows 114*12967Sgavin.maltby@oracle.com /* 115*12967Sgavin.maltby@oracle.com * Definitions from SUN-IREPORT-MIB 116*12967Sgavin.maltby@oracle.com */ 117*12967Sgavin.maltby@oracle.com #define SUNIREPORT_OID 1, 3, 6, 1, 4, 1, 42, 2, 197, 1 118*12967Sgavin.maltby@oracle.com 119*12967Sgavin.maltby@oracle.com #define SUNIREPORTNOTIFICATIONENTRY SUNIREPORT_OID, 1 120*12967Sgavin.maltby@oracle.com 121*12967Sgavin.maltby@oracle.com #define SUNIREPORTHOSTNAME_OID SUNIREPORTNOTIFICATIONENTRY, 1 122*12967Sgavin.maltby@oracle.com #define SUNIREPORTMSGID_OID SUNIREPORTNOTIFICATIONENTRY, 2 123*12967Sgavin.maltby@oracle.com #define SUNIREPORTDESCRIPTION_OID SUNIREPORTNOTIFICATIONENTRY, 3 124*12967Sgavin.maltby@oracle.com #define SUNIREPORTTIME_OID SUNIREPORTNOTIFICATIONENTRY, 4 125*12967Sgavin.maltby@oracle.com #define SUNIREPORTSMFFMRI_OID SUNIREPORTNOTIFICATIONENTRY, 5 126*12967Sgavin.maltby@oracle.com #define SUNIREPORTSMFFROMSTATE_OID SUNIREPORTNOTIFICATIONENTRY, 6 127*12967Sgavin.maltby@oracle.com #define SUNIREPORTSMFTOSTATE_OID SUNIREPORTNOTIFICATIONENTRY, 7 128*12967Sgavin.maltby@oracle.com #define SUNIREPORTTRANSITIONREASON_OID SUNIREPORTNOTIFICATIONENTRY, 8 129*12967Sgavin.maltby@oracle.com 130*12967Sgavin.maltby@oracle.com #define SUNIREPORTTRAPS_OID SUNIREPORT_OID, 2, 0 131*12967Sgavin.maltby@oracle.com #define SUNIREPORTTRAP_OID SUNIREPORTTRAPS_OID, 1 132*12967Sgavin.maltby@oracle.com 133*12967Sgavin.maltby@oracle.com 1341303Swesolows extern int init_sunFM(void); 1351303Swesolows 1361303Swesolows #ifdef __cplusplus 1371303Swesolows } 1381303Swesolows #endif 1391303Swesolows 140*12967Sgavin.maltby@oracle.com #endif /* _FMD_SNMP_H */ 141