Monday, February 22, 2016

Graph Base Policy

Graph Base Policy

First need to get these:
- On Router allow your server IP to check that Router
- Info on Router: router-01#show policy-map interface tenGigabitEthernet 0/0/1.298 output

Step1:  Get ifindex for the cl-ggc. (The fastest way is get this index from Cacti)
index: 44

Step2: Get the cbQosIfndex for corresponding IfIndex in router
snmpwalk -v 2c -cPuBlic_SNMP router-01 1.3.6.1.4.1.9.9.166.1.1.1.1.4 | grep -i 44

SNMPv2-SMI::enterprises.9.9.166.1.1.1.1.4.704 = INTEGER: 44 in 704
SNMPv2-SMI::enterprises.9.9.166.1.1.1.1.4.706 = INTEGER: 44 out 706

Step3: Below is the mib to get the names of class-map configured on the router
snmpwalk -v2c -c PuBlic_SNMP router-01 1.3.6.1.4.1.9.9.166.1.7.1.1.1 |egrep -i cl-ggc
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.366370270 = STRING: "cl-ggc"

Step4: cbQosConfigIndex can be for the class-map can be fetch from following mib
snmpwalk -v2c -c PuBlic_SNMP router-01 1.3.6.1.4.1.9.9.166.1.5.1.1.2 | egrep -i 'Gauge32: 366370270'
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.704.65536 = Gauge32: 366370270
SNMPv2-SMI::enterprises.9.9.166.1.5.1.1.2.706.65536 = Gauge32: 366370270

So:
in: TenGi 0/0/1.298 - customer - youtube - in
.1.3.6.1.4.1.9.9.166.1.15.1.1.11.704.65536

out: TenGi 0/0/1.298 - customer - youtube - out
.1.3.6.1.4.1.9.9.166.1.15.1.1.11.706.65536

On Cacti need to add these policy in and out, and create the graph policy and select those policy in and out.

No comments:

Post a Comment