Dell Networking N 系列交換器:如何設定 SNMP

Summary: 如何在 Dell Networking N 系列交換器上設定簡易網路管理通訊協定 (SNMP) 以進行網路監控。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

簡介

本文討論在 Dell N 系列交換器上設定 SNMP 的步驟。

SNMP 的元件

  • SNMP Manager
  • SNMP 代理程式
  • 社群字串

SNMP Manager

  • SNMP 管理員通常是用於運行一個或多個網路管理系統 (NMS) 的電腦。
  • SNMP 管理員負責與網路裝置上的 SNMP 代理程式通訊。(交換機、路由器、伺服器等)

SNMP 代理程式

  • SNMP 代理程式是打包在網元(交換機、路由器、伺服器等)中的程式。
  • 在網元上啟用代理允許它從設備收集資訊,並在查詢時可供SNMP管理器使用。

社群字串

  • SNMP 社區字串類似於與每個 SNMP 請求一起發送的使用者 ID 或密碼,它允許或拒絕訪問網元(交換機、路由器、伺服器等)。
  • 如果社區字串正確,設備將使用請求的信息進行回應。如果社區字串不正確,設備只會忽略該請求。

SNMP 代理程式和管理程式

SLN317470_en_US__1image(12036)


實作 SNMP 的命令

交換器命令 說明
console# configure 進入交換器組態模式
console(config)# snmp-server community "community string" [ro | rw] 建立社區字串並指定管理站是具有唯讀(獲取狀態設定)還是讀/寫(獲取和設定配置)
console(config)# snmp-server enable traps all 啟用陷阱,在觸發時傳送至管理站。
console(config)# snmp-server host xx.xx.xx.xx "community string" 設定陷阱在觸發事件時傳送至的主機和社群字串。

 

SLN317470_en_US__2icon 啟用 SNMP 時,交換器預設會執行版本 V2c。

 

SNMP 組態範例

console# configure

console(config)# snmp-server community test ro

範例輸出

console(config)# show snmp

Community-String     Community-Access View Name        IP Address       IP Mask
-------------------- ---------------- ---------------- ---------------- ----------------

test                  Read Only        Default          All              All


Community-String     Group Name                     IP Address       IP Mask
-------------------- ------------------------------ ---------------- ----------------

test                  DefaultRead                    All              All

Cause

Resolution

Affected Products

PowerSwitch N1100-ON Series, PowerSwitch N1500 Series, PowerSwitch N2000 Series, PowerSwitch N2100 Series, PowerSwitch N3000 Series, Dell EMC PowerSwitch N3000E-ON Series, PowerSwitch N4000 Series
Article Properties
Article Number: 000135459
Article Type: Solution
Last Modified: 10 Apr 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.