cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
275
Views
0
Helpful
3
Replies

monitor-session is not working in IOS-Xr ?

usmansa2
Level 1
Level 1

Hi all, 

I am trying to capture the packets from Cisco NCS-IOS XR but everytime i try to open the file it shows this error "the capture file has no Interface Description Blocks" My configurations are mentioned below. does someone has any idea that why NCS540 is behaving like that way.

#

monitor-session jb ethernet
destination file size 6000 buffer-type linear format pcapng

#

interface GigabitEthernet0/0/0/10
description **Connected with ASR920_Gig0/0/0/1**
cdp
ipv4 address 192.168.158.1 255.255.255.0
monitor-session jb ethernet direction rx-only port-level
!

#

monitor-session jb packet-collection start

monitor-session jb packet-collection stop write directory /misc/disk1 filename jbcd

#

RP/0/RP0/CPU0:NCS_LAB-1#run

[xr-vm_node0_RP0_CPU0:/misc/disk1/node0_0_CPU0]$tcpdump -r jbcd.pcapng
tcpdump: the capture file has no Interface Description Blocks

#

does someone has an idea why this error is being observed, even when i do the simple packet capturing without file format the pcap file is empty. interface is up and regular communicaton (ping) is happening on the interface 

PS : this is not spam, previous post was blocked by modirator 

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

what is the IOS XR code, I have used below guide and works for me :

https://www.cisco.com/c/en/us/td/docs/iosxr/ncs5500/interfaces/75x/configuration/guide/b-interfaces-hardware-component-cg-ncs5500-75x/m-configuring-traffic-mirroring.html

Only difference i extract from device and used Wireshark to view the file with .pacp (never tried .pcappng )

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

usmansa2
Level 1
Level 1

even pcap is not working 

usmansa2
Level 1
Level 1

not sure if its a bug