The SMI and SNMP are low-level technologies for representing the structure of management information and for transferring management data. They have deficiencies when large amounts of data have to be transferred or stored, and Web-based management approaches have been proposed to overcome them.
libsmi has an smidump output format that generates XML Schema definitions for given MIB modules: XML documents that conform to such a schema represent management data of the MIB modules in question. Try it with the web tools or on the command line:
$ smidump -f xsd IF-MIB > IF-MIB.xsd $ smidump -f xsd --xsd-nest-augments IF-MIB > IF-MIB.xsd
The mapping was designed in 2002/2003 and is described in the papers listed in the documentation. The following prototypes were built at the time; they are historic and no longer available as services:
$ lynx -dump 'http://www.ibr.cs.tu-bs.de/snmp-xml-gw?\
get=/snmp-data/context[@hostname="talisker.ibr.cs.tu-bs.de"]\
/ifEntry[ifOperStatus="up" and (ifOutOctets > 0 or ifInOctets > 0)]/ifDescr'
<?xml version="1.0" encoding="UTF-8"?>
<snmp-data xmlns:IF-MIB="http://www.ibr.cs.tu-bs.de/arbeiten/snmp-xml-gw/xsd/IF-MIB.xsd">
<context ipaddr="134.169.35.130" hostname="134.169.35.130" port="161"
caching="yes" community="public" time="2003-03-11T18:50:13">
<IF-MIB:ifEntry ifIndex="1">
<IF-MIB:ifDescr>AMD PCNetPCI</IF-MIB:ifDescr>
</IF-MIB:ifEntry>
<IF-MIB:ifEntry ifIndex="3">
<IF-MIB:ifDescr>WaveLAN/IEEE</IF-MIB:ifDescr>
</IF-MIB:ifEntry>
</context>
</snmp-data> Today, YANG (RFC 7950) together with NETCONF and RESTCONF plays this role; libsmi reads YANG modules and translates MIB modules to YANG (smidump -f yang, following RFC 6643).