Open albertguasch opened 5 years ago
Hi Albert,
It seems you need to modify your xpath, could you please try something like
./[local-name() = 'queue-counters']/[local-name() = 'queue'][queue-number='0']/[local-name() = 'queue-counters-queued-packets']
or a simplified version
./[local-name() = 'queue-counters']/queue[queue-number='0']/queue-counters-queued-packets
Then if it works you should repeat the same for each queue-number (0-3)
Regards
Hi,
Now I the parser doesn't fail. No log error in the log file. But not able to record an value. Any problema with the variable?
-
xpath: ./*[local-name() = 'queue-counters']/*[local-name() = 'queue'][queue-number='0']/*[local-name() = 'queue-counters-qu
eued-packets'] variable-name: $host.interface.$key.queue.queue-number.0.queue-counters-queued-packets
Hi,
I am trying to adapt the show interface media to a new one show interface extensive parser in order to get information about queues in each interface.
It Works fine for traffic-statistics and input/output errors but is not working for queue counters. I guess is because xpath is 2 level Deep.
Here an example
parser: regex-command: show\s+interfaces\s+extensive\s+|\s+display\s+xml matches:
And the XML sample: