|
1 /* |
|
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
|
3 * |
|
4 * U.S. Government Rights - Commercial software. Government users are subject |
|
5 * to the Sun Microsystems, Inc. standard license agreement and applicable |
|
6 * provisions of the FAR and its supplements. |
|
7 * |
|
8 * |
|
9 * This distribution may include materials developed by third parties. Sun, |
|
10 * Sun Microsystems, the Sun logo and Solaris are trademarks or registered |
|
11 * trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|
12 * |
|
13 */ |
|
14 /* |
|
15 * Note: this file originally auto-generated by mib2c using |
|
16 * : mib2c.iterate.conf,v 5.5 2002/12/16 22:50:18 hardaker Exp $ |
|
17 */ |
|
18 #ifndef ENTPHYSICALTABLE_H |
|
19 #define ENTPHYSICALTABLE_H |
|
20 |
|
21 /* function declarations */ |
|
22 void init_entPhysicalTable(void); |
|
23 void initialize_table_entPhysicalTable(void); |
|
24 Netsnmp_Node_Handler entPhysicalTable_handler; |
|
25 |
|
26 Netsnmp_First_Data_Point entPhysicalTable_get_first_data_point; |
|
27 Netsnmp_Next_Data_Point entPhysicalTable_get_next_data_point; |
|
28 |
|
29 /* column number definitions for table entPhysicalTable */ |
|
30 #define COLUMN_ENTPHYSICALINDEX 1 |
|
31 #define COLUMN_ENTPHYSICALDESCR 2 |
|
32 #define COLUMN_ENTPHYSICALVENDORTYPE 3 |
|
33 #define COLUMN_ENTPHYSICALCONTAINEDIN 4 |
|
34 #define COLUMN_ENTPHYSICALCLASS 5 |
|
35 #define COLUMN_ENTPHYSICALPARENTRELPOS 6 |
|
36 #define COLUMN_ENTPHYSICALNAME 7 |
|
37 #define COLUMN_ENTPHYSICALHARDWAREREV 8 |
|
38 #define COLUMN_ENTPHYSICALFIRMWAREREV 9 |
|
39 #define COLUMN_ENTPHYSICALSOFTWAREREV 10 |
|
40 #define COLUMN_ENTPHYSICALSERIALNUM 11 |
|
41 #define COLUMN_ENTPHYSICALMFGNAME 12 |
|
42 #define COLUMN_ENTPHYSICALMODELNAME 13 |
|
43 #define COLUMN_ENTPHYSICALALIAS 14 |
|
44 #define COLUMN_ENTPHYSICALASSETID 15 |
|
45 #define COLUMN_ENTPHYSICALISFRU 16 |
|
46 |
|
47 typedef struct entPhysicalEntry_s { |
|
48 int_l entPhysicalIndex; |
|
49 char *entPhysicalDescr; |
|
50 oid *entPhysicalVendorType; |
|
51 int_l entPhysicalVendorTypeSize; |
|
52 int_l entPhysicalContainedIn; |
|
53 int_l entPhysicalClass; /* see ENTPHYSICAL_CLASS_XXX */ |
|
54 int_l entPhysicalParentRelPos; |
|
55 char *entPhysicalName; |
|
56 char *entPhysicalHardwareRev; |
|
57 char *entPhysicalFirmwareRev; |
|
58 char *entPhysicalSoftwareRev; |
|
59 char *entPhysicalSerialNum; |
|
60 char *entPhysicalMfgName; |
|
61 char *entPhysicalModelName; |
|
62 char *entPhysicalAlias; |
|
63 char *entPhysicalAssetID; |
|
64 int_l entPhysicalIsFRU; |
|
65 struct entPhysicalEntry_s *pNextEntry; |
|
66 } entPhysicalEntry_t; |
|
67 |
|
68 |
|
69 #define ENTPHYSICAL_CLASS_OTHER 1 |
|
70 #define ENTPHYSICAL_CLASS_UNKNOWN 2 |
|
71 #define ENTPHYSICAL_CLASS_CHASSIS 3 |
|
72 #define ENTPHYSICAL_CLASS_BACKPLANE 4 |
|
73 #define ENTPHYSICAL_CLASS_CONTAINER 5 |
|
74 #define ENTPHYSICAL_CLASS_POWERSUPPLY 6 |
|
75 #define ENTPHYSICAL_CLASS_FAN 7 |
|
76 #define ENTPHYSICAL_CLASS_SENSOR 8 |
|
77 #define ENTPHYSICAL_CLASS_MODULE 9 |
|
78 #define ENTPHYSICAL_CLASS_PORT 10 |
|
79 #define ENTPHYSICAL_CLASS_STACK 11 |
|
80 |
|
81 extern entPhysicalEntry_t* getPhysicalTableEntry(int xPhysicalIndex); |
|
82 extern entPhysicalEntry_t* getPhysicalTableStaleEntry(int xPhysicalIndex); |
|
83 extern int allocPhysicalEntry(int physidx, entPhysicalEntry_t * newPhysEntry); |
|
84 |
|
85 extern void populate_entPhysicalEntry(entPhysicalEntry_t *phyStatic, |
|
86 char *entPhysicalDescr, |
|
87 oid *entPhysicalVendorType, |
|
88 int entPhysicalVendorTypeSize, |
|
89 int entPhysicalContainedIn, |
|
90 int entPhysicalClass, |
|
91 int entPhysicalParentRelPos, |
|
92 char *entPhysicalName, |
|
93 char *entPhysicalHardwareRev, |
|
94 char *entPhysicalFirmwareRev, |
|
95 char *entPhysicalSoftwareRev, |
|
96 char *entPhysicalSerialNum, |
|
97 char *entPhysicalMfgName, |
|
98 char *entPhysicalModelName, |
|
99 char *entPhysicalAlias, |
|
100 char *entPhysicalAssetID, |
|
101 int entPhysicalIsFRU); |
|
102 |
|
103 extern int makePhysicalTableEntryLive(int xPhysicalIndex); |
|
104 extern int makePhysicalTableEntryStale(int xPhysicalIndex); |
|
105 extern int deletePhysicalTableEntry(int xPhysicalIndex); |
|
106 /* Fix for 4915080 */ |
|
107 extern int *getAllChildrenFromPhysicalContainedIn(int parentIndex); |
|
108 /* End of Fix for 4915080 */ |
|
109 #endif /* ENTPHYSICALTABLE_H */ |