cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
23326
Views
20
Helpful
6
Replies

What command can show image and space info in WLC5500?

wfqk
Level 5
Level 5

Hi Cisco router has some command show flash or dir etc to show free space and image size. I'd like to know if there are some relative commands in WLC? Thank you

 

 

1 Accepted Solution

Accepted Solutions

Saravanan Lakshmanan
Cisco Employee
Cisco Employee

I've this dump(from past) about AireOS WLC's flash.

 

(Cisco Controller) >test system disk-usage
(Cisco Controller) >test system dir /mnt
(Cisco Controller) >test system dir /mnt/ap_bundle
(Cisco Controller) >test system dir /mnt/bootsys
(Cisco Controller) >test system dir /certs
(Cisco Controller) >test system dir /mnt/application
(Cisco Controller) >test system dir /mnt/images


****
(Cisco Controller) >test system disk-usage
Filesystem Size Used Available Use% Mounted on
none 392.6M 80.0k 392.5M 0% /var/run
none 392.6M 52.0k 392.5M 0% /var/tmp
/dev/cfa3 69.5M 25.4M 40.6M 38% /mnt/application
/dev/cfa2 625.4M 387.6M 206.0M 65% /mnt/images
/dev/cfa1 247.0M 16.3M 218.2M 7% /mnt/bootsys
/dev/loop3 110.0k 51.0k 53.0k 49% /root/.csl
/dev/ram3 122.0k 11.0k 111.0k 9% /root/.csl_tmp
tmpfs 40.0M 0 40.0M 0% /mnt/ap_bundle

(Cisco Controller) >test system dir /mnt
drwxrwxrwt 5 root root 100 Oct 11 18:04 ap_bundle
drwxr-xr-x 8 root root 4096 Oct 11 18:04 application
drwxr-xr-x 2 root root 4096 Oct 11 14:18 bootsys
drwxr-xr-x 2 root root 0 Oct 11 18:04 core
drwxr-xr-x 2 root root 0 Jan 1 1970 download
drwxr-xr-x 4 root root 4096 Oct 11 13:21 images

(Cisco Controller) >test system dir /mnt/ap_bundle
drwxr-xr-x 2 root root 40 Oct 11 18:04 ap.bak
drwxr-xr-x 2 root root 40 Oct 11 18:04 ap.pri
drwxr-xr-x 2 root root 40 Oct 11 18:04 temp

(ngwc-talwar-01) >test system dir /mnt/bootsys

-rw-r--r-- 1 root root 256 May 22 16:57 System_header.txt

-rw-r--r-- 1 root root 176887 Oct 11 18:01 msgtraplog_file.log
-rw------- 1 root root 11776140 May 22 16:54 core =======> Coredump of last crash
-rw-r--r-- 1 root root 77 May 22 16:54 coreInfo
-rw-r--r-- 1 root root 225 May 22 16:54 core_ftp_prog_info.crash
-rw-r--r-- 1 root root 1112 May 22 16:54 last_received_pkts2_DP0.pcap
-rw-r--r-- 1 root root 1140 May 16 17:43 last_received_pkts3_DP0.pcap
-rw-r--r-- 1 root root 1006 May 14 20:16 last_received_pkts4_DP0.pcap
-rw-r--r-- 1 root root 856 May 14 19:43 last_received_pkts5_DP0.pcap
-rw-r--r-- 1 root root 131071 May 22 16:54 mwar_dump2.crash ======> Crash log1
-rw-r--r-- 1 root root 45746 May 16 17:43 mwar_dump3.crash ======> Crash log2
-rw-r--r-- 1 root root 44938 May 14 20:17 mwar_dump4.crash ======> Crash log3
-rw-r--r-- 1 root root 131071 May 14 19:44 mwar_dump5.crash ======> Crash log4
-rw-r--r-- 1 root root 1202 May 14 16:22 mwar_exit.log
-rw-r--r-- 1 root root 361 May 22 16:54 mwar_ms_deadlock.crash
-rw-r--r-- 1 root root 383 May 22 16:54 mwar_rad_deadlock.crash
-rw-r--r-- 1 root root 910 May 22 16:54 mwar_seminfo.crash
-rw-r--r-- 1 root root 46426 May 22 16:54 talwardp2_DP0.crash ======> DP Crash log1
-rw-r--r-- 1 root root 25153 May 16 17:43 talwardp3_DP0.crash ======> DP Crash log2
-rw-r--r-- 1 root root 25482 May 14 20:16 talwardp4_DP0.crash ======> DP Crash log3
-rw-r--r-- 1 root root 131149 May 14 19:44 talwardp5_DP0.crash ======> DP Crash log4
-rw-r--r-- 1 root root 63265 May 22 16:54 wlc_pow_DP0.crash

