Hi,
Currently I’m asking Grok and chatgpt for helping me with the discovery for certain virtual Interfaces polling, but without success.
My problem here is that when the discovering and polling on the Huawei USG device has no issue, it discovered physical interfaces and the virtual ones. However, the polling is not working for the virtual interfaces. We have created ticket with Huawei Support, their reply is “not supported yet” because of outdated firmware version and it will be fixed in later versions. So the alternative way is to use ipIfStatsTable.
I have imported the IP-MIB to respective folder “huawei”. Then, link IP-MIB in the yunshan.yaml discovery file.
The oid table is ipIfStatsTable.
The oid/name is ipIfStatsInOctets
oid: .1.3.6.1.2.1.4.31.3.1.5
The actual result when I manually snmpget to the device and I get: .1.3.6.1.2.1.4.31.3.1.5.1.x
Where the x here representing the Index and it is returning a value.
The GPT response:
mib: HUAWEI-WLAN-CONFIGURATION-MIB:HUAWEI-WAN-MIB:HUAWEI-ENTITY-EXTENT-MIB:HUAWEI-ENERGYMNGT-MIB:HUAWEI-STACK-MIB:HUAWEI-POE-MIB:IP-MIB
modules:
ports:
pre-cache:
data:
-
oid:
- ifDescr
- ifName
- ifAlias
- ifType
- ifAdminStatus
- ifOperStatus
- ifIndex
data:
-
oid: ipIfStatsTable
value: ipIfStatsInOctets
num_oid: '.1.3.6.1.2.1.4.31.3.1.5.{{ $index }}'
descr: 'Interface {{ $ifDescr }} In Octets'
index: 'ipIfStatsInOctets.{{ $index }}'
entPhysicalIndex_measured: ports
group: 'Interfaces'
skip_values:
-
oid: ipIfStatsInOctets
op: '='
value: 0
-
oid: ipIfStatsTable
value: ipIfStatsOutOctets
num_oid: '.1.3.6.1.2.1.4.31.3.1.32.{{ $index }}'
descr: 'Interface {{ $ifDescr }} Out Octets'
index: 'ipIfStatsOutOctets.{{ $index }}'
entPhysicalIndex_measured: ports
group: 'Interfaces'
skip_values:
-
oid: ipIfStatsOutOctets
op: '='
value: 0
Any help?