12-04-2023 07:17 AM
Hello,
i' m using
terminal length 0
show ap cdp neighbors
but every 10 rows the header is repeated. Is there a way to stop this?
Solved! Go to Solution.
12-04-2023 04:01 PM - edited 12-04-2023 04:06 PM
No! It's one of a number of commands which do not respect the term len settings on 9800. It's unbelievable that Cisco dev team still haven't fixed such a fundamental bug after so many releases. Your only option for now is to use filters to exclude the repeating lines.
"sh ap image" has the same problem but is even worse because it repeats the entire block of pre-download stats after every 10 APs along with lots of blank lines!
So I filter it like this: 9800#sh ap image | ex Number of APs|:|--------|Primary Image|^$
So you could use: 9800#sh ap cdp neighbors | ex Number of neighbors|AP Name|-------|^$
If any of you have any influence with wireless BU please feel free to tell them how absolutely embarrassingly rubbish this is, and the fix needs to be applied to all affected commands.
Maybe somebody has the time to open a TAC case and persuade TAC to raise a bug?
@marce1000 it looks like this:
Number of neighbors: XXX
AP Name AP IP Neighbor Name Neighbor IP Neighbor Port
-------------------------------------------------------------------------------------------------------------------------------------------------------------
<line of CDP output> (10 lines)
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
Number of neighbors: 386
AP Name AP IP Neighbor Name Neighbor IP Neighbor Port
-------------------------------------------------------------------------------------------------------------------------------------------------------------
(so repeating every 10 APs)
And:
Total number of APs : XXX
Number of APs
Initiated : 0
Downloading : 0
Predownloading : 0
Completed downloading : 0
Completed predownloading : 0
Not Supported : 0
Failed to Predownload : 0
Predownload in progress : No
AP Name Primary Image Backup Image Predownload Status Predownload Version Next Retry Time Retry Count Method
------------------------------------------------------------------------------------------------------------------------------------------------------------------
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
Total number of APs : XXX
Number of APs
Initiated : 0
Downloading : 0
Predownloading : 0
Completed downloading : 0
Completed predownloading : 0
Not Supported : 0
Failed to Predownload : 0
Predownload in progress : No
AP Name Primary Image Backup Image Predownload Status Predownload Version Next Retry Time Retry Count Method
------------------------------------------------------------------------------------------------------------------------------------------------------------------
So there's more lines of duplicated "stats" and blank lines than there are of actual useful output!
12-04-2023 07:41 AM
- Could you post a screenshot of this repeating row header ?
M.
12-04-2023 04:01 PM - edited 12-04-2023 04:06 PM
No! It's one of a number of commands which do not respect the term len settings on 9800. It's unbelievable that Cisco dev team still haven't fixed such a fundamental bug after so many releases. Your only option for now is to use filters to exclude the repeating lines.
"sh ap image" has the same problem but is even worse because it repeats the entire block of pre-download stats after every 10 APs along with lots of blank lines!
So I filter it like this: 9800#sh ap image | ex Number of APs|:|--------|Primary Image|^$
So you could use: 9800#sh ap cdp neighbors | ex Number of neighbors|AP Name|-------|^$
If any of you have any influence with wireless BU please feel free to tell them how absolutely embarrassingly rubbish this is, and the fix needs to be applied to all affected commands.
Maybe somebody has the time to open a TAC case and persuade TAC to raise a bug?
@marce1000 it looks like this:
Number of neighbors: XXX
AP Name AP IP Neighbor Name Neighbor IP Neighbor Port
-------------------------------------------------------------------------------------------------------------------------------------------------------------
<line of CDP output> (10 lines)
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
<line of CDP output>
Number of neighbors: 386
AP Name AP IP Neighbor Name Neighbor IP Neighbor Port
-------------------------------------------------------------------------------------------------------------------------------------------------------------
(so repeating every 10 APs)
And:
Total number of APs : XXX
Number of APs
Initiated : 0
Downloading : 0
Predownloading : 0
Completed downloading : 0
Completed predownloading : 0
Not Supported : 0
Failed to Predownload : 0
Predownload in progress : No
AP Name Primary Image Backup Image Predownload Status Predownload Version Next Retry Time Retry Count Method
------------------------------------------------------------------------------------------------------------------------------------------------------------------
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
<line of image output>
Total number of APs : XXX
Number of APs
Initiated : 0
Downloading : 0
Predownloading : 0
Completed downloading : 0
Completed predownloading : 0
Not Supported : 0
Failed to Predownload : 0
Predownload in progress : No
AP Name Primary Image Backup Image Predownload Status Predownload Version Next Retry Time Retry Count Method
------------------------------------------------------------------------------------------------------------------------------------------------------------------
So there's more lines of duplicated "stats" and blank lines than there are of actual useful output!
12-05-2023 12:33 AM - edited 12-05-2023 12:33 AM
I have told about this issue to a wireless BU engineer who I have direct access to, to see if he can transmit this concern to the developers. He told me he is going to open an enhancement request to see if they solve it... fingers crossed
12-05-2023 02:12 AM
Fantastic - thanks @JPavonM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide