5520 wireless controller command's output to a file and then ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2021 02:38 AM - edited 07-05-2021 01:16 PM
Hello,
i have the following problem:
on a 5520 WLC i can execute the following command from the CLI
show netuser summary
is there a way to save the output (say output.txt) of this command to a file on the 5520 filesystem and then
use transfer upload and specify output.txt as the source and transmit that over sftp to a remote server?
could someone give me a complete example of the command sequence that would do that?
and then:
is there a way, a command, for the 5520 to view the content of a file? something like a unix cat?
and a command to delete a specific file?
thank you everybody
- Labels:
-
Wireless LAN Controller
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2021 04:13 AM
@lpalpac wrote:
is there a way to save the output (say output.txt) of this command to a file on the 5520 filesystem and then
use transfer upload and specify output.txt as the source and transmit that over sftp to a remote server?
Why not just log the session?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2021 04:34 AM
Hi !
because the next step would be to automate the task, running it each day at a certain hour..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2021 07:32 AM
- Standard methodologies would imply, a syslog-server for general logging purposes, and the value(s) you are looking for, try if they can be fetched or are supported in any of the snmp MIBS.
M.
-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2021 05:12 PM
@lpalpac wrote:
because the next step would be to automate the task, running it each day at a certain hour..
SNMP and/or API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2021 04:15 AM
- These items or questions are generally not possible, note that AireOS is not Unix or Linux. You could use operator-terminal tools such as Putty , which can usually save a session or from a Linux, you can first type % script my_controller_log.txt , then connect to the controller.
M.
-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2021 07:13 AM
and another option "ssh 5520wlc | tee mysavedoutput.txt"
that logs your entire ssh session to file.
You can then use script to extract the part you're looking for from the file.
Like the others have said AireOS was not designed to do what you want to do. It doesn't provide user access to the file system.
Please click Helpful if this post helped you and Select as Solution (drop down menu at top right of this reply) if this answered your query.
------------------------------
TAC recommended codes for AireOS WLC's and TAC recommended codes for 9800 WLC's
Best Practices for AireOS WLC's, Best Practices for 9800 WLC's and Cisco Wireless compatibility matrix
Check your 9800 WLC config with Wireless Config Analyzer using "show tech wireless" output or "config paging disable" then "show run-config" output on AireOS and use Wireless Debug Analyzer to analyze your WLC client debugs
Field Notice: FN63942 APs and WLCs Fail to Create CAPWAP Connections Due to Certificate Expiration
Field Notice: FN72424 Later Versions of WiFi 6 APs Fail to Join WLC - Software Upgrade Required
Field Notice: FN72524 IOS APs stuck in downloading state after 4 Dec 2022 due to Certificate Expired
- Fixed in 8.10.196.0, latest 9800 releases, 8.5.182.12 (8.5.182.13 for 3504) and 8.5.182.109 (IRCM, 8.5.182.111 for 3504)
Field Notice: FN70479 AP Fails to Join or Joins with 1 Radio due to Country Mismatch, RMA needed
How to avoid boot loop due to corrupted image on Wave 2 and Catalyst 11ax Access Points (CSCvx32806)
Field Notice: FN74035 - Wave2 APs DFS May Not Detect Radar After Channel Availability Check Time
Leo's list of bugs affecting 2800/3800/4800/1560 APs
Default AP console baud rate from 17.12.x is 115200 - introduced by CSCwe88390
