04-08-2020 01:26 PM
hello
i have a policy-map
with to class
policy-map CheckBand-BandPerUsr class BandPerUsr police cir 10000000000 class class-default police cir 10000000000
i need to get a (Post Policy Size) by snmp
i look and find a right oid but value was wrong
snmpwalk -v2c -c ABCDED X.X.X.X iso.3.6.1.4.1.9.9.166.1.15.1.1.11 iso.3.6.1.4.1.9.9.166.1.15.1.1.11.1298180580.65536 = Gauge32: 4012315000 iso.3.6.1.4.1.9.9.166.1.15.1.1.11.1298180580.131072 = Gauge32: 376176704
Gauge32: 376176704
and now the traffic for class-default is 4,600 Mbps
sh policy-map target Port-channel7: EFP 1045 Service-policy input: CheckBand-BandPerUsr Class-map: BandPerUsr (match-all) 33378869376 packets, 33153538986508 bytes 5 minute offered rate 4025078000 bps, drop rate 0000 bps Match: access-group name BandPerUsr police: cir 10000000000 bps, bc 33292000 bytes conformed 33374131354 packets, 33148621833696 bytes; actions: transmit exceeded 0 packets, 0 bytes; actions: drop conformed 4025078000 bps, exceeded 0000 bps Class-map: class-default (match-any) 41735372388 packets, 38731449873476 bytes 5 minute offered rate 4665204000 bps, drop rate 0000 bps Match: any police: cir 10000000000 bps, bc 33292000 bytes conformed 41735372388 packets, 38731449873476 bytes; actions: transmit exceeded 0 packets, 0 bytes; actions: drop conformed 4665204000 bps, exceeded 0000 bps
i note something
we the traffic above a 4000 Mbps
i get correct value like 4012315000 after i /1024 / 1024 i get a correct value ( 4012 Mbps)
but when traffics off class-map is above of 4100Mbps
i get uncorrected Gauge32 value wit 9 digt only
04-21-2020 04:36 PM
Hey,
I see you are using the below OID which is 32bit counter based, these OIDs are generally limited to around 4.2G and won't give any values higher than that.
Object | cbQosCMPostPolicyBitRate |
OID | 1.3.6.1.4.1.9.9.166.1.15.1.1.11 |
For this reason there are 64bit versions of these OIDs which basically do the same but can store a higher counter. Give it a try with this one:
Object | cbQosCMPostPolicyBitRate64 |
OID | 1.3.6.1.4.1.9.9.166.1.15.1.1.29 |
04-22-2020 09:48 AM
04-26-2020 07:40 AM
08-23-2021 04:31 AM
same issue happen with my ASR1002-X Router did you found any solution
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: