Template for traffic on interface.vlan on HUAWEI router

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Moderators, Developers

Post Reply
Author
Message
lobarbag
Posts: 5
Joined: Sat Mar 09, 2019 10:48 am

Template for traffic on interface.vlan on HUAWEI router

#1 Post by lobarbag » Sat Mar 09, 2019 11:03 am

Hello, sorry I am very new in cacti. I have a router HUAWEI NE40E-X16 in cacti with some traffic interfaces monitored ok, but when these interfaces are vlan interfaces the traffic graphs don´t work right. For instance:
Eth-Trunk12 works fine (traffic on interface)
Eth-Trunk12.6 does not work fine (traffic on Vlan ID 6)
Eth-Trunk12.7 does not work fine (traffic on Vlan ID 7)
I guess the problem is all of them are using a interface traffic template and I should import the proper template for the ones with vlanId. Could you help me with it? I searched on the forum but I wasn´t able to find the solution (probably my fault). Thanks in advance.

netniV
Cacti Guru User
Posts: 2779
Joined: Sun Aug 27, 2017 12:05 am

Re: Template for traffic on interface.vlan on HUAWEI router

#2 Post by netniV » Sat Mar 09, 2019 11:31 am

Many devices do NOT give out stats for sub interfaces, Cisco's are one such product known to give that warning. I'm not sure about HUAWEI but that is likely to be the same. Only the physical interfaces tend to have the full stats.

lobarbag
Posts: 5
Joined: Sat Mar 09, 2019 10:48 am

Re: Template for traffic on interface.vlan on HUAWEI router

#3 Post by lobarbag » Sat Mar 09, 2019 11:39 am

Firstly, Thanks for the quick reply.
Are you sure? I have been told by some IP colleagues that it is indeed posible, but there is something that must be done with the template, that is why I was asking.
Regards

netniV
Cacti Guru User
Posts: 2779
Joined: Sun Aug 27, 2017 12:05 am

Re: Template for traffic on interface.vlan on HUAWEI router

#4 Post by netniV » Sat Mar 09, 2019 12:43 pm

Best way to be sure, check out the OID's for those sub interfaces, do they give a value or not?

lobarbag
Posts: 5
Joined: Sat Mar 09, 2019 10:48 am

Re: Template for traffic on interface.vlan on HUAWEI router

#5 Post by lobarbag » Sat Mar 09, 2019 12:57 pm

Sorry, I am not sure how to do it, I am a beginner on this issues... :-(

lobarbag
Posts: 5
Joined: Sat Mar 09, 2019 10:48 am

Re: Template for traffic on interface.vlan on HUAWEI router

#6 Post by lobarbag » Sun Mar 10, 2019 7:52 am

i managed to check it, and indeed it should be possible as the value is returned:

snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.31.1.1.1.1.160
IF-MIB::ifName.160 = STRING: Eth-Trunk50
snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.31.1.1.1.1.161
IF-MIB::ifName.161 = STRING: Eth-Trunk50.650
snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.31.1.1.1.1.163
IF-MIB::ifName.163 = STRING: Eth-Trunk50.651


snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.2.2.1.10.160
IF-MIB::ifInOctets.160 = Counter32: 2170823636
snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.2.2.1.10.161
IF-MIB::ifInOctets.161 = Counter32: 19843097
snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.2.2.1.10.163
IF-MIB::ifInOctets.163 = Counter32: 17499219

snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.2.2.1.16.160
IF-MIB::ifOutOctets.160 = Counter32: 1813395372
snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.2.2.1.16.161
IF-MIB::ifOutOctets.161 = Counter32: 97925622
snmpwalk -v 2c -c xxxxx IP .1.3.6.1.2.1.2.2.1.16.163
IF-MIB::ifOutOctets.163 = Counter32: 9949194

lobarbag
Posts: 5
Joined: Sat Mar 09, 2019 10:48 am

Re: Template for traffic on interface.vlan on HUAWEI router

#7 Post by lobarbag » Sun Mar 17, 2019 5:26 am

For the records, I managed to solve the issue. I was not related with cacti but also the subinterface configuration, it was neccesary to apply the "statistics enable" command to get the right ones.

Post Reply