/usr/share/snmp/mib2c-data/syntax-RowStatus-get.m2i is in libsnmp-base 5.7.2~dfsg-8.1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | ############################################################# -*- c -*-
## generic include for XXX. Do not use directly.
##
## $Id$
########################################################################
@if $m2c_mark_boundary == 1@
/** START code generated by $RCSfile$ $Revision$ */
@end@
########################################################################
##
@include generic-get-decl.m2i@
@include generic-ctx-get.m2i@
@if $m2c_node_skip_mapping != 1@
/*
* TODO:245:o: |-> Implement $context RowStatus mapping
@if $mfd_code_verbose == 1@
*
* If the values for your data type don't exactly match the
* possible values defined by the mib, you should map them here.
@end@
*/
/*
* update INTERNAL_* macros defined in the header, if neccessary
*/
switch ($m2c_node_lh) {
/* `active', which indicates that the conceptual row is
available for use by the managed device */
case INTERNAL_$context.uc_$node.uc_ACTIVE:
$m2c_node_lh = ROWSTATUS_ACTIVE;
break;
/* `notInService', which indicates that the conceptual
row exists in the agent, but is unavailable for use by
the managed device (see NOTE below); 'notInService' has
no implication regarding the internal consistency of
the row, availability of resources, or consistency with
the current state of the managed device */
case INTERNAL_$context.uc_$node.uc_NOTINSERVICE:
$m2c_node_lh = ROWSTATUS_NOTINSERVICE;
break;
/* `notReady', which indicates that the conceptual row
exists in the agent, but is missing information
necessary in order to be available for use by the
managed device (i.e., one or more required columns in
the conceptual row have not been instanciated) */
case INTERNAL_$context.uc_$node.uc_NOTREADY:
$m2c_node_lh = ROWSTATUS_NOTREADY;
break;
default:
snmp_log(LOG_ERR,
"couldn't map value %ld for $node RowStatus\n",
$m2c_node_lh);
return SNMP_ERR_GENERR;
}
@end@
@include generic-get-decl-bot.m2i@
##
########################################################################
@if $m2c_mark_boundary == 1@
/** END code generated by $RCSfile$ $Revision$ */
@end@
|