Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[php] snmpwalk und die Vlans...

Empfohlene Antworten

Hi,

ich versuche über die Funktion snmpwalk von PHP an die Daten meines Switches zu kommen. Wenn ich als OID nichts angebe, starte er ja quasi von "oben". Ich bekomme dann alles mögliche aus der MIB zurück... das dauert auch ziemlich lange bis er damit fertig ist (so ca. 5 Min.).

Ich brauche aber nur bestimmte Daten, z.B. interessiert mich, welche VLANs auf den Ports laufen. WIe komme ich da ran? Die OID wo das steht weiß ich nicht... habe auch keine Ahnung, wie ich die rausbekommen kann....

Habe als Switche HP Procurve.

Bin über jeden Tipp dankbar!

Wenn die gewünschte Information in der Ausgabe enthalten ist würde ich die Informationen unter Linux abrufen und dann beliebig filtern.

Je nach Formatierung helfen grep, cut, awk oder sed weiter...

mfg

cane

Wenn die gewünschte Information in der Ausgabe enthalten ist
Naja, da gehen die Probleme ja schon los... die Ausgabe, die ich habe ist tausende von Zeilen lang, manchmal wiederholen sich die Werte ... kurz: ich habe keine Ahnung, welcher Wert DER richtige ist. Ich möchte eigentlich nur herausbekommen, welche OID ich angeben muss um heraus zu finden, welche VLANs auf dem Switch laufen...

Oder wenn jemand n Tool kennt (unter Unix) das das kann, dann bitte her damit. :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.