#AireOS can keep last 4 CP crash files and last 5 DP crash files. And last coredump of the crash. Ring buffer mechanism is used, the oldest file gets deleted to make room for newer crash.

#To verify coredump and crashlog is properly getting updated or not. There is an way to crash the WLC for testing the same. It simulates control plane crash.

(Cisco Controller) >test system crash

WARNING!! You may lose all unsaved config..
Do you still want to force crash the system? (y/n) y

#How to delete crash files and coredump from wlc's flash.

(Cisco Controller) >clear crash-files ?
force Clears WLC crash and core files without prompting.

***********

Web-bundle and certs.

#How to delete webauth bundle from flash?

(Cisco Controller) >clear crash-files force ?

(Cisco Controller) >clear web?
webauth-bundle webimage webmessage webtitle
(Cisco Controller) >clear webauth-bundle ?

(Cisco Controller) >clear webauth-bundle

#Where to look at certs on flash?

(ngwc-talwar-01) >test system dir /certs
-rw-r--r-- 1 root root 1158 May 22 16:56 bsnDefaultBuildCert.crt
-rw-r--r-- 1 root root 1155 May 22 16:56 bsnDefaultCaCert.crt
-rw-r--r-- 1 root root 1151 May 22 16:56 bsnDefaultIdCert.crt
-rw-r--r-- 1 root root 717 May 22 16:56 bsnDefaultIdCert.prv
-rw-r--r-- 1 root root 1118 May 22 16:56 bsnDefaultRootCaCert.crt
-rw-r--r-- 1 root root 1034 May 22 16:56 bsnOldDefaultCaCert.crt
-rw-r--r-- 1 root root 1076 May 22 16:56 bsnOldDefaultIdCert.crt
-rw-r--r-- 1 root root 716 May 22 16:56 bsnOldDefaultIdCert.prv
-rw-r--r-- 1 root root 1145 May 22 16:56 cscoDefaultIdCert.crt
-rw-r--r-- 1 root root 944 May 22 16:56 cscoDefaultIdCert.prv
-rw-r--r-- 1 root root 1245 May 22 16:56 cscoDefaultMfgCaCert.crt
-rw-r--r-- 1 root root 839 May 22 16:56 cscoDefaultNewRootCaCert.crt
-rw-r--r-- 1 root root 1129 May 22 16:56 cscoMfgSha2CaCert.crt
-rw-r--r-- 1 root root 791 May 22 16:56 cscoRootSha2CaCert.crt
-rw-r--r-- 1 root root 958 May 22 16:56 cscoWatchtowerDevCert.crt

(Cisco Controller) >test system dir /mnt/application

-rw-r--r-- 1 root root 2772 Oct 11 13:56 NaServCaCert_p12.pem
---------- 1 root root 611 Feb 20 09:24 bsnSslWebadminCert.crt
---------- 1 root root 609 Feb 20 09:24 bsnSslWebadminCert.prv
---------- 1 root root 597 May 23 2014 bsnSslWebauthCert.crt
---------- 1 root root 608 May 23 2014 bsnSslWebauthCert.prv

