cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3469
Views
10
Helpful
15
Replies
Highlighted
Beginner

Monitoring IPv6 interface counters

I have been asked to use Cacti to graph IPv6 counters on our AS9K interfaces running XR 5.1.3.

Is there a corresponding SNMP OID for the IPV6_UNICAST counter shown here or from the "show monitor" commands?

RP/0/RSP0/CPU0:ios#show interfaces te0/0/0/4 accounting rates 
Wed Jun  3 10:33:39.495 CDT
TenGigE0/0/0/4
                                Ingress                        Egress          
  Protocol             Bits/sec         Pkts/sec     Bits/sec         Pkts/sec
  IPV4_UNICAST       1862641000           165296    229371000           155620
  IPV4_MULTICAST              0                0            0                0
  IPV6_UNICAST        366815000            36364      2934000             2738
  IPV6_MULTICAST          12000               21            0                0
  ARP                     16000               35            0                0
  IPV6_ND                 13000               20            0                1

I found these in some other posts but no success yet:

1.3.6.1.2.1.55.1.6.1
1.3.6.1.2.1.4.31.3.1.6
1.3.6.1.2.1.4.32.3.1.33
 
Thanks!
Jamie
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Jamie, nms-server2:~ %

Jamie,

 

nms-server2:~ % snmpwalk -v 2c -c public 172.18.87.48 1.3.6.1.2.1.4.31.3.1
IP-MIB::ipIfStatsHCInReceives.ipv6.27 = Counter64: 0    
IP-MIB::ipIfStatsHCInOctets.ipv6.27 = Counter64: 0         
IP-MIB::ipIfStatsHCOutTransmits.ipv6.27 = Counter64: 0  
IP-MIB::ipIfStatsHCOutOctets.ipv6.27 = Counter64: 0       
IP-MIB::ipIfStatsHCInMcastPkts.ipv6.27 = Counter64: 0    
IP-MIB::ipIfStatsHCInMcastOctets.ipv6.27 = Counter64: 0 
IP-MIB::ipIfStatsHCOutMcastPkts.ipv6.27 = Counter64: 0
IP-MIB::ipIfStatsHCOutMcastOctets.ipv6.27 = Counter64: 0

 

Eddie.

View solution in original post

15 REPLIES 15
Highlighted
Cisco Employee

Jamie, nms-server2:~ %

Jamie,

 

nms-server2:~ % snmpwalk -v 2c -c public 172.18.87.48 1.3.6.1.2.1.4.31.3.1
IP-MIB::ipIfStatsHCInReceives.ipv6.27 = Counter64: 0    
IP-MIB::ipIfStatsHCInOctets.ipv6.27 = Counter64: 0         
IP-MIB::ipIfStatsHCOutTransmits.ipv6.27 = Counter64: 0  
IP-MIB::ipIfStatsHCOutOctets.ipv6.27 = Counter64: 0       
IP-MIB::ipIfStatsHCInMcastPkts.ipv6.27 = Counter64: 0    
IP-MIB::ipIfStatsHCInMcastOctets.ipv6.27 = Counter64: 0 
IP-MIB::ipIfStatsHCOutMcastPkts.ipv6.27 = Counter64: 0
IP-MIB::ipIfStatsHCOutMcastOctets.ipv6.27 = Counter64: 0

 

Eddie.

View solution in original post

Highlighted
Beginner

Thanks very much for the

Thanks very much for the response. To take this another step further, I do receive similar results.

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.4.31.3.1.6
IP-MIB::ipIfStatsHCInOctets.ipv6.5 = Counter64: 5507656796
IP-MIB::ipIfStatsHCInOctets.ipv6.53 = Counter64: 2889781036972
IP-MIB::ipIfStatsHCInOctets.ipv6.68 = Counter64: 33395567336320

However, I get this when I try to poll one of the specific instances/interfaces so I can graph the specific counter;

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.4.31.3.1.6.68

IP-MIB::ipIfStatsHCInOctets.ipv6.5 = Counter64: 5507660887
Error: OID not increasing: IP-MIB::ipIfStatsHCInOctets.68
 >= IP-MIB::ipIfStatsHCInOctets.ipv6.5

Is that not the correct OID for the specific interface counter?

Thanks again!

Jamie

 

 

 

Highlighted
Beginner

This worked for me. 68 is the

This worked for me. 68 is the interface ifindex.

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.4.31.3.1.6.ipv6.68
IP-MIB::ipIfStatsHCInOctets.ipv6.68 = Counter64: 33411092662585

$ snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.4.31.3.1.5.ipv6.68
IP-MIB::ipIfStatsInOctets.ipv6.68 = Counter32: 767076210

 

The Cacti graphs are working.

 

Thanks again!

Jamie

 

 

Highlighted

Hi am doing the same but

Hi am doing the same but cacti is nor graphing. Did you try by index query?

Your reply will be helpful.

Thanks

Pradeep

Highlighted
Beginner

This is the cheat sheet I use

This is the cheat sheet I use to create the Cacti IPv6 graphs. Please try this and let me know if you have any problems. Good Luck!!

Cacti IPv6 Graphing

RP/0/RSP0/CPU0:router#show snmp interface Te0/0/0/0 ifindex
Tue Aug 11 04:49:05.353 CDT
ifName : TenGigE0/0/0/0 ifIndex : 279

CACTI
Create the IPv6 IN data source
Cacti –> Console -> Data Sources -> ADD
Template = SNMP-Generic OID Template
Host -> router
CREATE

Name: router Te0/0/0/0 - IN
Maximum Value: 100000000000
Data Source Type: COUNTER
OID: 1.3.6.1.2.1.4.31.3.1.6.2.279 (279 is the SNMP interface index)
SAVE

Create the IPv6 OUT data source
Cacti –> Console -> Data Sources -> ADD
Template = SNMP-Generic OID Template
Host -> router
CREATE

Name: router Te0/0/0/0 - OUT
Maximum Value: 100000000000
Data Source Type: COUNTER
OID: 1.3.6.1.2.1.4.31.3.1.33.2.279 (279 is the SNMP interface index)
SAVE

Create the IPv6 Traffic Graph
Cacti->Console->Graph Management->ADD
Template = SNMP-IPv6 Traffic Graph Template
Host -> router
CREATE

Title: router Te0/0/0/0
Vertical Label: Bits Per Second
Data Source IN: router Te0/0/0/0 – IN (snmp_oid)
Data Source OUT: router Te0/0/0/0 – OUT (snmp_oid)
SAVE

Highlighted

Your cheat worked great.

Your procedure worked great. Thanks for the information. I wonder why my xml file for index query doesn't work . As per your procedure I can graph for each specific interface. But with my xml file if I did index query i was expecting to graph whatever interface i select but its not. Still am not getting that point. have you experienced the same?

Highlighted
Beginner

I also tried xml but could

I also tried xml but could not get it to work. I am not an xml expert. I'm not sure if it was a problem with xml or just my lack of knowledge to build it correctly. Glad the cheat sheet worked for you!

Highlighted

Yes your cheat code saved my

Yes your cheat code saved my life. Thanks a lot

Highlighted

Jamie/Jschmied,

Jamie/Jschmied,

The cheat code you have suggested cannot be implemented globally rite? what am trying is creating a template for ipv6 graph. Using snmp index query if we use that template to whatever interface we select it should start graphing. As per your cheat code I can graph it by entering oid of each interface manually. The reason I keep focusing on snmp index query is we have hundreds of interfaces where IPV6 traffic pass through. Creating datasource for inbound/outbound traffic of each interface seems consumption of load and time in my case. Do you have any idea for that?

Thanks

Pradeep

Highlighted
Beginner

You are correct. The process

You are correct. The process is manual and would not be efficient if you have a great number of interfaces to graph. In my case, we were only interested in graphing IPv6 traffic at our up and downstream interfaces which added up to 20-25 interfaces total. Unfortunately, I do not have insight into programming Cacti to accomplish this feat. I would be interested in knowing how to do it too.

Highlighted

Jamie,

Jamie,

I finally found how to make query. Before that i need to see your xml file for graphing ipv6 counter.Or you can tell what oid you have configured in xml

Highlighted
Beginner

Pradeep,

Pradeep,

That is great news! This is the XML. I tried several variations of the OID. It did not work but maybe you can tell me what I did wrong.

<?xml version="1.0"?>

-<interface>

<name>Get Cisco IPv6 Traffic Counter (64-bit)</name>

<description>Queries a Cisco IOS-XR router for IPv6 64-bit Traffic Counter</description>

<oid_index>.1.3.6.1.2.1.4.31.3.1.6.2</oid_index>


-<fields>


-<ipIfStatsInOctets.ipv6Index>

<name>Index</name>

<method>walk</method>

<source>value</source>

<direction>input</direction>

<oid>.1.3.6.1.2.1.4.31.3.1.6.2</oid>

</ipIfStatsInOctets.ipv6Index>


-<ipIfStatsOutOctets.ipv6Index>

<name>Index</name>

<method>walk</method>

<source>value</source>

<direction>input</direction>

<oid>.1.3.6.1.2.1.4.31.3.1.33.2</oid>

</ipIfStatsOutOctets.ipv6Index>

</fields>

</interface>

Thanks!

Jamie

Highlighted

Use below code and let me

Use below code and let me know what happens

     <ipIfStatsHCInOctets>
                        <name>Bytes In - 64-bit Counters IPV6</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>IP-MIB::ipIfStatsHCInOctets.ipv6</oid>
                </ipIfStatsHCInOctets>

                <ipIfStatsHCOutOctets>
                        <name>Bytes Out - 64-bit Counters IPV6</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>IP-MIB::ipIfStatsHCOutOctets.ipv6</oid>
                </ipIfStatsHCOutOctets>

Highlighted
Beginner

Jamie: "The template "SNMP

Jamie: "The template "SNMP-IPv6 Traffic Graph Template" was created?, but i don´t found the template in the Cacti.

Thanks,

Erick 

CreatePlease to create content
Content for Community-Ad

Cisco COVID-19 Survey