How to use de-select in CLI pipe

Hi,

I tried to use de-select to filter show output, but failed. The test result is as below.

test# show fm alarm event-type
ID EVENT TYPE

1 communications-alarm
2 equipment-alarm

test# show fm alarm event-type | ?
Possible completions:
append Append output text to a file
begin Begin with the line that matches
best-effort Display data even if data provider is unavailable or continue loading from file in presence of failures
count Count the number of lines in the output
csv Show table output in CSV format
de-select De-select columns
display Display options
display-level Display level
exclude Exclude lines that match
include Include lines that match
linnum Enumerate lines in the output
match-all All selected filters must match
match-any At least one filter must match
more Paginate output
nomore Suppress pagination
notab Suppress table output
repeat Repeat show command with a given interval
save Save output text to a file
select Select additional columns
sort-by Select sorting indices
tab Enforce table output
until End with the line that matches

selnipnnx1003# show fm alarm event-type | de-select ID
-----------------------------------------------------^
syntax error: “ID” is not a valid value.
selnipnnx1003# show fm alarm event-type | de-select ‘ID’
-----------------------------------------------------^
syntax error: “‘ID’” is not a valid value.
selnipnnx1003# show fm alarm event-type | de-select “ID”
-----------------------------------------------------^

How should I use the ‘de-select’ in CLI pipe? Could you give an example? Thanks.

de-select works on YANG lists and takes arguments of non-key leafs. Following is an example when running the 5-c_stats example:

 localhost# show arpentries arpe 
 IP           IFNAME  HWADDR             PERMANENT  PUBLISHED  
 --------------------------------------------------------------
 10.0.0.1     en0     58:23:8c:bf:2b:86  true       false      
 10.0.0.7     en0     6c:40:8:a3:f6:94   true       false      
 224.0.0.251  en0     1:0:5e:0:0:fb      true       false      

 localhost# show arpentries arpe | de-select 
 Possible completions:
   hwaddr  permanent  published
 localhost# show arpentries arpe | de-select hwaddr 
 IP           IFNAME  PERMANENT  PUBLISHED  
 -------------------------------------------
 10.0.0.1     en0     true       false      
 10.0.0.7     en0     true       false      
 224.0.0.251  en0     true       false      

 localhost#

Thanks a lot. I tried again and it worked.