-rw-r--r-- 1 root root 2772 Oct 11 16:25 cert.cmxcloudCA.pem
-rw-r--r-- 1 root root 288523 Oct 11 16:26 dc_embedded_profiles.c
drwxr-xr-x 5 root root 4096 Oct 11 18:03 flashbin
drwxr-xr-x 2 root root 1024 Mar 24 03:26 cfg
---------- 1 root root 1 Mar 24 03:09 fipsmode
-rw-r--r-- 1 root root 828 Mar 24 02:19 fsck.crash
drwxr-xr-x 2 root root 1024 Mar 24 03:08 ha
---------- 1 root root 4088 May 22 16:56 log.bin
---------- 1 root root 1 May 22 16:57 mcast_ucast_feature
drwxr-xr-x 2 root root 1024 May 23 2014 nim
-rw-r--r-- 1 root root 422 May 10 20:19 panic_info
drwxr-xr-x 2 root root 1024 Mar 24 02:51 rrm
-rw-r--r-- 1 root root 2 May 22 16:56 snmpBoots.txt
-rw------- 1 root root 668 Feb 20 09:23 ssh_host_dsa_key
-rw-r--r-- 1 root root 606 Feb 20 09:23 ssh_host_dsa_key.pub
-rw------- 1 root root 531 Feb 20 09:23 ssh_host_key
-rw-r--r-- 1 root root 335 Feb 20 09:23 ssh_host_key.pub
-rw------- 1 root root 883 Feb 20 09:23 ssh_host_rsa_key
-rw-r--r-- 1 root root 226 Feb 20 09:23 ssh_host_rsa_key.pub
-rw-r--r-- 1 root root 422 May 10 20:18 watchdog_dump
drwxr-xr-x 3 root root 2048 May 10 20:15 xml

(Cisco Controller) >test system dir /mnt/images
drwxr-xr-x 2 root root 4096 Oct 6 15:49 ap.bak
drwxr-xr-x 3 root root 4096 Oct 11 13:22 ap.pri
-rwxr-xr-x 1 root root 3211596 Oct 6 15:48 cavium_main.bak
-rwxr-xr-x 1 root root 3286568 Oct 11 13:21 cavium_main.pri
-rwxr-xr-x 1 root root 36881800 Oct 6 15:48 linux.bak.img
-rwxr-xr-x 1 root root 36333785 Oct 11 13:21 linux.pri.img
-rw-r--r-- 1 root root 48 Oct 11 13:21 upgrade.log

View solution in original post

6 Replies 6

Hi

 It doesn't and you don't to worry about disk space on WLC.

 I never see a problem related with disk space.

 If you want to know the size of image you can look at Cisco website on the download page.

 Cisco WLC is well served with RAM memory and disk space. 

 As it does not hold logs, so, nothing to worry about. Probably Cisco TAC might have some hidden command just in case.

 

-If I helped you somehow, please, rate it as useful.-

Saravanan Lakshmanan
Cisco Employee
Cisco Employee

I've this dump(from past) about AireOS WLC's flash.

 

(Cisco Controller) >test system disk-usage
(Cisco Controller) >test system dir /mnt
(Cisco Controller) >test system dir /mnt/ap_bundle
(Cisco Controller) >test system dir /mnt/bootsys
(Cisco Controller) >test system dir /certs
(Cisco Controller) >test system dir /mnt/application
(Cisco Controller) >test system dir /mnt/images


****
(Cisco Controller) >test system disk-usage
Filesystem Size Used Available Use% Mounted on
none 392.6M 80.0k 392.5M 0% /var/run
none 392.6M 52.0k 392.5M 0% /var/tmp
/dev/cfa3 69.5M 25.4M 40.6M 38% /mnt/application
/dev/cfa2 625.4M 387.6M 206.0M 65% /mnt/images
/dev/cfa1 247.0M 16.3M 218.2M 7% /mnt/bootsys
/dev/loop3 110.0k 51.0k 53.0k 49% /root/.csl
/dev/ram3 122.0k 11.0k 111.0k 9% /root/.csl_tmp
tmpfs 40.0M 0 40.0M 0% /mnt/ap_bundle

(Cisco Controller) >test system dir /mnt
drwxrwxrwt 5 root root 100 Oct 11 18:04 ap_bundle
drwxr-xr-x 8 root root 4096 Oct 11 18:04 application
drwxr-xr-x 2 root root 4096 Oct 11 14:18 bootsys
drwxr-xr-x 2 root root 0 Oct 11 18:04 core
drwxr-xr-x 2 root root 0 Jan 1 1970 download
drwxr-xr-x 4 root root 4096 Oct 11 13:21 images

(Cisco Controller) >test system dir /mnt/ap_bundle
drwxr-xr-x 2 root root 40 Oct 11 18:04 ap.bak
drwxr-xr-x 2 root root 40 Oct 11 18:04 ap.pri
drwxr-xr-x 2 root root 40 Oct 11 18:04 temp

