Enabling statistics collection for SR-ISIS
Enabling ingress statistics collection for SR-ISIS SIDs
In the following configuration example, the ingress statistics collection is enabled for both adjacency SIDs and node SIDs on IS-IS instance sr-isis-1.
--{ candidate shared default }--[ ]--
# /info with-context network-instance default protocols isis instance sr-isis-1 segment-routing mpls ingress-statistics
network-instance default {
protocols {
isis {
instance sr-isis-1 {
segment-routing {
mpls {
ingress-statistics {
adj-sid true
node-sid true
}
}
}
}
}
}
}
Enabling egress statistics collection for SR-ISIS SIDs
In the following configuration example, the egress statistics collection is enabled for both adjacency SIDs and node SIDs on IS-IS instance sr-isis-2.
--{ candidate shared default }--[ ]--
# /info with-context network-instance default protocols isis instance sr-isis-2 segment-routing mpls egress-statistics
network-instance default {
protocols {
isis {
instance sr-isis-2 {
segment-routing {
mpls {
egress-statistics {
adj-sid true
node-sid true
}
}
}
}
}
}
}
Display SR-ISIS traffic statistics
To display SR-ISIS traffic statistics, use the info from state network-instance protocols isis instance segment-routing mpls sid-statistics command.
--{ state }--[ ]--
# / info from state with-context network-instance default protocols isis instance 0 segment-routing mpls sid-statistics label 21001
network-instance default {
protocols {
isis {
instance 0 {
segment-routing {
mpls {
sid-statistics {
label 21001 {
type adjacency
prefix 10.0.0.2/32
interface ethernet-1/24.1
algorithm 0
egress {
oper-state enabled
octets 14460
packets 10
resource-allocation success
}
ingress {
oper-state enabled
octets 14500
packets 10
resource-allocation success
}
}
}
}
}
}
}
}
}
Clear SR-ISIS traffic statistics
To clear SR-ISIS traffic statistics, use the tools network-instance protocols isis instance 0 segment-routing-statistics clear command.
--{ candidate shared default }--[ ]--
# / tools network-instance default protocols isis instance 0 segment-routing-statistics clear