Hello David,
Apparently, this command does not work.
According to tech-support, searching for multiple patterns is not supported from the same output.
This command "show lldp neighbor | include <PATTERN-STRING-1> | include <PATTERN-STRING-2>"
looks into two STDOUT.
STDOUT1 from the "show lldp" command, and STDOUT2, from the out of "include <PATTERN-STRING-1>"
I need it to REGEX two patterns from the same STDOUT1
I've requested this as a feature request. But who knows if this will go in.
Thank you for your response.
rickr
Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s). It may contain confidential and privileged information, such as health information or trade secrets, that may be restricted from further use or disclosure by state and federal law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please immediately contact the sender by reply e-mail and destroy all copies of the original message. Thank you.
Original Message:
Sent: 1/9/2021 6:50:00 AM
From: parnassus
Subject: RE: CLI include with multiple patterns
Hi Rick, IIRC the chaining could be done this way (example):
show lldp neighbor | include <PATTERN-STRING-1> | include <PATTERN-STRING-2>
Reference (example): ArubaOS-CX 10.5 Command Line Interface Guide for Aruba 8320 8325 Switch Series (Edition 1 July 2020).
------------------------------
Davide Poletto
------------------------------
Original Message:
Sent: Jan 08, 2021 02:01 PM
From: Rick Rodriguez
Subject: CLI include with multiple patterns
Hello,
I'm currently using AOS-CX 10.5 on an Aruba 6300 and 6405.
I've been having problems trying "grep" for multiple patterns on a single command line.
For example, if I do a "show lldp neighbor | include '<pattern1>', 'pattern2'", it reports "Command not supported".
What is the correct syntax for the command line so you can include multiple patterns?
Thank you,
rickr
------------------------------
rickr
------------------------------