[BUG] snmp collector get apr info from h3c_switch but some mac addr info get error String
ytmflcel321 opened this issue · comments
ytmflcel321 commented
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
only two mac addr had this error
Expected Behavior
get right mac info
Steps To Reproduce
collect config info
- name: arpinfo
i18n:
zh-CN: ARP表项
en-US: ARP Table
priority: 1
fields:
- field: ifIndex
type: 1
i18n:
zh-CN: 本端接口索引
en-US: Local Interface Index
- field: dstIp
type: 1
label: true
i18n:
zh-CN: 对端IP
en-US: Dst IP
- field: dstMac
type: 1
i18n:
zh-CN: 对端MAC
en-US: Dst Mac
# (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field
aliasFields:
- ifIndex
- dstIp
- dstMac
# calculates:
# - ifIndex=convertMacAndVlan(ifIndex)
# - descr=ifDescr
# mapping and conversion expressions, use these and aliasField above to calculate metrics value
# eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime
protocol: snmp
snmp:
host: ^_^host^_^
port: ^_^port^_^
username: ^_^username^_^
authPassphrase: ^_^authPassphrase^_^
privPassphrase: ^_^privPassphrase^_^
privPasswordEncryption: ^_^privPasswordEncryption^_^
authPasswordEncryption: ^_^authPasswordEncryption^_^
contextName: ^_^contextName^_^
timeout: ^_^timeout^_^
community: ^_^community^_^
version: ^_^snmpVersion^_^
operation: walk
oids:
ifIndex: 1.3.6.1.2.1.3.1.1.1
dstIp: 1.3.6.1.2.1.3.1.1.3
dstMac: 1.3.6.1.2.1.3.1.1.2
Environment
HertzBeat version(s):1.6.1
Debug logs
No response
Anything else?
No response