monitor class wise statistics on interface in NE40 huawei

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
shivaji
Posts: 1
Joined: Sat Jul 08, 2023 2:19 am

monitor class wise statistics on interface in NE40 huawei

Post by shivaji »

Hello everyone,

I have NE40 Huawei router, I have configured multiple traffic policy on multiple interfaces. I would like to monitor classifier statistic on each interface.

below is sample config:

interface Eth-Trunk103.249
vlan-type dot1q 249
ipv6 enable
statistic enable
traffic-policy MY_TRAFFIC_RULE outbound


traffic policy MY_TRAFFIC_RULE
share-mode
statistics enable
classifier DSCP_13 behavior CAP_60M precedence 1
classifier ANY behavior CAP_300M precedence 2


display traffic policy ILL1000649_YFI_NETWORKS statistics interface Eth-Trunk 103.249 outbound verbose classifier-based class DSCP_13
info: The statistics is shared because the policy is shared.
Interface: Eth-Trunk103.249
Traffic policy outbound: MY_TRAFFIC_RULE
Traffic policy applied at 2023-06-29 19:56:46
Statistics enabled at 2023-07-08 12:29:25
Statistics last cleared: Never
Rule number: 7 IPv4, 0 IPv6
Current status: OK!

Classifier: DSCP_13
Behavior: CAP_60M
Committed Access Rate:
CIR 61440 (Kbps), PIR 61440 (Kbps), CBS 11489280 (byte), PBS 11489280 (byte), ADJUST 0
Conform Action: pass Yellow Action: pass Exceed Action: discard Color-aware: no

Item Packets Bytes
-------------------------------------------------------------------
Matched 9,605,098 6,574,231,314
+--Passed 9,605,098 6,574,231,314
+--Dropped 0 0

Last 30 seconds rate
Item pps bps
-------------------------------------------------------------------
Matched 1,503 9,191,392
+--Passed 1,503 9,191,392
+--Dropped 0 0

Current CAR statistics:
Item Packets Bytes
-------------------------------------------------------------------
Green 9,605,107 6,612,660,601
Yellow 0 0
Red 0 0
Passed 9,605,107 6,612,660,601
Dropped 0 0

Last 30 seconds rate
Item pps bps
-------------------------------------------------------------------
Green 1,342 7,966,824
Yellow 0 0
Red 0 0
Passed 1,342 7,966,824
Dropped 0 0


If anyone has any suggestions on how to do the same, I would greatly appreciate your input.

Thank you in advance for your help!
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: monitor class wise statistics on interface in NE40 huawei

Post by macan »

you have to create own script which makes connection to the device, read data and return it from script to cacti.
More information https://docs.cacti.net/README.md#how-tos
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests