📄 smi_node.html-lang=de.htm
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><!-- Generated by [mod-xslt-ibr] at 2008-10-22T15:27:43 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>smi_node(3) manual page</title><meta name="author" content=""><meta name="keywords" content=""><link rel="shortcut icon" href="/old/shortcut_icon.gif"><link rel="stylesheet" type="text/css" href="ibr.css" tppabs="http://www.ibr.cs.tu-bs.de/old/ibr.css"><link rel="stylesheet" type="text/css" href="libsmi.css" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/libsmi.css"></head><body class="main"><div class="nav"><div class="lang"><img src="german.gif" tppabs="http://www.ibr.cs.tu-bs.de/icon/german.gif" alt="de"></div><div class="menu"><ul><li><a href="index.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/index.html?lang=de">Home</a><ul><li><a href="ANNOUNCE.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/ANNOUNCE.html?lang=de">ANNOUNCE</a></li></ul></li><li><a href="library.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/library.html?lang=de">Library</a><ul><li><a href="example.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/example.html?lang=de">Example</a></li><li><a href="libsmi.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/libsmi.html?lang=de">man libsmi</a></li><li><a href="smi_config.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smi_config.html?lang=de">man smi_config</a></li><li><a href="smi_module.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smi_module.html?lang=de">man smi_module</a></li><li><a href="smi_type.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smi_type.html?lang=de">man smi_type</a></li><li><a href="smi_node.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smi_node.html?lang=de">man smi_node</a></li><li><a href="smi_macro.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smi_macro.html?lang=de">man smi_macro</a></li></ul></li><li><a href="tools.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/tools.html?lang=de">Tools</a><ul><li><b><a href="-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/tools/?lang=de">Web Interface</a></b></li><li><a href="smilint.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smilint.html?lang=de">man smilint</a></li><li><a href="smidump.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smidump.html?lang=de">man smidump</a></li><li><a href="smidiff.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smidiff.html?lang=de">man smidiff</a></li><li><a href="smiquery.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smiquery.html?lang=de">man smiquery</a></li><li><a href="smixlate.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smixlate.html?lang=de">man smixlate</a></li><li><a href="smistrip.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/smistrip.html?lang=de">man smistrip</a></li><li><a href="xml.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/xml.html?lang=de">XML Mapping</a></li><li><a href="index-1.html.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/svg/index.html?lang=de">SVG Browsing</a></li></ul></li><li><a href="mibs.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/mibs.html?lang=de">MIBs and PIBs</a></li><li><a href="doc.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/doc.html?lang=de">Documentation</a><ul><li><a href="README.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/README.html?lang=de">README</a></li><li><a href="ChangeLog.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/ChangeLog.html?lang=de">ChangeLog</a></li><li><a href="TODO.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/TODO.html?lang=de">TODO</a></li><li><a href="mailinglist.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/mailinglist.html?lang=de">Mailinglist</a></li><li><a href="COPYING.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/COPYING.html?lang=de">License</a></li></ul></li><li><a href="download.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/download.html?lang=de">Download</a></li><li><a href="people.html-lang=de.htm" tppabs="http://www.ibr.cs.tu-bs.de/projects/libsmi/people.html?lang=de">People</a></li></ul></div><div class="stamp">© IBR, TU-BS<br><a href=""></a><br><br></div></div><h1>smi_node(3) manual page</h1><html><head><meta name="generator" content="HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org"><meta name="generator" content="groff -Thtml, see www.gnu.org"><meta name="Content-Style" content="text/css"><title>smi_node</title></head><body><h1 align="center">smi_node</h1><a name="NAME"></a><h2>NAME</h2><table width="100%" border="0" rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="89%"><p>smiGetNode, smiGetNodeByOID, smiGetFirstNode, smiGetNextNode,smiGetParentNode, smiGetRelatedNode, smiGetFirstChildNode,smiGetNextChildNode, smiGetNodeModule, smiGetNodeType,smiGetNodeLine, smiGetFirstElement, smiGetNextElement,smiGetElementNode, smiGetFirstOption, smiGetNextOption,smiGetOptionNode, smiGetFirstRefinement, smiGetNextRefinement,smiGetRefinementModule, smiGetRefinementNode, smiGetRefinementType,smiGetRefinementWriteType − SMI type information routines</p></td></tr></table><a name="SYNOPSIS"></a><h2>SYNOPSIS</h2><table width="100%" border="0" rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="89%"><pre><b>#include <smi.h>SmiNode *smiGetNode(SmiModule *</b><i>smiModulePtr</i><b>, char *</b><i>node</i><b>);SmiNode *smiGetNodeByOID(unsigned int</b><i>oidlen</i><b>, SmiSubid</b><i>oid[]</i><b>);SmiNode *smiGetFirstNode(SmiModule *</b><i>smiModulePtr</i><b>, SmiNodekind</b><i>kinds</i><b>);SmiNode *smiGetNextNode(SmiNode *</b><i>smiNodePtr</i><b>, SmiNodekind</b><i>kinds</i><b>);SmiNode *smiGetParentNode(SmiNode *</b><i>smiNodePtr</i><b>);SmiNode *smiGetRelatedNode(SmiNode *</b><i>smiNodePtr</i><b>);SmiNode *smiGetFirstChildNode(SmiNode *</b><i>smiNodePtr</i><b>);SmiNode *smiGetNextChildNode(SmiNode *</b><i>smiNodePtr</i><b>);SmiModule *smiGetNodeModule(SmiNode *</b><i>smiNodePtr</i><b>);SmiType *smiGetNodeType(SmiNode *</b><i>smiNodePtr</i><b>);int smiGetNodeLine(SmiNode *</b><i>smiNodePtr</i><b>);SmiElement *smiGetFirstElement(SmiNode *</b><i>smiNodePtr</i><b>);SmiElement *smiGetNextElement(SmiElement *</b><i>smiElementPtr</i><b>);SmiNode *smiGetElementNode(SmiElement *</b><i>smiElementPtr</i><b>);SmiOption *smiGetFirstOption(SmiNode *</b><i>smiComplianceNodePtr</i><b>);SmiOption *smiGetNextOption(SmiOption *</b><i>smiOptionPtr</i><b>);SmiNode *smiGetOptionNode(SmiOption *</b><i>smiOptionPtr</i><b>);SmiRefinement *smiGetFirstRefinement(SmiNode *</b><i>smiComplianceNodePtr</i><b>);SmiRefinement *smiGetNextRefinement(SmiRefinement *</b><i>smiRefinementPtr</i><b>);SmiNode *smiGetRefinementNode(SmiRefinement *</b><i>smiRefinementPtr</i><b>);SmiType *smiGetRefinementType(SmiRefinement *</b><i>smiRefinementPtr</i><b>);SmiType *smiGetRefinementWriteType(SmiRefinement *</b><i>smiRefinementPtr</i><b>);</b>typedef struct SmiNode { SmiIdentifier name; int oidlen; SmiSubid *oid; /* array of length oidlen */ SmiDecl decl; SmiAccess access; SmiStatus status; char *format; SmiValue value; char *units; char *description; char *reference; SmiIndexkind indexkind; int implied; int create; SmiNodekind nodekind;} SmiNode;typedef struct SmiElement { /* no visible attributes */} SmiElement;typedef struct SmiOption { char *description;} SmiOption;typedef struct SmiRefinement { SmiAccess access; char *description;} SmiRefinement;</pre></td></tr></table><a name="DESCRIPTION"></a><h2>DESCRIPTION</h2><table width="100%" border="0" rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="89%"><p>These functions retrieve information on any SMI node definitionin the object identifier tree, these are ASN.1 object identifierassignments, MODULE-IDENTITYs, OBJECT-IDENTITYs, OBJECT-TYPEs,NOTIFICATION-TYPEs, TRAP-TYPEs, OBJECT-GROUPs, NOTIFICATION-GROUPs,MODULE-COMPLIANCEs, and AGENT-CAPABILITYs in SMIv1/v2 and node,scalar, table, row, column, notification, group, and compliancestatements in SMIng.</p><p>The <b>smiGetNode()</b> function retrieves a <b>structSmiNode</b> that represents a node of any kind. <i>Node</i> may beeither a fully qualified descriptor, a simple node name, or anumerical OID. Nodes are also found, if <i>node</i> contains aninstance identifier suffix. If <i>smiModulePtr</i> is not NULL itused to limit the search to the given module. If the node is notfound, <b>smiGetNode()</b> returns NULL.</p><p>The <b>smiGetNodeByOID()</b> function retrieves a <b>structSmiNode</b> that matches the longest prefix of the node that isspecified by the object identifier <i>oid[]</i> with the length<i>oidlen</i>. If no such node is not found,<b>smiGetNodeByOID()</b> returns NULL.</p><p>The <b>smiGetFirstNode()</b> and <b>smiGetNextNode()</b>functions are used to iteratively retrieve <b>struct SmiNode</b>sin tree pre-order. <b>smiGetFirstNode()</b> returns the first nodedefined in the module specified by <i>smiModulePtr</i> that is ofany kind specified in the <i>kinds</i> bitset. Subsequent calls to<b>smiGetNextNode()</b> return the next node of any kind specifiedin the <i>kinds</i> bitset. If there are no more node definitionsin the module, NULL is returned.</p><p>The <b>smiGetFirstChildNode()</b> and<b>smiGetNextChildNode()</b> functions are used to iterativelyretrieve <b>struct SmiNode</b>s that represent the immediate childnodes of the node specified by <i>smiNodePtr</i> passed to the<b>smiGetFirstChildNode()</b> call.</p><p>The <b>smiGetParentNode()</b> function is used to retrieve a<b>struct SmiNode</b>s that represents the parent node of the nodespecified by <i>smiNodePtr</i>.</p><p>The <b>smiGetRelatedNode()</b> function is used to retrieve a<b>struct SmiNode</b>s that is related to the node specified by<i>smiNodePtr</i>. Actually, this is used for SMIv2 tableaugmentation entries and similar SMIng constructs.</p><p>The <b>smiGetNodeModule()</b> function returns the module thatdefines the node given by <i>struct SmiNodePtr</i>.</p><p>The <b>smiGetNodeType()</b> function returns the type of the(scalar or columnar) node given by <i>struct SmiNodePtr</i>. If<i>struct SmiNodePtr</i> does not specify a scalar or columnarnode, NULL is returned.</p><p>The <b>smiGetFirstElement()</b> and <b>smiGetNextElement()</b>functions are used to iteratively retrieve <b>structSmiElement</b>s that represent elements of index clauses ornotification object lists, groups of object types or notificationtypes, and mandatory groups of module compliance statements. Thenode to which the list belongs has to be specified by<i>smiNodePtr</i>. To retrieve the node that is represented by a<b>struct SmiElement</b>, the <b>smiGetElementNode()</b> functionhas to be called.</p><p>The <b>smiGetFirstOption()</b> and <b>smiGetNextOption()</b>functions are used to iteratively retrieve <b>struct SmiOption</b>sthat represent statements on optional (object or notification)groups within the compliance statement specified by<i>smiComplianceNodePtr</i>. The group node which is subject ofsuch a statement can be retrieved by the <b>smiGetOptionNode()</b>function.</p><p>Similarly, the <b>smiGetFirstRefinement()</b> and<b>smiGetNextRefinement()</b> functions are used to iterativelyretrieve <b>struct SmiRefinement</b>s that represent statements onoptional object refinements within the compliance statementspecified by <i>smiComplianceNodePtr</i>. The node which is subjectof such a refinement can be retrieved by the<b>smiGetRefinementNode()</b> function. The optional refined typeand write-type of a refinement can be retrieved by the<b>smiGetRefinementType()</b> and<b>smiGetRefinementWriteType()</b> functions. If they are notpresent, NULL is returned.</p><p>The <b>smiGetNodeLine()</b> function returns the line numberwithin the module where the node specified by <i>smiNodePtr</i> isdefined.</p></td></tr></table><a name="FILES"></a><h2>FILES</h2><table width="100%" border="0" rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="89%"><pre>${prefix}/include/smi.h SMI library header file</pre></td></tr></table><a name="SEE ALSO"></a><h2>SEE ALSO</h2><table width="100%" border="0" rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="89%"><p><b>libsmi</b>(3), <b>smi_config</b>(3), <b>smi_type</b>(3),<b>smi_module</b>(3), <b>smi.h</b></p></td></tr></table><a name="AUTHOR"></a><h2>AUTHOR</h2><table width="100%" border="0" rules="none" frame="void" cols="2" cellspacing="0" cellpadding="0"><tr valign="top" align="left"><td width="10%"></td><td width="89%"><p>(C) 1999-2004 Frank Strauss, TU Braunschweig, Germany<strauss@ibr.cs.tu-bs.de></p></td></tr></table></body></html></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -