smiRenderOID, smiRenderValue, smiRenderNode, smiRenderType − SMI data and MIB data rendering routines


#include <smi.h>

char *smiRenderOID(unsigned int oidlen, SmiSubid *oid, int flags);

char *smiRenderValue(SmiValue *smiValuePtr, SmiType *smiTypePtr, int flags);

char *smiRenderNode(SmiNode *smiNodePtr, int flags);

char *smiRenderType(SmiType *smiTypePtr, int flags);


These functions provide can be used to render OIDs, values of MIB data, or names of MIB nodes or types.

The smiRenderOID() function renders an OID given by its length oidlen and its array of sub-identifiers oid*. The flags can be used to control the resulting format, see FORMATS below.

The smiRenderValue() function renders a MIB data value given by smiValuePtr. An underlying type smiTypePtr may be supplied to support a more human friendly rendering. The flags can be used to control the resulting format, see FORMATS below.

The smiRenderNode() function renders the name of a node given by smiNodePtr. The flags can be used to control the resulting format, see FORMATS below.

The smiRenderType() function renders the name of a type given by smiTypePtr. The flags can be used to control the resulting format, see FORMATS below.


Each of these functions gets a last argument named flags. This is a logcially or-ed set of flags that can be used to control the format of the rendered items:

Allow numeric representation (default).


Allow a representation by name(s) if possible.


In case of a name representation, force a module prefix, e.g. IF-MIB::ifIndex instead of just ifIndex.


In case of smiRenderValue(), force the application of a format specification (e.g. an SMIv2 DISPLAY-HINT) of an underlying type if the smiTypePtr argument is not NULL and this type contains such a format specification.


In case of octet string value rendering, force a printable representation if all octets of the octet string are printable.


Force the return of a string containing SMI_LABEL_UNKNOWN ("<unknown>"), if the rendering would fail. This way, the only condition where NULL can be returned is the lack of memory.


Apply a combination of all these flags. This supports the (hopefully) most human friendly representations.


All of these functions return a string, if successful, or NULL in case of a rendering failure. See also the SMI_RENDER_UNKNOWN flag above.


libsmi(3), smi.h


(C) 2002 Frank Strauss, TU Braunschweig, Germany <>

More Linux Commands

fegetexcept(3) - floating-point rounding and exception handl
These eleven functions were defined in C99, and describe the handling of floating-point rounding and exceptions (overflow, zero-divide, etc.). Exceptions The di

Tcl_GetByteArrayFromObj(3) - manipulate Tcl objects as a arr
These procedures are used to create, modify, and read Tcl byte-array objects from C code. Byte-array objects are typically used to hold the results of binary IO

endmntent(3) - get file system descriptor file entry........
These routines are used to access the filesystem description file /etc/fstab and the mounted filesystem description file /etc/mtab. The setmntent() function ope

objdump(1) - display information from object files..........
objdump displays information about one or more object files. The options control what particular information to display. This information is mostly useful to pr

ttk_combobox(n) text field with popdown selection list......
A ttk::combobox combines a text field with a pop-down list of values; the user may select the value of the text field from among the values in the list. STANDAR

Tcl_LimitGetGranularity(3) - manage and check resource limit
Tcls interpreter resource limit subsystem allows for close control over how much computation time a script may use, and is useful for cases where a program is d

Tcl_NewWideIntObj(3) - manipulate Tcl objects as integer val
These procedures are used to create, modify, and read Tcl objects that &amp;#9474; hold integral values. &amp;#9474; The different routines exist to accommodate differe

dprofpp(1) - display perl profile data - Linux manual page
The dprofpp command interprets profile data produced by a profiler, such as the Devel::DProf profiler. Dprofpp will read the file tmon.out and display the 15 su

mvwchgat(3ncurses) - curses character and window attribute c
These routines manipulate the current attributes of the named window. The current attributes of a window apply to all characters that are written into the windo

mq_open(3) - open a message queue - Linux manual page.......
mq_open() creates a new POSIX message queue or opens an existing queue. The queue is identified by name. For details of the construction of name, see mq_overvie

text2pcap(1) - Generate a capture file from an ASCII hexdump
Text2pcap is a program that reads in an ASCII hex dump and writes the data described into a pcap capture file. text2pcap can read hexdumps with multiple packets

Tcl_DeleteExitHandler(3) - end the application or thread (an
The procedures described here provide a graceful mechanism to end the execution of a Tcl application. Exit handlers are invoked to cleanup the applications stat

We can't live, work or learn in freedom unless the software we use is free.