Benutzer-Werkzeuge

Webseiten-Werkzeuge


public_v6:snmp

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
public_v6:snmp [2017/01/24 18:49] – Externe Bearbeitung 127.0.0.1public_v6:snmp [2026/06/15 18:06] (aktuell) – [How do I specify IPv6 addresses on the command line?] admin
Zeile 15: Zeile 15:
 IPv6 addresses pose a particular problem for the Net-SNMP command line tools, which parse host names into pieces.  IPv6 addresses pose a particular problem for the Net-SNMP command line tools, which parse host names into pieces. 
 In particular, normally if you specify a simple host name, it assumes you want UDP in IPv4 on port 161. IE, these two commands are actually the same (by default): In particular, normally if you specify a simple host name, it assumes you want UDP in IPv4 on port 161. IE, these two commands are actually the same (by default):
 +<code bash>
   snmpget 127.0.0.1 sysUpTime.0   snmpget 127.0.0.1 sysUpTime.0
   snmpget udp:127.0.0.1:161 sysUpTime.0   snmpget udp:127.0.0.1:161 sysUpTime.0
 +  snmpwalk -v 2c -c public 172.16.1.248
 +</code>
 However, for IPv6 this causes a problem because IPv6 addresses also use a colon to separate addressing parts. Thus you need to enclose the address in square brackets ( [ and ] ). Because most shells use these brackets too, you also likely need to quote it: However, for IPv6 this causes a problem because IPv6 addresses also use a colon to separate addressing parts. Thus you need to enclose the address in square brackets ( [ and ] ). Because most shells use these brackets too, you also likely need to quote it:
 +<code bash>
   snmpget 'udp6:[::1]:161' sysUpTime.0   snmpget 'udp6:[::1]:161' sysUpTime.0
 +</code>
public_v6/snmp.txt · Zuletzt geändert: von admin