2 * This file was generated by mib2c and is intended for use as
3 * a mib module for the ucd-snmp snmpd agent.
8 * This should always be included first before anything else
10 #include <net-snmp/net-snmp-config.h>
22 * minimal include directives
24 #include <net-snmp/net-snmp-includes.h>
25 #include <net-snmp/agent/net-snmp-agent-includes.h>
27 #include "header_complex.h"
28 #include "mteTriggerThresholdTable.h"
29 #include "mteTriggerTable.h"
33 * mteTriggerThresholdTable_variables_oid:
34 * this is the top level oid that we want to register under. This
35 * is essentially a prefix, with the suffix appearing in the
40 oid mteTriggerThresholdTable_variables_oid[] =
41 { 1, 3, 6, 1, 2, 1, 88, 1, 2, 6 };
45 * variable2 mteTriggerThresholdTable_variables:
46 * this variable defines function callbacks and type return information
47 * for the mteTriggerThresholdTable mib section
51 struct variable2 mteTriggerThresholdTable_variables[] = {
53 * magic number , variable type , ro/rw , callback fn , L, oidsuffix
55 #define MTETRIGGERTHRESHOLDSTARTUP 3
56 {MTETRIGGERTHRESHOLDSTARTUP, ASN_INTEGER, RWRITE,
57 var_mteTriggerThresholdTable, 2, {1, 1}},
58 #define MTETRIGGERTHRESHOLDRISING 4
59 {MTETRIGGERTHRESHOLDRISING, ASN_INTEGER, RWRITE,
60 var_mteTriggerThresholdTable, 2, {1, 2}},
61 #define MTETRIGGERTHRESHOLDFALLING 5
62 {MTETRIGGERTHRESHOLDFALLING, ASN_INTEGER, RWRITE,
63 var_mteTriggerThresholdTable, 2, {1, 3}},
64 #define MTETRIGGERTHRESHOLDDELTARISING 6
65 {MTETRIGGERTHRESHOLDDELTARISING, ASN_INTEGER, RWRITE,
66 var_mteTriggerThresholdTable, 2, {1, 4}},
67 #define MTETRIGGERTHRESHOLDDELTAFALLING 7
68 {MTETRIGGERTHRESHOLDDELTAFALLING, ASN_INTEGER, RWRITE,
69 var_mteTriggerThresholdTable, 2, {1, 5}},
70 #define MTETRIGGERTHRESHOLDOBJECTSOWNER 8
71 {MTETRIGGERTHRESHOLDOBJECTSOWNER, ASN_OCTET_STR, RWRITE,
72 var_mteTriggerThresholdTable, 2, {1, 6}},
73 #define MTETRIGGERTHRESHOLDOBJECTS 9
74 {MTETRIGGERTHRESHOLDOBJECTS, ASN_OCTET_STR, RWRITE,
75 var_mteTriggerThresholdTable, 2, {1, 7}},
76 #define MTETRIGGERTHRESHOLDRISINGEVENTOWNER 10
77 {MTETRIGGERTHRESHOLDRISINGEVENTOWNER, ASN_OCTET_STR, RWRITE,
78 var_mteTriggerThresholdTable, 2, {1, 8}},
79 #define MTETRIGGERTHRESHOLDRISINGEVENT 11
80 {MTETRIGGERTHRESHOLDRISINGEVENT, ASN_OCTET_STR, RWRITE,
81 var_mteTriggerThresholdTable, 2, {1, 9}},
82 #define MTETRIGGERTHRESHOLDFALLINGEVENTOWNER 12
83 {MTETRIGGERTHRESHOLDFALLINGEVENTOWNER, ASN_OCTET_STR, RWRITE,
84 var_mteTriggerThresholdTable, 2, {1, 10}},
85 #define MTETRIGGERTHRESHOLDFALLINGEVENT 13
86 {MTETRIGGERTHRESHOLDFALLINGEVENT, ASN_OCTET_STR, RWRITE,
87 var_mteTriggerThresholdTable, 2, {1, 11}},
88 #define MTETRIGGERTHRESHOLDDELTARISINGEVENTOWNER 14
89 {MTETRIGGERTHRESHOLDDELTARISINGEVENTOWNER, ASN_OCTET_STR, RWRITE,
90 var_mteTriggerThresholdTable, 2, {1, 12}},
91 #define MTETRIGGERTHRESHOLDDELTARISINGEVENT 15
92 {MTETRIGGERTHRESHOLDDELTARISINGEVENT, ASN_OCTET_STR, RWRITE,
93 var_mteTriggerThresholdTable, 2, {1, 13}},
94 #define MTETRIGGERTHRESHOLDDELTAFALLINGEVENTOWNER 16
95 {MTETRIGGERTHRESHOLDDELTAFALLINGEVENTOWNER, ASN_OCTET_STR, RWRITE,
96 var_mteTriggerThresholdTable, 2, {1, 14}},
97 #define MTETRIGGERTHRESHOLDDELTAFALLINGEVENT 17
98 {MTETRIGGERTHRESHOLDDELTAFALLINGEVENT, ASN_OCTET_STR, RWRITE,
99 var_mteTriggerThresholdTable, 2, {1, 15}},
103 * (L = length of the oidsuffix)
108 * global storage of our data, saved in and configured by header_complex()
110 extern struct header_complex_index *mteTriggerTableStorage;
114 * init_mteTriggerThresholdTable():
115 * Initialization routine. This is called when the agent starts up.
116 * At a minimum, registration of your variables should take place here.
119 init_mteTriggerThresholdTable(void)
121 DEBUGMSGTL(("mteTriggerThresholdTable", "initializing... "));
125 * register ourselves with the agent to handle our mib tree
127 REGISTER_MIB("mteTriggerThresholdTable",
128 mteTriggerThresholdTable_variables, variable2,
129 mteTriggerThresholdTable_variables_oid);
132 DEBUGMSGTL(("mteTriggerThresholdTable", "done.\n"));
136 * var_mteTriggerThresholdTable():
137 * Handle this table separately from the scalar value case.
138 * The workings of this are basically the same as for var_mteTriggerThresholdTable above.
141 var_mteTriggerThresholdTable(struct variable *vp,
145 size_t * var_len, WriteMethod ** write_method)
149 struct mteTriggerTable_data *StorageTmp = NULL;
152 DEBUGMSGTL(("mteTriggerThresholdTable",
153 "var_mteTriggerThresholdTable: Entering... \n"));
155 * this assumes you have registered all your data properly
158 header_complex(mteTriggerTableStorage, vp, name, length, exact,
159 var_len, write_method)) == NULL)
163 if (!(StorageTmp->mteTriggerTest[0] & MTETRIGGERTEST_THRESHOLD))
167 * this is where we do the value assignments for the mib results.
172 case MTETRIGGERTHRESHOLDSTARTUP:
173 *write_method = write_mteTriggerThresholdStartup;
174 *var_len = sizeof(StorageTmp->mteTriggerThresholdStartup);
175 return (u_char *) & StorageTmp->mteTriggerThresholdStartup;
177 case MTETRIGGERTHRESHOLDRISING:
178 *write_method = write_mteTriggerThresholdRising;
179 *var_len = sizeof(StorageTmp->mteTriggerThresholdRising);
180 return (u_char *) & StorageTmp->mteTriggerThresholdRising;
182 case MTETRIGGERTHRESHOLDFALLING:
183 *write_method = write_mteTriggerThresholdFalling;
184 *var_len = sizeof(StorageTmp->mteTriggerThresholdFalling);
185 return (u_char *) & StorageTmp->mteTriggerThresholdFalling;
187 case MTETRIGGERTHRESHOLDDELTARISING:
188 *write_method = write_mteTriggerThresholdDeltaRising;
189 *var_len = sizeof(StorageTmp->mteTriggerThresholdDeltaRising);
190 return (u_char *) & StorageTmp->mteTriggerThresholdDeltaRising;
192 case MTETRIGGERTHRESHOLDDELTAFALLING:
193 *write_method = write_mteTriggerThresholdDeltaFalling;
194 *var_len = sizeof(StorageTmp->mteTriggerThresholdDeltaFalling);
195 return (u_char *) & StorageTmp->mteTriggerThresholdDeltaFalling;
197 case MTETRIGGERTHRESHOLDOBJECTSOWNER:
198 *write_method = write_mteTriggerThresholdObjectsOwner;
199 *var_len = StorageTmp->mteTriggerThresholdObjectsOwnerLen;
200 return (u_char *) StorageTmp->mteTriggerThresholdObjectsOwner;
202 case MTETRIGGERTHRESHOLDOBJECTS:
203 *write_method = write_mteTriggerThresholdObjects;
204 *var_len = StorageTmp->mteTriggerThresholdObjectsLen;
205 return (u_char *) StorageTmp->mteTriggerThresholdObjects;
207 case MTETRIGGERTHRESHOLDRISINGEVENTOWNER:
208 *write_method = write_mteTriggerThresholdRisingEventOwner;
209 *var_len = StorageTmp->mteTriggerThresholdRisingEventOwnerLen;
210 return (u_char *) StorageTmp->mteTriggerThresholdRisingEventOwner;
212 case MTETRIGGERTHRESHOLDRISINGEVENT:
213 *write_method = write_mteTriggerThresholdRisingEvent;
214 *var_len = StorageTmp->mteTriggerThresholdRisingEventLen;
215 return (u_char *) StorageTmp->mteTriggerThresholdRisingEvent;
217 case MTETRIGGERTHRESHOLDFALLINGEVENTOWNER:
218 *write_method = write_mteTriggerThresholdFallingEventOwner;
219 *var_len = StorageTmp->mteTriggerThresholdFallingEventOwnerLen;
220 return (u_char *) StorageTmp->mteTriggerThresholdFallingEventOwner;
222 case MTETRIGGERTHRESHOLDFALLINGEVENT:
223 *write_method = write_mteTriggerThresholdFallingEvent;
224 *var_len = StorageTmp->mteTriggerThresholdFallingEventLen;
225 return (u_char *) StorageTmp->mteTriggerThresholdFallingEvent;
227 case MTETRIGGERTHRESHOLDDELTARISINGEVENTOWNER:
228 *write_method = write_mteTriggerThresholdDeltaRisingEventOwner;
229 *var_len = StorageTmp->mteTriggerThresholdDeltaRisingEventOwnerLen;
230 return (u_char *) StorageTmp->
231 mteTriggerThresholdDeltaRisingEventOwner;
233 case MTETRIGGERTHRESHOLDDELTARISINGEVENT:
234 *write_method = write_mteTriggerThresholdDeltaRisingEvent;
235 *var_len = StorageTmp->mteTriggerThresholdDeltaRisingEventLen;
236 return (u_char *) StorageTmp->mteTriggerThresholdDeltaRisingEvent;
238 case MTETRIGGERTHRESHOLDDELTAFALLINGEVENTOWNER:
239 *write_method = write_mteTriggerThresholdDeltaFallingEventOwner;
241 StorageTmp->mteTriggerThresholdDeltaFallingEventOwnerLen;
242 return (u_char *) StorageTmp->
243 mteTriggerThresholdDeltaFallingEventOwner;
245 case MTETRIGGERTHRESHOLDDELTAFALLINGEVENT:
246 *write_method = write_mteTriggerThresholdDeltaFallingEvent;
247 *var_len = StorageTmp->mteTriggerThresholdDeltaFallingEventLen;
248 return (u_char *) StorageTmp->mteTriggerThresholdDeltaFallingEvent;
261 write_mteTriggerThresholdStartup(int action,
266 oid * name, size_t name_len)
269 struct mteTriggerTable_data *StorageTmp = NULL;
272 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
276 DEBUGMSGTL(("mteTriggerThresholdTable",
277 "write_mteTriggerThresholdStartup entering action=%d... \n",
280 header_complex(mteTriggerTableStorage, NULL,
282 (mteTriggerThresholdTable_variables_oid) /
283 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
285 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
290 if (var_val_type != ASN_INTEGER) {
292 "write to mteTriggerThresholdStartup not ASN_INTEGER\n");
293 return SNMP_ERR_WRONGTYPE;
295 if (StorageTmp->storageType != ST_NONVOLATILE)
296 return SNMP_ERR_NOTWRITABLE;
302 * memory reseveration, final preparation...
309 * Release any resources that have been allocated
316 * The variable has been stored in long_ret for
317 * you to use, and you have just been asked to do something with
318 * it. Note that anything done here must be reversable in the UNDO case
320 tmpvar = StorageTmp->mteTriggerThresholdStartup;
321 StorageTmp->mteTriggerThresholdStartup = *((long *) var_val);
327 * Back out any changes made in the ACTION case
329 StorageTmp->mteTriggerThresholdStartup = tmpvar;
335 * Things are working well, so it's now safe to make the change
336 * permanently. Make sure that anything done here can't fail!
341 return SNMP_ERR_NOERROR;
347 write_mteTriggerThresholdRising(int action,
352 oid * name, size_t name_len)
355 struct mteTriggerTable_data *StorageTmp = NULL;
358 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
362 DEBUGMSGTL(("mteTriggerThresholdTable",
363 "write_mteTriggerThresholdRising entering action=%d... \n",
366 header_complex(mteTriggerTableStorage, NULL,
368 (mteTriggerThresholdTable_variables_oid) /
369 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
371 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
376 if (var_val_type != ASN_INTEGER) {
378 "write to mteTriggerThresholdRising not ASN_INTEGER\n");
379 return SNMP_ERR_WRONGTYPE;
381 if (StorageTmp->storageType != ST_NONVOLATILE)
382 return SNMP_ERR_NOTWRITABLE;
388 * memory reseveration, final preparation...
395 * Release any resources that have been allocated
402 * The variable has been stored in long_ret for
403 * you to use, and you have just been asked to do something with
404 * it. Note that anything done here must be reversable in the UNDO case
406 tmpvar = StorageTmp->mteTriggerThresholdRising;
407 StorageTmp->mteTriggerThresholdRising = *((long *) var_val);
413 * Back out any changes made in the ACTION case
415 StorageTmp->mteTriggerThresholdRising = tmpvar;
421 * Things are working well, so it's now safe to make the change
422 * permanently. Make sure that anything done here can't fail!
427 return SNMP_ERR_NOERROR;
433 write_mteTriggerThresholdFalling(int action,
438 oid * name, size_t name_len)
441 struct mteTriggerTable_data *StorageTmp = NULL;
444 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
448 DEBUGMSGTL(("mteTriggerThresholdTable",
449 "write_mteTriggerThresholdFalling entering action=%d... \n",
452 header_complex(mteTriggerTableStorage, NULL,
454 (mteTriggerThresholdTable_variables_oid) /
455 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
457 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
462 if (var_val_type != ASN_INTEGER) {
464 "write to mteTriggerThresholdFalling not ASN_INTEGER\n");
465 return SNMP_ERR_WRONGTYPE;
467 if (StorageTmp->storageType != ST_NONVOLATILE)
468 return SNMP_ERR_NOTWRITABLE;
474 * memory reseveration, final preparation...
481 * Release any resources that have been allocated
488 * The variable has been stored in long_ret for
489 * you to use, and you have just been asked to do something with
490 * it. Note that anything done here must be reversable in the UNDO case
492 tmpvar = StorageTmp->mteTriggerThresholdFalling;
493 StorageTmp->mteTriggerThresholdFalling = *((long *) var_val);
499 * Back out any changes made in the ACTION case
501 StorageTmp->mteTriggerThresholdFalling = tmpvar;
507 * Things are working well, so it's now safe to make the change
508 * permanently. Make sure that anything done here can't fail!
513 return SNMP_ERR_NOERROR;
519 write_mteTriggerThresholdDeltaRising(int action,
524 oid * name, size_t name_len)
527 struct mteTriggerTable_data *StorageTmp = NULL;
530 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
534 DEBUGMSGTL(("mteTriggerThresholdTable",
535 "write_mteTriggerThresholdDeltaRising entering action=%d... \n",
538 header_complex(mteTriggerTableStorage, NULL,
540 (mteTriggerThresholdTable_variables_oid) /
541 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
543 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
548 if (var_val_type != ASN_INTEGER) {
550 "write to mteTriggerThresholdDeltaRising not ASN_INTEGER\n");
551 return SNMP_ERR_WRONGTYPE;
553 if (StorageTmp->storageType != ST_NONVOLATILE)
554 return SNMP_ERR_NOTWRITABLE;
560 * memory reseveration, final preparation...
567 * Release any resources that have been allocated
574 * The variable has been stored in long_ret for
575 * you to use, and you have just been asked to do something with
576 * it. Note that anything done here must be reversable in the UNDO case
578 tmpvar = StorageTmp->mteTriggerThresholdDeltaRising;
579 StorageTmp->mteTriggerThresholdDeltaRising = *((long *) var_val);
585 * Back out any changes made in the ACTION case
587 StorageTmp->mteTriggerThresholdDeltaRising = tmpvar;
593 * Things are working well, so it's now safe to make the change
594 * permanently. Make sure that anything done here can't fail!
599 return SNMP_ERR_NOERROR;
605 write_mteTriggerThresholdDeltaFalling(int action,
610 oid * name, size_t name_len)
613 struct mteTriggerTable_data *StorageTmp = NULL;
616 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
620 DEBUGMSGTL(("mteTriggerThresholdTable",
621 "write_mteTriggerThresholdDeltaFalling entering action=%d... \n",
624 header_complex(mteTriggerTableStorage, NULL,
626 (mteTriggerThresholdTable_variables_oid) /
627 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
629 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
634 if (var_val_type != ASN_INTEGER) {
636 "write to mteTriggerThresholdDeltaFalling not ASN_INTEGER\n");
637 return SNMP_ERR_WRONGTYPE;
639 if (StorageTmp->storageType != ST_NONVOLATILE)
640 return SNMP_ERR_NOTWRITABLE;
646 * memory reseveration, final preparation...
653 * Release any resources that have been allocated
660 * The variable has been stored in long_ret for
661 * you to use, and you have just been asked to do something with
662 * it. Note that anything done here must be reversable in the UNDO case
664 tmpvar = StorageTmp->mteTriggerThresholdDeltaFalling;
665 StorageTmp->mteTriggerThresholdDeltaFalling = *((long *) var_val);
671 * Back out any changes made in the ACTION case
673 StorageTmp->mteTriggerThresholdDeltaFalling = tmpvar;
679 * Things are working well, so it's now safe to make the change
680 * permanently. Make sure that anything done here can't fail!
685 return SNMP_ERR_NOERROR;
691 write_mteTriggerThresholdObjectsOwner(int action,
696 oid * name, size_t name_len)
699 struct mteTriggerTable_data *StorageTmp = NULL;
700 static size_t tmplen;
703 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
707 DEBUGMSGTL(("mteTriggerThresholdTable",
708 "write_mteTriggerThresholdObjectsOwner entering action=%d... \n",
711 header_complex(mteTriggerTableStorage, NULL,
713 (mteTriggerThresholdTable_variables_oid) /
714 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
716 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
721 if (var_val_type != ASN_OCTET_STR) {
723 "write to mteTriggerThresholdObjectsOwner not ASN_OCTET_STR\n");
724 return SNMP_ERR_WRONGTYPE;
726 if (StorageTmp->storageType != ST_NONVOLATILE)
727 return SNMP_ERR_NOTWRITABLE;
733 * memory reseveration, final preparation...
740 * Release any resources that have been allocated
747 * The variable has been stored in string for
748 * you to use, and you have just been asked to do something with
749 * it. Note that anything done here must be reversable in the UNDO case
751 tmpvar = StorageTmp->mteTriggerThresholdObjectsOwner;
752 tmplen = StorageTmp->mteTriggerThresholdObjectsOwnerLen;
753 memdup((u_char **) & StorageTmp->mteTriggerThresholdObjectsOwner,
754 var_val, var_val_len);
755 StorageTmp->mteTriggerThresholdObjectsOwnerLen = var_val_len;
761 * Back out any changes made in the ACTION case
763 SNMP_FREE(StorageTmp->mteTriggerThresholdObjectsOwner);
764 StorageTmp->mteTriggerThresholdObjectsOwner = tmpvar;
765 StorageTmp->mteTriggerThresholdObjectsOwnerLen = tmplen;
771 * Things are working well, so it's now safe to make the change
772 * permanently. Make sure that anything done here can't fail!
777 return SNMP_ERR_NOERROR;
783 write_mteTriggerThresholdObjects(int action,
788 oid * name, size_t name_len)
791 struct mteTriggerTable_data *StorageTmp = NULL;
792 static size_t tmplen;
795 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
799 DEBUGMSGTL(("mteTriggerThresholdTable",
800 "write_mteTriggerThresholdObjects entering action=%d... \n",
803 header_complex(mteTriggerTableStorage, NULL,
805 (mteTriggerThresholdTable_variables_oid) /
806 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
808 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
813 if (var_val_type != ASN_OCTET_STR) {
815 "write to mteTriggerThresholdObjects not ASN_OCTET_STR\n");
816 return SNMP_ERR_WRONGTYPE;
818 if (StorageTmp->storageType != ST_NONVOLATILE)
819 return SNMP_ERR_NOTWRITABLE;
825 * memory reseveration, final preparation...
832 * Release any resources that have been allocated
839 * The variable has been stored in string for
840 * you to use, and you have just been asked to do something with
841 * it. Note that anything done here must be reversable in the UNDO case
843 tmpvar = StorageTmp->mteTriggerThresholdObjects;
844 tmplen = StorageTmp->mteTriggerThresholdObjectsLen;
845 memdup((u_char **) & StorageTmp->mteTriggerThresholdObjects,
846 var_val, var_val_len);
847 StorageTmp->mteTriggerThresholdObjectsLen = var_val_len;
853 * Back out any changes made in the ACTION case
855 SNMP_FREE(StorageTmp->mteTriggerThresholdObjects);
856 StorageTmp->mteTriggerThresholdObjects = tmpvar;
857 StorageTmp->mteTriggerThresholdObjectsLen = tmplen;
863 * Things are working well, so it's now safe to make the change
864 * permanently. Make sure that anything done here can't fail!
869 return SNMP_ERR_NOERROR;
875 write_mteTriggerThresholdRisingEventOwner(int action,
880 oid * name, size_t name_len)
883 struct mteTriggerTable_data *StorageTmp = NULL;
884 static size_t tmplen;
887 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
891 DEBUGMSGTL(("mteTriggerThresholdTable",
892 "write_mteTriggerThresholdRisingEventOwner entering action=%d... \n",
895 header_complex(mteTriggerTableStorage, NULL,
897 (mteTriggerThresholdTable_variables_oid) /
898 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
900 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
905 if (var_val_type != ASN_OCTET_STR) {
907 "write to mteTriggerThresholdRisingEventOwner not ASN_OCTET_STR\n");
908 return SNMP_ERR_WRONGTYPE;
910 if (StorageTmp->storageType != ST_NONVOLATILE)
911 return SNMP_ERR_NOTWRITABLE;
917 * memory reseveration, final preparation...
924 * Release any resources that have been allocated
931 * The variable has been stored in string for
932 * you to use, and you have just been asked to do something with
933 * it. Note that anything done here must be reversable in the UNDO case
935 tmpvar = StorageTmp->mteTriggerThresholdRisingEventOwner;
936 tmplen = StorageTmp->mteTriggerThresholdRisingEventOwnerLen;
937 memdup((u_char **) & StorageTmp->
938 mteTriggerThresholdRisingEventOwner, var_val, var_val_len);
939 StorageTmp->mteTriggerThresholdRisingEventOwnerLen = var_val_len;
945 * Back out any changes made in the ACTION case
947 SNMP_FREE(StorageTmp->mteTriggerThresholdRisingEventOwner);
948 StorageTmp->mteTriggerThresholdRisingEventOwner = tmpvar;
949 StorageTmp->mteTriggerThresholdRisingEventOwnerLen = tmplen;
955 * Things are working well, so it's now safe to make the change
956 * permanently. Make sure that anything done here can't fail!
961 return SNMP_ERR_NOERROR;
967 write_mteTriggerThresholdRisingEvent(int action,
972 oid * name, size_t name_len)
975 struct mteTriggerTable_data *StorageTmp = NULL;
976 static size_t tmplen;
979 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
983 DEBUGMSGTL(("mteTriggerThresholdTable",
984 "write_mteTriggerThresholdRisingEvent entering action=%d... \n",
987 header_complex(mteTriggerTableStorage, NULL,
989 (mteTriggerThresholdTable_variables_oid) /
990 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
992 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
997 if (var_val_type != ASN_OCTET_STR) {
999 "write to mteTriggerThresholdRisingEvent not ASN_OCTET_STR\n");
1000 return SNMP_ERR_WRONGTYPE;
1002 if (StorageTmp->storageType != ST_NONVOLATILE)
1003 return SNMP_ERR_NOTWRITABLE;
1009 * memory reseveration, final preparation...
1016 * Release any resources that have been allocated
1023 * The variable has been stored in string for
1024 * you to use, and you have just been asked to do something with
1025 * it. Note that anything done here must be reversable in the UNDO case
1027 tmpvar = StorageTmp->mteTriggerThresholdRisingEvent;
1028 tmplen = StorageTmp->mteTriggerThresholdRisingEventLen;
1029 memdup((u_char **) & StorageTmp->mteTriggerThresholdRisingEvent,
1030 var_val, var_val_len);
1031 StorageTmp->mteTriggerThresholdRisingEventLen = var_val_len;
1037 * Back out any changes made in the ACTION case
1039 SNMP_FREE(StorageTmp->mteTriggerThresholdRisingEvent);
1040 StorageTmp->mteTriggerThresholdRisingEvent = tmpvar;
1041 StorageTmp->mteTriggerThresholdRisingEventLen = tmplen;
1047 * Things are working well, so it's now safe to make the change
1048 * permanently. Make sure that anything done here can't fail!
1053 return SNMP_ERR_NOERROR;
1059 write_mteTriggerThresholdFallingEventOwner(int action,
1061 u_char var_val_type,
1064 oid * name, size_t name_len)
1066 static char *tmpvar;
1067 struct mteTriggerTable_data *StorageTmp = NULL;
1068 static size_t tmplen;
1071 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
1075 DEBUGMSGTL(("mteTriggerThresholdTable",
1076 "write_mteTriggerThresholdFallingEventOwner entering action=%d... \n",
1079 header_complex(mteTriggerTableStorage, NULL,
1081 (mteTriggerThresholdTable_variables_oid) /
1082 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
1084 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
1089 if (var_val_type != ASN_OCTET_STR) {
1091 "write to mteTriggerThresholdFallingEventOwner not ASN_OCTET_STR\n");
1092 return SNMP_ERR_WRONGTYPE;
1094 if (StorageTmp->storageType != ST_NONVOLATILE)
1095 return SNMP_ERR_NOTWRITABLE;
1101 * memory reseveration, final preparation...
1108 * Release any resources that have been allocated
1115 * The variable has been stored in string for
1116 * you to use, and you have just been asked to do something with
1117 * it. Note that anything done here must be reversable in the UNDO case
1119 tmpvar = StorageTmp->mteTriggerThresholdFallingEventOwner;
1120 tmplen = StorageTmp->mteTriggerThresholdFallingEventOwnerLen;
1121 memdup((u_char **) & StorageTmp->
1122 mteTriggerThresholdFallingEventOwner, var_val, var_val_len);
1123 StorageTmp->mteTriggerThresholdFallingEventOwnerLen = var_val_len;
1129 * Back out any changes made in the ACTION case
1131 SNMP_FREE(StorageTmp->mteTriggerThresholdFallingEventOwner);
1132 StorageTmp->mteTriggerThresholdFallingEventOwner = tmpvar;
1133 StorageTmp->mteTriggerThresholdFallingEventOwnerLen = tmplen;
1139 * Things are working well, so it's now safe to make the change
1140 * permanently. Make sure that anything done here can't fail!
1145 return SNMP_ERR_NOERROR;
1151 write_mteTriggerThresholdFallingEvent(int action,
1153 u_char var_val_type,
1156 oid * name, size_t name_len)
1158 static char *tmpvar;
1159 struct mteTriggerTable_data *StorageTmp = NULL;
1160 static size_t tmplen;
1163 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
1167 DEBUGMSGTL(("mteTriggerThresholdTable",
1168 "write_mteTriggerThresholdFallingEvent entering action=%d... \n",
1171 header_complex(mteTriggerTableStorage, NULL,
1173 (mteTriggerThresholdTable_variables_oid) /
1174 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
1176 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
1181 if (var_val_type != ASN_OCTET_STR) {
1183 "write to mteTriggerThresholdFallingEvent not ASN_OCTET_STR\n");
1184 return SNMP_ERR_WRONGTYPE;
1186 if (StorageTmp->storageType != ST_NONVOLATILE)
1187 return SNMP_ERR_NOTWRITABLE;
1193 * memory reseveration, final preparation...
1200 * Release any resources that have been allocated
1207 * The variable has been stored in string for
1208 * you to use, and you have just been asked to do something with
1209 * it. Note that anything done here must be reversable in the UNDO case
1211 tmpvar = StorageTmp->mteTriggerThresholdFallingEvent;
1212 tmplen = StorageTmp->mteTriggerThresholdFallingEventLen;
1213 memdup((u_char **) & StorageTmp->mteTriggerThresholdFallingEvent,
1214 var_val, var_val_len);
1215 StorageTmp->mteTriggerThresholdFallingEventLen = var_val_len;
1221 * Back out any changes made in the ACTION case
1223 SNMP_FREE(StorageTmp->mteTriggerThresholdFallingEvent);
1224 StorageTmp->mteTriggerThresholdFallingEvent = tmpvar;
1225 StorageTmp->mteTriggerThresholdFallingEventLen = tmplen;
1231 * Things are working well, so it's now safe to make the change
1232 * permanently. Make sure that anything done here can't fail!
1237 return SNMP_ERR_NOERROR;
1243 write_mteTriggerThresholdDeltaRisingEventOwner(int action,
1245 u_char var_val_type,
1248 oid * name, size_t name_len)
1250 static char *tmpvar;
1251 struct mteTriggerTable_data *StorageTmp = NULL;
1252 static size_t tmplen;
1255 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
1259 DEBUGMSGTL(("mteTriggerThresholdTable",
1260 "write_mteTriggerThresholdDeltaRisingEventOwner entering action=%d... \n",
1263 header_complex(mteTriggerTableStorage, NULL,
1265 (mteTriggerThresholdTable_variables_oid) /
1266 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
1268 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
1273 if (var_val_type != ASN_OCTET_STR) {
1275 "write to mteTriggerThresholdDeltaRisingEventOwner not ASN_OCTET_STR\n");
1276 return SNMP_ERR_WRONGTYPE;
1278 if (StorageTmp->storageType != ST_NONVOLATILE)
1279 return SNMP_ERR_NOTWRITABLE;
1285 * memory reseveration, final preparation...
1292 * Release any resources that have been allocated
1299 * The variable has been stored in string for
1300 * you to use, and you have just been asked to do something with
1301 * it. Note that anything done here must be reversable in the UNDO case
1303 tmpvar = StorageTmp->mteTriggerThresholdDeltaRisingEventOwner;
1304 tmplen = StorageTmp->mteTriggerThresholdDeltaRisingEventOwnerLen;
1305 memdup((u_char **) & StorageTmp->
1306 mteTriggerThresholdDeltaRisingEventOwner, var_val,
1308 StorageTmp->mteTriggerThresholdDeltaRisingEventOwnerLen =
1315 * Back out any changes made in the ACTION case
1317 SNMP_FREE(StorageTmp->mteTriggerThresholdDeltaRisingEventOwner);
1318 StorageTmp->mteTriggerThresholdDeltaRisingEventOwner = tmpvar;
1319 StorageTmp->mteTriggerThresholdDeltaRisingEventOwnerLen = tmplen;
1325 * Things are working well, so it's now safe to make the change
1326 * permanently. Make sure that anything done here can't fail!
1331 return SNMP_ERR_NOERROR;
1337 write_mteTriggerThresholdDeltaRisingEvent(int action,
1339 u_char var_val_type,
1342 oid * name, size_t name_len)
1344 static char *tmpvar;
1345 struct mteTriggerTable_data *StorageTmp = NULL;
1346 static size_t tmplen;
1349 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
1353 DEBUGMSGTL(("mteTriggerThresholdTable",
1354 "write_mteTriggerThresholdDeltaRisingEvent entering action=%d... \n",
1357 header_complex(mteTriggerTableStorage, NULL,
1359 (mteTriggerThresholdTable_variables_oid) /
1360 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
1362 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
1367 if (var_val_type != ASN_OCTET_STR) {
1369 "write to mteTriggerThresholdDeltaRisingEvent not ASN_OCTET_STR\n");
1370 return SNMP_ERR_WRONGTYPE;
1372 if (StorageTmp->storageType != ST_NONVOLATILE)
1373 return SNMP_ERR_NOTWRITABLE;
1379 * memory reseveration, final preparation...
1386 * Release any resources that have been allocated
1393 * The variable has been stored in string for
1394 * you to use, and you have just been asked to do something with
1395 * it. Note that anything done here must be reversable in the UNDO case
1397 tmpvar = StorageTmp->mteTriggerThresholdDeltaRisingEvent;
1398 tmplen = StorageTmp->mteTriggerThresholdDeltaRisingEventLen;
1399 memdup((u_char **) & StorageTmp->
1400 mteTriggerThresholdDeltaRisingEvent, var_val, var_val_len);
1401 StorageTmp->mteTriggerThresholdDeltaRisingEventLen = var_val_len;
1407 * Back out any changes made in the ACTION case
1409 SNMP_FREE(StorageTmp->mteTriggerThresholdDeltaRisingEvent);
1410 StorageTmp->mteTriggerThresholdDeltaRisingEvent = tmpvar;
1411 StorageTmp->mteTriggerThresholdDeltaRisingEventLen = tmplen;
1417 * Things are working well, so it's now safe to make the change
1418 * permanently. Make sure that anything done here can't fail!
1423 return SNMP_ERR_NOERROR;
1429 write_mteTriggerThresholdDeltaFallingEventOwner(int action,
1431 u_char var_val_type,
1437 static char *tmpvar;
1438 struct mteTriggerTable_data *StorageTmp = NULL;
1439 static size_t tmplen;
1442 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
1446 DEBUGMSGTL(("mteTriggerThresholdTable",
1447 "write_mteTriggerThresholdDeltaFallingEventOwner entering action=%d... \n",
1450 header_complex(mteTriggerTableStorage, NULL,
1452 (mteTriggerThresholdTable_variables_oid) /
1453 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
1455 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
1460 if (var_val_type != ASN_OCTET_STR) {
1462 "write to mteTriggerThresholdDeltaFallingEventOwner not ASN_OCTET_STR\n");
1463 return SNMP_ERR_WRONGTYPE;
1465 if (StorageTmp->storageType != ST_NONVOLATILE)
1466 return SNMP_ERR_NOTWRITABLE;
1472 * memory reseveration, final preparation...
1479 * Release any resources that have been allocated
1486 * The variable has been stored in string for
1487 * you to use, and you have just been asked to do something with
1488 * it. Note that anything done here must be reversable in the UNDO case
1490 tmpvar = StorageTmp->mteTriggerThresholdDeltaFallingEventOwner;
1491 tmplen = StorageTmp->mteTriggerThresholdDeltaFallingEventOwnerLen;
1492 memdup((u_char **) & StorageTmp->
1493 mteTriggerThresholdDeltaFallingEventOwner, var_val,
1495 StorageTmp->mteTriggerThresholdDeltaFallingEventOwnerLen =
1502 * Back out any changes made in the ACTION case
1504 SNMP_FREE(StorageTmp->mteTriggerThresholdDeltaFallingEventOwner);
1505 StorageTmp->mteTriggerThresholdDeltaFallingEventOwner = tmpvar;
1506 StorageTmp->mteTriggerThresholdDeltaFallingEventOwnerLen = tmplen;
1512 * Things are working well, so it's now safe to make the change
1513 * permanently. Make sure that anything done here can't fail!
1518 return SNMP_ERR_NOERROR;
1524 write_mteTriggerThresholdDeltaFallingEvent(int action,
1526 u_char var_val_type,
1529 oid * name, size_t name_len)
1531 static char *tmpvar;
1532 struct mteTriggerTable_data *StorageTmp = NULL;
1533 static size_t tmplen;
1536 (sizeof(mteTriggerThresholdTable_variables_oid) / sizeof(oid) + 3 -
1540 DEBUGMSGTL(("mteTriggerThresholdTable",
1541 "write_mteTriggerThresholdDeltaFallingEvent entering action=%d... \n",
1544 header_complex(mteTriggerTableStorage, NULL,
1546 (mteTriggerThresholdTable_variables_oid) /
1547 sizeof(oid) + 3 - 1], &newlen, 1, NULL,
1549 return SNMP_ERR_NOSUCHNAME; /* remove if you support creation here */
1554 if (var_val_type != ASN_OCTET_STR) {
1556 "write to mteTriggerThresholdDeltaFallingEvent not ASN_OCTET_STR\n");
1557 return SNMP_ERR_WRONGTYPE;
1559 if (StorageTmp->storageType != ST_NONVOLATILE)
1560 return SNMP_ERR_NOTWRITABLE;
1566 * memory reseveration, final preparation...
1573 * Release any resources that have been allocated
1580 * The variable has been stored in string for
1581 * you to use, and you have just been asked to do something with
1582 * it. Note that anything done here must be reversable in the UNDO case
1584 tmpvar = StorageTmp->mteTriggerThresholdDeltaFallingEvent;
1585 tmplen = StorageTmp->mteTriggerThresholdDeltaFallingEventLen;
1586 memdup((u_char **) & StorageTmp->
1587 mteTriggerThresholdDeltaFallingEvent, var_val, var_val_len);
1588 StorageTmp->mteTriggerThresholdDeltaFallingEventLen = var_val_len;
1594 * Back out any changes made in the ACTION case
1596 SNMP_FREE(StorageTmp->mteTriggerThresholdDeltaFallingEvent);
1597 StorageTmp->mteTriggerThresholdDeltaFallingEvent = tmpvar;
1598 StorageTmp->mteTriggerThresholdDeltaFallingEventLen = tmplen;
1604 * Things are working well, so it's now safe to make the change
1605 * permanently. Make sure that anything done here can't fail!
1610 return SNMP_ERR_NOERROR;