Simple Network Management Protocol (SNMP) 是網管領域的通用協定,Windows 2000 內建 SNMP 代理程式服務,支援 MIB-II、LAN Manager、DHCP、WINS 等標準/企業 MIB。Support Tools 提供 Snmputilg.exe — 唯一具備圖形介面的 SNMP 查詢工具,可直觀執行 Get、GetNext、Walk 等操作,並支援結果匯出剪貼簿/CSV,極適合即時巡檢與基線記錄。
开始 → 运行 → snmputilg。| 操作名稱 | 功能描述 | 適用場景 |
|---|---|---|
| GET the value of the current object identifier | 取得單一 OID 當前值 | 精準查詢特定計數器 (如 sysUpTime、ifSpeed) |
| GET the NEXT value after the current object identifier (Default) | 取得緊鄰下一個 OID 值 | 逐筆瀏覽 MIB 樹 |
| GET the NEXT 20 values after the current object identifier | 批次取得後續 20 個 OID | 快速掃描子樹前段 |
| GET all values from object identifier down (WALK the tree) | 完整遞迴遍歷子樹 | 建立完整 MIB 基線、離線分析 |
| WALK the tree from WINS values down | 從 WINS MIB 根節點遍歷 | 檢查 WINS 複寫夥伴、統計計數器 |
| WALK the tree from DHCP values down | 從 DHCP MIB 根節點遍歷 | 稽核租約池、衝突、到期統計 |
| WALK the tree from LANMAN values down | 從 LAN Manager MIB 根節點遍歷 | 查詢伺服器會話、共用、檔案開啟數 |
| WALK the tree from MIB-II down (Internet MIB) | 從標準 MIB-II 根節點遍歷 | 系統、介面、IP、ICMP、TCP、UDP、SNMP 全群組 |
Snmputilg 為 GUI 工具,無命令列參數。若需自動化,建議改用同目錄下的 Snmputil.exe (命令列版) 或 Net-SNMP (snmpwalk/snmpget) 跨平台工具鏈。範例:
rem 使用 Snmputil.exe (支援 /w walk /g get /n next)
snmputil walk 192.168.1.1 public .1.3.6.1.2.1 > baseline_mib2_%date%.txt
snmputil walk 192.168.1.1 public .1.3.6.1.4.1.311.1.1.3 > baseline_lanman_%date%.txt
Snmputilg 以直觀 GUI 降低 SNMP 查詢門檻,八大 Walk 操作涵蓋 Windows 核心 MIB 與標準 MIB-II,配合 CSV 匯出可快速建立網路裝置效能基線。網管應掌握「Community 權限最小化」、「查詢頻率節制」、「關鍵 OID 白名單」三原則,將其納入日常巡檢 SOP。