Print Mibs Source
for (j = 0; j < num_cur_fmt; j++)
{
printf(cur_fmt[j],
ptr->label,
(int) ptr->editable,
(int) ptr->type,
ptr->stringsize,
ptr->intlowrange,
ptr->inthighrange,
(int)ptr->mandatory,
ptr->units ? ptr->units : "NULL",
oid_buf,
(int)ptr->length,
ptr->description ? ptr->description : "NULL",
shortName(ptr->label,table_entry_mo->name),
enum_buf,
reallyShortName( ptr->label, table_entry_mo->name ),
i /* the attribute index position */
);
}
The fields for the enum value fields which can be printed
are
- %1$s - attribute name
- %2$d - attribute editable type
- %3$d - attribute MOF type
- %4$d - max string size
- %5$d - low range for integers
- %6$d - high range for integers
- %7$d - mandatory
- %8$s - units
- %9$s - attribute oid
- %10$d - oid length
- %11$s - attribute description
- %12$s - short name of attribute (table part removed. E.g., atmVclVpi
becomes Vpi).
- %13$s - enum string name
- %14$d - enum integer value
- %15$s - really short name (up to first capital removed)
- %16$d - The attribute position
- %17$d - The enum position
Anthony Symons