(ngwc-talwar-01) >test system dir /mnt/bootsys

-rw-r--r-- 1 root root 256 May 22 16:57 System_header.txt

-rw-r--r-- 1 root root 176887 Oct 11 18:01 msgtraplog_file.log
-rw------- 1 root root 11776140 May 22 16:54 core =======> Coredump of last crash
-rw-r--r-- 1 root root 77 May 22 16:54 coreInfo
-rw-r--r-- 1 root root 225 May 22 16:54 core_ftp_prog_info.crash
-rw-r--r-- 1 root root 1112 May 22 16:54 last_received_pkts2_DP0.pcap
-rw-r--r-- 1 root root 1140 May 16 17:43 last_received_pkts3_DP0.pcap
-rw-r--r-- 1 root root 1006 May 14 20:16 last_received_pkts4_DP0.pcap
-rw-r--r-- 1 root root 856 May 14 19:43 last_received_pkts5_DP0.pcap
-rw-r--r-- 1 root root 131071 May 22 16:54 mwar_dump2.crash ======> Crash log1
-rw-r--r-- 1 root root 45746 May 16 17:43 mwar_dump3.crash ======> Crash log2
-rw-r--r-- 1 root root 44938 May 14 20:17 mwar_dump4.crash ======> Crash log3
-rw-r--r-- 1 root root 131071 May 14 19:44 mwar_dump5.crash ======> Crash log4
-rw-r--r-- 1 root root 1202 May 14 16:22 mwar_exit.log
-rw-r--r-- 1 root root 361 May 22 16:54 mwar_ms_deadlock.crash
-rw-r--r-- 1 root root 383 May 22 16:54 mwar_rad_deadlock.crash
-rw-r--r-- 1 root root 910 May 22 16:54 mwar_seminfo.crash
-rw-r--r-- 1 root root 46426 May 22 16:54 talwardp2_DP0.crash ======> DP Crash log1
-rw-r--r-- 1 root root 25153 May 16 17:43 talwardp3_DP0.crash ======> DP Crash log2
-rw-r--r-- 1 root root 25482 May 14 20:16 talwardp4_DP0.crash ======> DP Crash log3
-rw-r--r-- 1 root root 131149 May 14 19:44 talwardp5_DP0.crash ======> DP Crash log4
-rw-r--r-- 1 root root 63265 May 22 16:54 wlc_pow_DP0.crash

#AireOS can keep last 4 CP crash files and last 5 DP crash files. And last coredump of the crash. Ring buffer mechanism is used, the oldest file gets deleted to make room for newer crash.

#To verify coredump and crashlog is properly getting updated or not. There is an way to crash the WLC for testing the same. It simulates control plane crash.

(Cisco Controller) >test system crash

WARNING!! You may lose all unsaved config..
Do you still want to force crash the system? (y/n) y

#How to delete crash files and coredump from wlc's flash.

(Cisco Controller) >clear crash-files ?
force Clears WLC crash and core files without prompting.

***********

Web-bundle and certs.

#How to delete webauth bundle from flash?

(Cisco Controller) >clear crash-files force ?

(Cisco Controller) >clear web?
webauth-bundle webimage webmessage webtitle
(Cisco Controller) >clear webauth-bundle ?

(Cisco Controller) >clear webauth-bundle

#Where to look at certs on flash?

(ngwc-talwar-01) >test system dir /certs
-rw-r--r-- 1 root root 1158 May 22 16:56 bsnDefaultBuildCert.crt
-rw-r--r-- 1 root root 1155 May 22 16:56 bsnDefaultCaCert.crt
-rw-r--r-- 1 root root 1151 May 22 16:56 bsnDefaultIdCert.crt
-rw-r--r-- 1 root root 717 May 22 16:56 bsnDefaultIdCert.prv
-rw-r--r-- 1 root root 1118 May 22 16:56 bsnDefaultRootCaCert.crt
-rw-r--r-- 1 root root 1034 May 22 16:56 bsnOldDefaultCaCert.crt
-rw-r--r-- 1 root root 1076 May 22 16:56 bsnOldDefaultIdCert.crt
-rw-r--r-- 1 root root 716 May 22 16:56 bsnOldDefaultIdCert.prv
-rw-r--r-- 1 root root 1145 May 22 16:56 cscoDefaultIdCert.crt
-rw-r--r-- 1 root root 944 May 22 16:56 cscoDefaultIdCert.prv
-rw-r--r-- 1 root root 1245 May 22 16:56 cscoDefaultMfgCaCert.crt
-rw-r--r-- 1 root root 839 May 22 16:56 cscoDefaultNewRootCaCert.crt
-rw-r--r-- 1 root root 1129 May 22 16:56 cscoMfgSha2CaCert.crt
-rw-r--r-- 1 root root 791 May 22 16:56 cscoRootSha2CaCert.crt
-rw-r--r-- 1 root root 958 May 22 16:56 cscoWatchtowerDevCert.crt

