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: Developers, Moderators

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

Template for traffic on interface.vlan on HUAWEI router

Post by lobarbag »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

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

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
lobarbag
Posts: 5
Joined: Sat Mar 09, 2019 10:48 am

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

Post by lobarbag »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

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

Post by netniV »

Best way to be sure, check out the OID's for those sub interfaces, do they give a value or not?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
lobarbag
Posts: 5
Joined: Sat Mar 09, 2019 10:48 am

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

Post by lobarbag »

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

Post by lobarbag »

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

Post by lobarbag »

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.
marachcr
Posts: 8
Joined: Thu Nov 02, 2017 4:42 pm

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

Post by marachcr »

for the interface vlan you need add "statistic enable" in to de vlan configuration, not into de interface vlan configuration. the statistics is not a default parameter for some interfaces created manually like sub interfaces o eth-trunks.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests