cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
985
Views
5
Helpful
2
Replies

Activate monitor-sessionn on interface using XR CLI NED

Hello Dears,

I'd like to activate monitor-session  on XR device but I'm geting this error when commiting:

Aborted: External error in the NED implementation for device MYDEV-CLI: Tue Apr 21 14:24:48.657 CEST

% Failed to commit one or more configuration items during a pseudo-atomic operation. All changes made have been reverted.
 !! SEMANTIC ERRORS: This configuration was rejected by
!! the system due to semantic errors. The individual
!! errors with each failed configuration command can be
!! found below.


interface TwentyFiveGigE0/0/0/11
 monitor-session TEST ethernet
!!% 'SPAN' detected the 'warning' condition 'The platform encountered an error processing a SPAN operation': Operation not supported
 !
!
end

I have configure on the device and commit :

interface TwentyFiveGigE0/0/0/11
 monitor-session TEST ethernet port-level
 !
 shutdown
!

But the monitor-session part is not visible on nso:

admin@ncs# show running-config devices device MYDEV-CLI config cisco-ios-xr:interface TwentyFiveGigE 0/0/0/11
devices device MYDEV-CLI
 config
  cisco-ios-xr:interface TwentyFiveGigE 0/0/0/11
   shutdown
  exit
 !
!

Can Somone help please i'm using NED XR 7.3

 

2 Replies 2

lmanor
Cisco Employee
Cisco Employee
I’d suggest trying a newer NED, the latest is 7.25, so 7.3 is a bit old.

However, I just checked 7.25 and it does not have the ā€˜port-level’ sub-command that you specify on the device.
monitor-session TEST ethernet port-level

From 7.25 NED:

grouping interface-monitor-session-grouping {
list monitor-session {
tailf:info "Monitor-session configuration commands";
tailf:cli-mode-name "config-if-mon";
key name;
leaf name {
tailf:cli-suppress-leafref-in-diff;
tailf:non-strict-leafref {
path "/cisco-ios-xr:monitor-session/name";
}
type string {
tailf:info "WORD;;Session Name";
}
}

// interface * / monitor-session * ethernet
leaf ethernet {
tailf:info "Replicate Ethernet traffic";
tailf:cli-hide-in-submode;
type empty;
}

You’ll need to make a request for this config to added to the NED.

Hello dear Thx for your advice