(Cisco Controller) >test system dir /mnt/application

-rw-r--r-- 1 root root 2772 Oct 11 13:56 NaServCaCert_p12.pem
---------- 1 root root 611 Feb 20 09:24 bsnSslWebadminCert.crt
---------- 1 root root 609 Feb 20 09:24 bsnSslWebadminCert.prv
---------- 1 root root 597 May 23 2014 bsnSslWebauthCert.crt
---------- 1 root root 608 May 23 2014 bsnSslWebauthCert.prv

-rw-r--r-- 1 root root 2772 Oct 11 16:25 cert.cmxcloudCA.pem
-rw-r--r-- 1 root root 288523 Oct 11 16:26 dc_embedded_profiles.c
drwxr-xr-x 5 root root 4096 Oct 11 18:03 flashbin
drwxr-xr-x 2 root root 1024 Mar 24 03:26 cfg
---------- 1 root root 1 Mar 24 03:09 fipsmode
-rw-r--r-- 1 root root 828 Mar 24 02:19 fsck.crash
drwxr-xr-x 2 root root 1024 Mar 24 03:08 ha
---------- 1 root root 4088 May 22 16:56 log.bin
---------- 1 root root 1 May 22 16:57 mcast_ucast_feature
drwxr-xr-x 2 root root 1024 May 23 2014 nim
-rw-r--r-- 1 root root 422 May 10 20:19 panic_info
drwxr-xr-x 2 root root 1024 Mar 24 02:51 rrm
-rw-r--r-- 1 root root 2 May 22 16:56 snmpBoots.txt
-rw------- 1 root root 668 Feb 20 09:23 ssh_host_dsa_key
-rw-r--r-- 1 root root 606 Feb 20 09:23 ssh_host_dsa_key.pub
-rw------- 1 root root 531 Feb 20 09:23 ssh_host_key
-rw-r--r-- 1 root root 335 Feb 20 09:23 ssh_host_key.pub
-rw------- 1 root root 883 Feb 20 09:23 ssh_host_rsa_key
-rw-r--r-- 1 root root 226 Feb 20 09:23 ssh_host_rsa_key.pub
-rw-r--r-- 1 root root 422 May 10 20:18 watchdog_dump
drwxr-xr-x 3 root root 2048 May 10 20:15 xml

(Cisco Controller) >test system dir /mnt/images
drwxr-xr-x 2 root root 4096 Oct 6 15:49 ap.bak
drwxr-xr-x 3 root root 4096 Oct 11 13:22 ap.pri
-rwxr-xr-x 1 root root 3211596 Oct 6 15:48 cavium_main.bak
-rwxr-xr-x 1 root root 3286568 Oct 11 13:21 cavium_main.pri
-rwxr-xr-x 1 root root 36881800 Oct 6 15:48 linux.bak.img
-rwxr-xr-x 1 root root 36333785 Oct 11 13:21 linux.pri.img
-rw-r--r-- 1 root root 48 Oct 11 13:21 upgrade.log

Very good stuff. Some of this commands require more privileges then the local admin has, but, most of them can be applied.

 Is there a command do walk through the SO directories like the 'shell' command on Prime ? 

 

Thank you.

Regards shell/devshell access to WLC were there in past for internal access only and removed lately considering security issues/vulnerabilities. We've equivalent external commands these days on critical cases to manage/contain.

It is very helpful. Thank you all!

what is the impact for test system dir command?  Will this cause any issues with memory or processor utilization?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card