This is a discussion on didn't net-snmp support leaf nods too deep? within the SNMP Users forums, part of the Networking and Network Related category; --===============1419607037== Content-Type: multipart/alternative; boundary="----=_Part_127086_9543335.1153980426764" ------=_Part_127086_9543335.1153980426764 Content-Type: text/plain; charset=ISO-8859-1; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1419607037==
Content-Type: multipart/alternative; boundary="----=_Part_127086_9543335.1153980426764" ------=_Part_127086_9543335.1153980426764 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline as you can see ,when i just gave the values of firstKey ,secondKey and thirdKey in C code,why all the values are respectively given to firstGroup,secondGroup and 3.it seems that net-snmp did not support leaf nods too deep! is it right ?or i had to do something wrong. [littlepi@localhost ]# snmpwalk -v 1 -c public localhost jmtest JM-TEST-1-MIB::firstGroup.0 = INTEGER: 10 JM-TEST-1-MIB::secondGroup.0 = INTEGER: 30 JM-TEST-1-MIB::jmtest.3.0 = INTEGER: 30 [littlepi@localhost]# snmpget -v 1 -c public localhost jmtest.firstGroup.0 JM-TEST-1-MIB::firstGroup.0 = INTEGER: 10 [littlepi@localhost root]# snmptranslate -IR -Tp jmtest +--jmtest(72) | +--firstGroup(1) | | | +-- -RW- INTEGER firstKey(1) | | Range: 0..100 | +-- -R-- INTEGER secondKey(2) | | Range: 0..100 | +-- -R-- INTEGER thirdKey(3) | Range: 0..100 | +--secondGroup(2) | +-- -RW- INTEGER firstPlace(1) | Range: 0..100 +-- -R-- INTEGER secondPlace(2) | Range: 0..100 +-- -R-- INTEGER thirdPlace(3) Range: 0..100 thanks in advance! -- Qiang ------=_Part_127086_9543335.1153980426764 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div>as you can see ,when i just gave the values of firstKey ,secondKey and thirdKey in C code,why all the values are respectively given to firstGroup,secondGroup and <a href="http://3.it">3.it</a> seems that net-snmp did not support leaf nods too deep! is it right ?or i had to do something wrong. <br>[littlepi@localhost ]# snmpwalk -v 1 -c public localhost jmtest<br>JM-TEST-1-MIB::firstGroup.0 = INTEGER: 10<br>JM-TEST-1-MIB::secondGroup.0 = INTEGER: 30<br>JM-TEST-1-MIB::jmtest.3.0 = INTEGER: 30<br>[littlepi@localhost ]# snmpget -v 1 -c public localhost jmtest.firstGroup.0<br>JM-TEST-1-MIB::firstGroup.0 = INTEGER: 10<br>[littlepi@localhost root]# snmptranslate -IR -Tp jmtest<br>+--jmtest(72)<br> |<br> +--firstGroup(1)<br> | |<br> | +-- -RW- INTEGER firstKey(1)<br> | | Range: 0..100<br> | +-- -R-- INTEGER secondKey(2)<br> | | Range: 0..100<br> | +-- -R-- INTEGER thirdKey(3)<br> | & nbsp; Range: 0..100<br> | <br> +--secondGroup(2)<br> |<br> +-- -RW- INTEGER firstPlace(1)<br> | Range: 0..100<br> +-- -R-- INTEGER secondPlace(2)<br> | Range: 0..100<br> +-- -R-- INTEGER thirdPlace(3) <br> &nbs p; Range: 0..100<br><br clear="all">thanks in advance!<br>-- <br>Qiang </div> ------=_Part_127086_9543335.1153980426764-- --===============1419607037== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV --===============1419607037== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============1419607037==-- |