Replies: 1 comment 1 reply
-
I would remove all the pipe and match section and just try the straight command:
Do you get a result back if you do that? My first question is does Juniper's PyEZ interface/NETCONF allow you to send pipe characters and extra filters? Remember you are not interfacing to the CLI here, you are interfacing through the PyEZ library and NETCONF. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use device.cli to gather logs from Junos with multipatern matching however it returns no output.
Output:
router seems to be alive, gathering prechecks...!
{'show interfaces ae2 extensive | match "Errors|flapped|Speed"': ''}
Whereas running this directly on router:
router> show interfaces ae2 extensive | match "Errors|flapped|Speed"
Link-level type: Ethernet, MTU: 1514, Speed: 700Gbps, BPDU Error: None, Ethernet-Switching Error: None,
Last flapped : 2022-03-30 10:18:59 UTC (1d 04:54 ago)
Input errors:
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0
Output errors:
Carrier transitions: 42, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0
Does anyone has a clue?
Beta Was this translation helpful? Give feedback.
All reactions