Technische Universität Braunschweig
  • Study & Teaching
    • Beginning your Studies
      • Prospective Students
      • Degree Programmes
      • Application
      • Why TU Braunschweig?
    • During your Studies
      • Fresher's Hub
      • Term Dates
      • Courses and Qualifications
      • Practical information
      • Beratungsnavi
      • Financing and Costs
      • Special Circumstances
      • Health & Wellbeing
      • Campus life
    • At the End of your Studies
      • Career Service
      • Alumni
      • Discontinuation and Pre-Certification
      • After graduation
    • Strategies and Quality Management
      • TU Teaching Award
    • For Teaching Staff
      • Strategy, Offers and Information
      • Learning Management System Stud.IP
    • Contact
      • Study Service Centre
      • Academic Advice Service
      • Student Office
      • Department 16 - Academic and Student Affairs
      • Career Service
  • Research
    • Research Profile
      • Core Research Areas
      • Clusters of Excellence at TU Braunschweig
      • Research Projects
      • Research Centres
      • Professors‘ Research Profiles
    • Early Career Researchers
      • Support in the early stages of an academic career
      • PhD-Students
      • Postdocs
      • Junior research group leaders
      • Junior Professorship and Tenure-Track
      • Habilitation
      • Service Offers for Scientists
    • Research Data & Transparency
      • Transparency in Research
      • Research Data
      • Open Access Strategy
    • Research Funding
      • Research Funding Network
      • Research funding
    • Contact
      • Research Services
      • Academy for Graduates
  • Transfer
    • Transfer profile
      • Transfer strategy "TIES® with Impact"
      • Technology Transfer
      • Knowledge Transfer
      • Relationship Management
    • Innovation
      • Startups
      • Patents
    • Offers for schools and pupils
    • For enterprises
      • Friends & Supporters
    • For Alumni*ae
    • For everyone
  • International
    • International Students
      • Why Braunschweig?
      • Degree seeking students
      • Exchange Studies
      • TU Braunschweig Summer School
      • Students from German Schools Abroad
      • Refugees
      • International Student Support
      • International Career Service
    • Going Abroad
      • Studying abroad
      • Internships abroad
      • Teaching and research abroad
      • Working abroad
    • International Researchers
      • Welcome Support for International Researchers
      • Service for Host Institutes
    • Language and intercultural competence training
      • Learning German
      • Learning Foreign Languages
      • Intercultural Communication
    • International Profile
      • Internationalisation
      • International Cooperations
      • Strategic partnerships
      • International networks
    • International House
      • About us
      • Contact & Office Hours
      • News and Events
      • Newsletter, Podcast & Videos
      • Job Advertisements
  • TU Braunschweig
    • Our Profile
      • Aims & Values
      • Regulations and Guidelines
      • The University Development Initiative 2030
      • Ecoversity – the TU Braunschweig as a university ecosystem
      • Equal Opportunity
      • Diversity
      • Sustainability
      • Facts & Figures
      • Our History
    • Presidency & Organisation
      • Executive Board
      • Designated Offices
      • Administration
      • Facilities
      • Committees
      • Student body
    • Career
      • Working at TU Braunschweig
      • Vacancies
      • Information and Offers for New Employees
    • Faculties
      • Carl-Friedrich-Gauß-Fakultät
      • Faculty of Life Sciences
      • Faculty of Architecture, Civil Engineering and Environmental Sciences
      • Faculty of Mechanical Engineering
      • Faculty of Electrical Engineering, Information Technology, Physics
      • Faculty of Humanities and Education
      • Institutes from A to Z
    • Events
  • Search
  • Quicklinks
    IBR Login
    • Library
    • Mailinglists
    • Webmail
    • Knowledge Base
    • Wiki
    • Account Management
    • Services Status
    • People Search
    • Webmail
    • cloud.TU Braunschweig
    • Messenger
    • Cafeteria
    • TUconnect (student platform)
    • Emergency
    • Stud.IP
    • Library Catalogue
    • Research Information System
    • Information Portal (employees)
    • Link Collection
    • DE
    • EN
    • Instagram
    • YouTube
    • LinkedIn
    • Mastodon
    • Bluesky

    Menu
    Technische Universität BraunschweigIBR
    • Organisation
    • Faculties
    • Carl-Friedrich-Gauß-Fakultät
    • Institutes
    • Institute of Operating Systems and Computer Networks
    • Current Projects
    • libsmi
    • libsmi: smi_node(3)
    Logo IBR
    • libsmi
      • Home
      • Web tools
      • Download
      • Modules
      • Library
        • Example
      • Tools
        • Diagrams
      • Documentation
        • Manual pages
        • XML mapping
      • People
      • Mailing list

    smi_node(3)

    SMI node information routines

    All manual pages · libsmi 0.6.0-rc1

    Name

    smiGetNode, smiGetNodeByOID, smiGetFirstNode, smiGetNextNode, smiGetParentNode, smiGetRelatedNode, smiGetFirstChildNode, smiGetNextChildNode, smiGetNodeModule, smiGetNodeType, smiGetNodeLine, smiGetFirstElement, smiGetNextElement, smiGetElementNode, smiGetFirstOption, smiGetNextOption, smiGetOptionNode, smiGetFirstRefinement, smiGetNextRefinement, smiGetRefinementModule, smiGetRefinementNode, smiGetRefinementType, smiGetRefinementWriteType - SMI node information routines

    Synopsis

    #include <smi.h>
    
    SmiNode *smiGetNode(SmiModule *smiModulePtr, char *node);
    
    SmiNode *smiGetNodeByOID(unsigned int oidlen, SmiSubid oid[]);
    
    SmiNode *smiGetFirstNode(SmiModule *smiModulePtr, SmiNodekind kinds);
    
    SmiNode *smiGetNextNode(SmiNode *smiNodePtr, SmiNodekind kinds);
    
    SmiNode *smiGetFirstAlias(SmiNode *smiNodePtr);
    
    SmiNode *smiGetNextAlias(SmiNode *smiNodePtr);
    
    SmiNode *smiGetParentNode(SmiNode *smiNodePtr);
    
    SmiNode *smiGetRelatedNode(SmiNode *smiNodePtr);
    
    SmiNode *smiGetFirstChildNode(SmiNode *smiNodePtr);
    
    SmiNode *smiGetNextChildNode(SmiNode *smiNodePtr);
    
    SmiModule *smiGetNodeModule(SmiNode *smiNodePtr);
    
    SmiType *smiGetNodeType(SmiNode *smiNodePtr);
    
    int smiGetNodeLine(SmiNode *smiNodePtr);
    
    SmiElement *smiGetFirstElement(SmiNode *smiNodePtr);
    
    SmiElement *smiGetNextElement(SmiElement *smiElementPtr);
    
    SmiNode *smiGetElementNode(SmiElement *smiElementPtr);
    
    SmiOption *smiGetFirstOption(SmiNode *smiComplianceNodePtr);
    
    SmiOption *smiGetNextOption(SmiOption *smiOptionPtr);
    
    SmiNode *smiGetOptionNode(SmiOption *smiOptionPtr);
    
    SmiRefinement *smiGetFirstRefinement(SmiNode *smiComplianceNodePtr);
    
    SmiRefinement *smiGetNextRefinement(SmiRefinement *smiRefinementPtr);
    
    SmiNode *smiGetRefinementNode(SmiRefinement *smiRefinementPtr);
    
    SmiType *smiGetRefinementType(SmiRefinement *smiRefinementPtr);
    
    SmiType *smiGetRefinementWriteType(SmiRefinement *smiRefinementPtr);
    
    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;
    

    Description

    These functions retrieve information on any SMI node definition in the object identifier tree, these are ASN.1 object identifier assignments, 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 compliance statements in SMIng.

    The smiGetNode() function retrieves a struct SmiNode that represents a node of any kind. Node may be either a fully qualified descriptor, a simple node name, or a numerical OID. Nodes are also found, if node contains an instance identifier suffix. If smiModulePtr is not NULL it used to limit the search to the given module. If the node is not found, smiGetNode() returns NULL.

    The smiGetNodeByOID() function retrieves a struct SmiNode that matches the longest prefix of the node that is specified by the object identifier oid[] with the length oidlen. If no such node is not found, smiGetNodeByOID() returns NULL.

    The smiGetFirstNode() and smiGetNextNode() functions are used to iteratively retrieve struct SmiNodes in tree pre-order. smiGetFirstNode() returns the first node defined in the module specified by smiModulePtr that is of any kind specified in the kinds bitset. Subsequent calls to smiGetNextNode() return the next node of any kind specified in the kinds bitset. If there are no more node definitions in the module, NULL is returned.

    The smiGetFirstAlias() and smiGetNextAlias() functions are used to iteratively retrieve struct SmiNodes that have the same object identifier as the smiNodePtr given as an argument. There is always one alias node which is the smiNodePtr itself.

    The smiGetFirstChildNode() and smiGetNextChildNode() functions are used to iteratively retrieve struct SmiNodes that represent the immediate child nodes of the node specified by smiNodePtr passed to the smiGetFirstChildNode() call.

    The smiGetParentNode() function is used to retrieve a struct SmiNodes that represents the parent node of the node specified by smiNodePtr.

    The smiGetRelatedNode() function is used to retrieve a struct SmiNodes that is related to the node specified by smiNodePtr. Actually, this is used for SMIv2 table augmentation entries and similar SMIng constructs.

    The smiGetNodeModule() function returns the module that defines the node given by struct SmiNodePtr.

    The smiGetNodeType() function returns the type of the (scalar or columnar) node given by struct SmiNodePtr. If struct SmiNodePtr does not specify a scalar or columnar node, NULL is returned.

    The smiGetFirstElement() and smiGetNextElement() functions are used to iteratively retrieve struct SmiElements that represent elements of index clauses or notification object lists, groups of object types or notification types, and mandatory groups of module compliance statements. The node to which the list belongs has to be specified by smiNodePtr. To retrieve the node that is represented by a struct SmiElement, the smiGetElementNode() function has to be called.

    The smiGetFirstOption() and smiGetNextOption() functions are used to iteratively retrieve struct SmiOptions that represent statements on optional (object or notification) groups within the compliance statement specified by smiComplianceNodePtr. The group node which is subject of such a statement can be retrieved by the smiGetOptionNode() function.

    Similarly, the smiGetFirstRefinement() and smiGetNextRefinement() functions are used to iteratively retrieve struct SmiRefinements that represent statements on optional object refinements within the compliance statement specified by smiComplianceNodePtr. The node which is subject of such a refinement can be retrieved by the smiGetRefinementNode() function. The optional refined type and write-type of a refinement can be retrieved by the smiGetRefinementType() and smiGetRefinementWriteType() functions. If they are not present, NULL is returned.

    The smiGetNodeLine() function returns the line number within the module where the node specified by smiNodePtr is defined.

    Files

    /usr/include/smi.h    SMI library header file

    See also

    libsmi(3), smi_config(3), smi_type(3), smi_module(3), smi.h

    Author

    (C) 1999-2004 Frank Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>


    last changed 2026-11-18, 09:37 by Frank Steinberg
    http://www.ibr.cs.tu-bs.de/projects/libsmi/smi_node.xml · retrieved 2026-12-06

    For All Visitors

    Vacancies of TU Braunschweig
    Career Service' Job Exchange 
    Merchandising

    For Students

    Term Dates
    Courses
    Degree Programmes
    Information for Freshman
    TUCard

    Internal Tools

    Glossary (GER-EN)
    Change your Personal Data

    Contact

    Technische Universität Braunschweig
    Universitätsplatz 2
    38106 Braunschweig

    P. O. Box: 38092 Braunschweig
    GERMANY

    Phone: +49 (0) 531 391-0

    Getting here

    © Technische Universität Braunschweig
    Legal Notice Privacy Accessibility

    TU Braunschweig uses the software Matomo for anonymised web analysis. The data serve to optimise the web offer.
    You can find more information in our data protection declaration.