2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _FMD_SNMP_H
2N/A#define _FMD_SNMP_H
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A/*
2N/A * These values are derived from, and must remain consistent with, the
2N/A * MIB definitions in SUN-FM-MIB.
2N/A */
2N/A#define MODNAME_STR "sunFM"
2N/A#define SUNFM_OID 1, 3, 6, 1, 4, 1, 42, 2, 195, 1
2N/A
2N/A#define SUNFMPROBLEMTABLE_OID SUNFM_OID, 1
2N/A
2N/A#define SUNFMPROBLEM_COL_UUIDINDEX 1
2N/A#define SUNFMPROBLEM_COL_UUID 2
2N/A#define SUNFMPROBLEM_COL_CODE 3
2N/A#define SUNFMPROBLEM_COL_URL 4
2N/A#define SUNFMPROBLEM_COL_DIAGENGINE 5
2N/A#define SUNFMPROBLEM_COL_DIAGTIME 6
2N/A#define SUNFMPROBLEM_COL_SUSPECTCOUNT 7
2N/A#define SUNFMPROBLEM_COL_SEVERITY 8
2N/A#define SUNFMPROBLEM_COL_FAULTSTATUS 9
2N/A#define SUNFMPROBLEM_COL_INJECTED 10
2N/A
2N/A#define SUNFMPROBLEM_COLMIN SUNFMPROBLEM_COL_UUID
2N/A#define SUNFMPROBLEM_COLMAX SUNFMPROBLEM_COL_INJECTED
2N/A
2N/A#define SUNFMFAULTEVENTTABLE_OID SUNFM_OID, 2
2N/A
2N/A#define SUNFMFAULTEVENT_COL_UUIDINDEX 1
2N/A#define SUNFMFAULTEVENT_COL_INDEX 2
2N/A#define SUNFMFAULTEVENT_COL_PROBLEMUUID 3
2N/A#define SUNFMFAULTEVENT_COL_CLASS 4
2N/A#define SUNFMFAULTEVENT_COL_CERTAINTY 5
2N/A#define SUNFMFAULTEVENT_COL_ASRU 6
2N/A#define SUNFMFAULTEVENT_COL_FRU 7
2N/A#define SUNFMFAULTEVENT_COL_RESOURCE 8
2N/A#define SUNFMFAULTEVENT_COL_STATUS 9
2N/A#define SUNFMFAULTEVENT_COL_LOCATION 10
2N/A
2N/A#define SUNFMFAULTEVENT_COLMIN SUNFMFAULTEVENT_COL_PROBLEMUUID
2N/A#define SUNFMFAULTEVENT_COLMAX SUNFMFAULTEVENT_COL_LOCATION
2N/A
2N/A#define SUNFMFAULTEVENT_STATE_OTHER 1
2N/A#define SUNFMFAULTEVENT_STATE_FAULTY 2
2N/A#define SUNFMFAULTEVENT_STATE_REMOVED 3
2N/A#define SUNFMFAULTEVENT_STATE_REPLACED 4
2N/A#define SUNFMFAULTEVENT_STATE_REPAIRED 5
2N/A#define SUNFMFAULTEVENT_STATE_ACQUITTED 6
2N/A
2N/A#define SUNFMMODULETABLE_OID SUNFM_OID, 3
2N/A
2N/A#define SUNFMMODULE_COL_INDEX 1
2N/A#define SUNFMMODULE_COL_NAME 2
2N/A#define SUNFMMODULE_COL_VERSION 3
2N/A#define SUNFMMODULE_COL_STATUS 4
2N/A#define SUNFMMODULE_COL_DESCRIPTION 5
2N/A
2N/A#define SUNFMMODULE_COLMIN SUNFMMODULE_COL_NAME
2N/A#define SUNFMMODULE_COLMAX SUNFMMODULE_COL_DESCRIPTION
2N/A
2N/A#define SUNFMMODULE_STATE_OTHER 1
2N/A#define SUNFMMODULE_STATE_ACTIVE 2
2N/A#define SUNFMMODULE_STATE_FAILED 3
2N/A
2N/A#define SUNFMRESOURCECOUNT_OID SUNFM_OID, 4
2N/A
2N/A#define SUNFMRESOURCETABLE_OID SUNFM_OID, 5
2N/A
2N/A#define SUNFMRESOURCE_COL_INDEX 1
2N/A#define SUNFMRESOURCE_COL_FMRI 2
2N/A#define SUNFMRESOURCE_COL_STATUS 3
2N/A#define SUNFMRESOURCE_COL_DIAGNOSISUUID 4
2N/A
2N/A#define SUNFMRESOURCE_COLMIN SUNFMRESOURCE_COL_FMRI
2N/A#define SUNFMRESOURCE_COLMAX SUNFMRESOURCE_COL_DIAGNOSISUUID
2N/A
2N/A#define SUNFMRESOURCE_STATE_OTHER 1
2N/A#define SUNFMRESOURCE_STATE_OK 2
2N/A#define SUNFMRESOURCE_STATE_DEGRADED 3
2N/A#define SUNFMRESOURCE_STATE_UNKNOWN 4
2N/A#define SUNFMRESOURCE_STATE_FAULTED 5
2N/A
2N/A#define SUNFMTRAPS_OID SUNFM_OID, 7, 0
2N/A#define SUNFMPROBLEMTRAP_OID SUNFMTRAPS_OID, 1
2N/A
2N/A#define SNMP_URL_MSG "snmp-url"
2N/A
2N/A/*
2N/A * Definitions from SUN-IREPORT-MIB
2N/A */
2N/A#define SUNIREPORT_OID 1, 3, 6, 1, 4, 1, 42, 2, 197, 1
2N/A
2N/A#define SUNIREPORTNOTIFICATIONENTRY SUNIREPORT_OID, 1
2N/A
2N/A#define SUNIREPORTHOSTNAME_OID SUNIREPORTNOTIFICATIONENTRY, 1
2N/A#define SUNIREPORTMSGID_OID SUNIREPORTNOTIFICATIONENTRY, 2
2N/A#define SUNIREPORTDESCRIPTION_OID SUNIREPORTNOTIFICATIONENTRY, 3
2N/A#define SUNIREPORTTIME_OID SUNIREPORTNOTIFICATIONENTRY, 4
2N/A#define SUNIREPORTSMFFMRI_OID SUNIREPORTNOTIFICATIONENTRY, 5
2N/A#define SUNIREPORTSMFFROMSTATE_OID SUNIREPORTNOTIFICATIONENTRY, 6
2N/A#define SUNIREPORTSMFTOSTATE_OID SUNIREPORTNOTIFICATIONENTRY, 7
2N/A#define SUNIREPORTTRANSITIONREASON_OID SUNIREPORTNOTIFICATIONENTRY, 8
2N/A
2N/A#define SUNIREPORTTRAPS_OID SUNIREPORT_OID, 2, 0
2N/A#define SUNIREPORTTRAP_OID SUNIREPORTTRAPS_OID, 1
2N/A
2N/A
2N/Aextern int init_sunFM(void);
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _FMD_SNMP_H */