当 SNMP 行走或使用“单一 OID 查看器”探测时,我可以检索任何 OID 信息。但是,当尝试使用交互式 snmp 探针创建器中的自定义探针时,所有 OID 都返回“[N/A]”
任何帮助将不胜感激。
我在下面为上下文添加更多信息 1. 自定义探针的代码片段 2. 我的期望 3. 我的代码返回什么
- 下面是我需要的 OID 变量的示例代码
-- 代码的目的是记录设备的状态数据,并为用户显示设备状态。
<snmp-device-variables>
TLPPOIName_, spvLDasName.${Slot},DEFAULT, "TLPPOIName"
PoiDescription_, spvLDasCommercialDescription.${Slot},DEFAULT, "PoiDescription"
PoiAttDl1_, spvLDasAttDigDl.${Slot}.1,DEFAULT, "Poi Attenuation Dl path 1"
PoiAttDl2_, spvLDasAttDigDl.${Slot}.2,DEFAULT, "Poi Attenuation Dl path 2"
PeakPwr1_, spvLDasPeakPwrDl.${slot}.1, DEFAULT, "PeakPwr path 1"
PeakPwr2_, spvLDasPeakPwrDl.${slot}.2, DEFAULT, "PeakPwr path 2"
PwrAlarm_, spvLDasPwrAlarmHysteresis.${Slot},DEFAULT, "PwrAlarm"
</snmp-device-variables>`
<datasets>
$PoiAttDl1_, "PoiAttDl1", "dB", "true", "Poi Attenuation Dl path 1"
$PoiAttDl2_, "PoiAttDl2", "dB", "true", "Poi Attenuation Dl path 2"
$PeakPwr1_, "PeakPwr1", "dBm", "true", "PeakPwr path 1"
$PeakPwr2_, "PeakPwr2", "dBm", "true", "PeakPwr path 2"
$PwrAlarm_, "PwrAlarm", "dBm", "true", "PwrAlarm"
</datasets>`
<snmp-device-display>
\B5\TLPPOI\P0\
\4\ TLPPOIName:\0\ $TLPPOIName_\M0\
\4\ PoiDescription:\0\$PoiDescription_ \M0\
\4\ Poi Attenuation Dl path 1:\0\$PoiAttDl1_ \M0\
\4\ Poi Attenuation Dl path 2:\0\$PoiAttDl2_ \M0\
\4\ PeakPwr path 1:\0\$PeakPwr1_ \M0\
\4\ PeakPwr path 2:\0\$PeakPwr2_ \M0\
\4\ PwrAlarm:\0\$PwrAlarm_\M0\
</snmp-device-display>
- SNMP walk 结果:下面是我希望看到的值的示例 VZW 800 20 2
- 使用我编写的自定义探针后的显示窗口 TLPPOIName: [N/A]