Thursday, September 28, 2023

Reset 5508 WLC to factory default via CLI


(Cisco Controller) >reset system


The system has unsaved changes.

Would you like to save them now? (y/N)

*Type y-enter and sytem will restart*


(Cisco Controller)


Enter User Name (or 'Recover-Config' this one-time only to reset configuration to factory defaults)


User:

*Type `Recover-Config' and hit Enter*


User:  Recover-Config

Initiating system recovery process... please wait

Writing to flash ...

Tuesday, June 20, 2023

Get Checksum values using PowerShell in Windows 10

 PS D:\Downloads> Get-FileHash -Path d:\Downloads\C9800-L-universalk9_wlc.17.03.07.SPA.bin -Algorithm MD5



Thursday, October 20, 2022

Catalyst 3850 Software Upgrade

 After freeing some space after a flash cleanup, another error. 

The error will cause to fill up the flash and i must delete the created files manually.

Preparing install operation ...

[1]: Starting install operation

[1]: Expanding bundle flash:cat3k_caa-universalk9.16.12.08.SPA.bin

[1]: Copying package files

[1]: Package files copied

[1]: Finished expanding bundle flash:cat3k_caa-universalk9.16.12.08.SPA.bin

[1]: Verifying and copying expanded package files to flash:

[1]: Verified and copied expanded package files to flash:

[1]: % Failed to create candidate tree. Operation aborted.

[1]: % An internal error was encountered. Operation aborted.


The error will cause to fill up the flash and i must delete the expanded package files manually.

running flash cleanup will recommend to delete including the new copied image.

copy the list of recommended files to be delted adn type "no" and press enter.


delete the listed files manually, keeping the new ios image.

Run the software installation again and add new force this time.


Switch# software install file flash:cat3k_caa-universalk9.16.12.08.SPA.bin new force


proceed with reload:

verify the updated after a reload:


Switch#show ver | i INSTALL

*    1 32    WS-C3850-24P       16.12.08          CAT3K_CAA-UNIVERSALK9 INSTALL


Then do a flash cleanup:

Before flash cleanup:

Switch#show flash:

-#- --length-- ---------date/time--------- path

  2    2097152 Oct 20 2022 22:18:23.0000000000 +00:00 nvram_config

  3       4096 Oct 20 2022 21:55:23.0000000000 +00:00 tech_support

  4      15305 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/igmp-snooping.tcl

  5       1612 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/igmpsn_dump.tcl

  6      13515 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/mld-snooping.tcl

  7       1612 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/mldsn_dump.tcl

  8      15241 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/multicast.tcl

  9       6284 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/multicast_dump.tcl

 10       6718 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/multicast_ipv6.tcl

 11       1365 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/platform-fabric-iid-ethernet.tcl

 12       2107 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/platform-fabric-iid-ipv4.tcl

 13       2109 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/platform-fabric-iid-ipv6.tcl

 14       2729 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/platform-fabric-vrf-ipv4.tcl

 15       2757 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/platform-fabric-vrf-ipv6.tcl

 16      52402 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/platform-fabric-vrf-source.tcl

 17        612 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/platform-fabric.tcl

 18       1548 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/platform_evpn_vxlan.tcl

 19      21852 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/port.tcl

 20       3270 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/port_dump.tcl

 21       7317 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/port_utils.tcl

 22      15655 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/stack.tcl

 23       4938 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/stackwise-virtual.tcl

 24      38541 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/unicast.tcl

 25      12653 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/unicast_dump.tcl

 26       5162 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/unicast_ipv6.tcl

 27       2864 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/unicast_ipv6_dump.tcl

 28        336 Oct 20 2022 22:03:36.0000000000 +00:00 tech_support/utils.tcl

 29      12829 Oct 20 2022 11:45:33.0000000000 +00:00 cfa.text

 30         76 Oct 20 2022 22:03:40.0000000000 +00:00 boothelper.log

 31       4096 Feb 26 2019 19:18:47.0000000000 +00:00 virtual-instance

 32         66 Oct 20 2022 21:55:44.0000000000 +00:00 boothelper.old

 33       4096 Oct 20 2022 22:14:40.0000000000 +00:00 .dbpersist

 34       4096 Oct 20 2022 22:18:24.0000000000 +00:00 .dbpersist/DMI_STATE_DB

 35      14942 Oct 20 2022 22:18:23.0000000000 +00:00 .dbpersist/DMI_STATE_DB/DMI_STATE_DB

 36         86 Oct 20 2022 22:18:24.0000000000 +00:00 .dbpersist/DMI_STATE_DB/DMI_STATE_DB.meta

 37        330 Oct 20 2022 22:18:24.0000000000 +00:00 .dbpersist/stats

 38       1236 Feb 26 2019 19:03:01.0000000000 +00:00 packages.conf.00-

 39        545 Oct 20 2022 22:05:16.0000000000 +00:00 rdope.log

 40   23020160 Oct 20 2022 21:50:17.0000000000 +00:00 cat3k_caa-webui.16.12.08.SPA.pkg

 41       4780 Oct 20 2022 21:50:21.0000000000 +00:00 packages.conf

 42       4096 Oct 20 2022 22:03:19.0000000000 +00:00 .installer

 43       4096 Oct 20 2022 21:55:28.0000000000 +00:00 .installer/issu_crash

 44        629 Oct 20 2022 22:03:22.0000000000 +00:00 bootloader_evt_handle.log

 45       4096 Feb 24 2019 12:58:18.0000000000 +00:00 core

 46       4096 Oct 28 2017 21:49:40.0000000000 +00:00 core/modules

 47          1 Oct 20 2022 22:35:33.0000000000 +00:00 core/.callhome

 48      33627 Feb 24 2019 12:21:02.0000000000 +00:00 core/kernel.rp_RP-EDISON_0_20190224092352.txt

 49  111222631 Feb 24 2019 12:23:52.0000000000 +00:00 core/kernel.rp_RP-EDISON_0_20190224092352.core.flat.gz

 50      33686 Feb 24 2019 12:38:21.0000000000 +00:00 core/kernel.rp_RP-EDISON_0_20190224094058.txt

 51   99627551 Feb 24 2019 12:40:58.0000000000 +00:00 core/kernel.rp_RP-EDISON_0_20190224094058.core.flat.gz

 52      33686 Feb 24 2019 12:55:26.0000000000 +00:00 core/kernel.rp_RP-EDISON_0_20190224095818.txt

 53  113815429 Feb 24 2019 12:58:18.0000000000 +00:00 core/kernel.rp_RP-EDISON_0_20190224095818.core.flat.gz

 54       4096 Oct 20 2022 21:55:23.0000000000 +00:00 .prst_sync

 55        331 Oct 20 2022 22:03:36.0000000000 +00:00 .prst_sync/log

 56         37 Oct 20 2022 22:05:34.0000000000 +00:00 .prst_sync/reload_history

 57       4096 Oct 28 2017 21:49:41.0000000000 +00:00 .rollback_timer

 58       4096 Oct 20 2022 22:03:36.0000000000 +00:00 dc_profile_dir

 59     281129 Oct 20 2022 22:03:36.0000000000 +00:00 dc_profile_dir/dc_default_profiles.txt

 60     281129 Oct 20 2022 21:55:24.0000000000 +00:00 dc_profile_dir/dc_default_profiles.txt.bkp

 61     410435 Oct 20 2022 22:03:36.0000000000 +00:00 dc_profile_dir/dc_embedded_profiles.txt

 62     410435 Oct 20 2022 22:03:36.0000000000 +00:00 dc_profile_dir/dc_embedded_profiles.txt.bkp

 63       4096 Oct 28 2017 21:49:50.0000000000 +00:00 gs_script

 64     132108 Oct 20 2022 22:03:58.0000000000 +00:00 memleak.tcl

 65          0 Oct 20 2022 22:05:04.0000000000 +00:00 rdope_out.txt

 66         35 Feb 27 2019 16:29:23.0000000000 +00:00 pnp-tech-time

 67      14794 Feb 27 2019 16:29:37.0000000000 +00:00 pnp-tech-discovery-summary

 68        916 Oct 19 2022 17:18:31.0000000000 +00:00 vlan.dat

 69   20097668 Oct 20 2022 21:50:01.0000000000 +00:00 cat3k_caa-guestshell.16.12.08.SPA.pkg

 70       4096 Feb 26 2019 19:18:47.0000000000 +00:00 vman_fdb

 71   32791733 Oct 20 2022 21:50:01.0000000000 +00:00 cat3k_caa-rpbase.16.12.08.SPA.pkg

 72  401236604 Oct 20 2022 21:50:15.0000000000 +00:00 cat3k_caa-rpcore.16.12.08.SPA.pkg

 73    3418756 Oct 20 2022 21:50:15.0000000000 +00:00 cat3k_caa-srdriver.16.12.08.SPA.pkg

 74    2097152 Oct 20 2022 22:18:23.0000000000 +00:00 nvram_config_bkup

 75       4096 Oct 20 2022 22:05:27.0000000000 +00:00 onep

 76       4096 Oct 20 2022 22:05:27.0000000000 +00:00 onep/apps-cli

 77       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store

 78       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file

 79       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file/f

 80       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file/f/fb

 81        211 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file/f/fb/fbdb00b653a3412a841145c1b89a0d2e.cache

 82       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file_lock

 83       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file_lock/3

 84       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file_lock/3/3b

 85          0 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file_lock/3/3b/3b00d2e4d13f1aa79dc0cf3a34b6561175a0fc46.lock

 86       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file_lock/1

 87       4096 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file_lock/1/1b

 88          0 Feb 26 2019 19:20:22.0000000000 +00:00 wnweb_store/container_file_lock/1/1b/1b87628f190693104723d1f22d502c001cb0d7dd.lock

 89       6535 Feb 27 2019 15:54:41.0000000000 +00:00 wnweb.tgz

724692992 bytes available (814882816 bytes used)


Switch#request platform software package clean

This operation may take several minutes...

Running command on switch 1

Cleaning up unnecessary package files

No path specified, will use booted path flash:packages.conf

Cleaning flash:

  Scanning boot directory for packages ... done.

  Preparing packages list to delete ...

    cat3k_caa-guestshell.16.12.08.SPA.pkg

      File is in use, will not delete.

    cat3k_caa-rpbase.16.12.08.SPA.pkg

      File is in use, will not delete.

    cat3k_caa-rpcore.16.12.08.SPA.pkg

      File is in use, will not delete.

    cat3k_caa-srdriver.16.12.08.SPA.pkg

      File is in use, will not delete.

    cat3k_caa-webui.16.12.08.SPA.pkg

      File is in use, will not delete.

    packages.conf

      File is in use, will not delete.

  done.


The following files will be deleted:

[switch 1]:

/flash/packages.conf.00-

Do you want to proceed? [y/n]y

[switch 1]:

Deleting file flash:packages.conf.00- ... done.

SUCCESS: Files deleted.


After the Flash Cleanup:


Switch#dir flash:

Directory of flash:/


38722  -rw-          2097152  Oct 20 2022 22:18:23 +03:00  nvram_config

38726  drwx             4096  Oct 20 2022 21:55:23 +03:00  tech_support

38725  -rw-            12829  Oct 20 2022 11:45:33 +03:00  cfa.text

38765  -rw-               76  Oct 20 2022 22:03:40 +03:00  boothelper.log

38723  drwx             4096  Feb 26 2019 19:18:47 +03:00  virtual-instance

38733  -rw-               66  Oct 20 2022 21:55:44 +03:00  boothelper.old

38766  drwx             4096  Oct 20 2022 22:14:40 +03:00  .dbpersist

38768  -rw-              545  Oct 20 2022 22:05:16 +03:00  rdope.log

38744  -rw-         23020160  Oct 20 2022 21:50:17 +03:00  cat3k_caa-webui.16.12.08.SPA.pkg

38739  -rw-             4780  Oct 20 2022 21:50:21 +03:00  packages.conf

61953  drwx             4096  Oct 20 2022 22:03:19 +03:00  .installer

38729  -rw-              629  Oct 20 2022 22:03:22 +03:00  bootloader_evt_handle.log

69697  drwx             4096  Feb 24 2019 12:58:18 +03:00  core

77441  drwx             4096  Oct 20 2022 21:55:23 +03:00  .prst_sync

   11  drwx             4096  Oct 28 2017 21:49:41 +03:00  .rollback_timer

 7745  drwx             4096  Oct 20 2022 22:03:36 +03:00  dc_profile_dir

 7747  drwx             4096  Oct 28 2017 21:49:50 +03:00  gs_script

38730  -rw-           132108  Oct 20 2022 22:03:58 +03:00  memleak.tcl

38767  -rw-                0  Oct 20 2022 22:05:04 +03:00  rdope_out.txt

38724  -rw-               35  Feb 27 2019 16:29:23 +03:00  pnp-tech-time

38728  -rw-            14794  Feb 27 2019 16:29:37 +03:00  pnp-tech-discovery-summary

38732  -rw-              916  Oct 19 2022 17:18:31 +03:00  vlan.dat

38740  -rw-         20097668  Oct 20 2022 21:50:01 +03:00  cat3k_caa-guestshell.16.12.08.SPA.pkg

46465  drwx             4096  Feb 26 2019 19:18:47 +03:00  vman_fdb

38741  -rw-         32791733  Oct 20 2022 21:50:01 +03:00  cat3k_caa-rpbase.16.12.08.SPA.pkg

38742  -rw-        401236604  Oct 20 2022 21:50:15 +03:00  cat3k_caa-rpcore.16.12.08.SPA.pkg

38743  -rw-          3418756  Oct 20 2022 21:50:15 +03:00  cat3k_caa-srdriver.16.12.08.SPA.pkg

38769  -rw-          2097152  Oct 20 2022 22:18:23 +03:00  nvram_config_bkup

38770  drwx             4096  Oct 20 2022 22:05:27 +03:00  onep

69705  drwx             4096  Feb 26 2019 19:20:22 +03:00  wnweb_store

38747  -rw-             6535  Feb 27 2019 15:54:41 +03:00  wnweb.tgz


1621966848 bytes total (724697088 bytes free)


Monday, August 8, 2022

 

PowerCli Installation

 

Step 1: Run PowerShell as Administrator

Step 2: Change the execution policy to RemoteSigned

PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned

Step 3: Install and Update PowerCLI:

PS C:\Windows\system32> Install-Module -Name VMware.PowerCLI

PS C:\Windows\system32> Update-Module -Name VMware.PowerCLI

Step 4: Verify if the PowerCLI module is available on your system.

PS C:\Windows\system32> Get-Module -Name VMware.PowerCLI –ListAvailable

Step 5: Test

PS C:\Windows\system32> Connect-VIServer -Server IPAddress -User root -Password Pass!

Fix to " Invalid Server Certificate Error "

PS C:\Windows\system32> Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false

 

 

 

Monday, February 21, 2022

Copy a System Image to Another Device

 TFTP Timeout work around:

change  tftp block size value to 1468 or lower.

command in config mode:

ip tftp blocksize 1468


Using SCP in windows 10 powershell:

Other method of copying sytem image to flash: or from one device to another. open link below:

https://www.cisco.com/c/en/us/support/docs/security-vpn/secure-shell-ssh/215450-copy-cisco-ios-images-from-pc-to-router.html

Transferring files using Http or https:
enable http service on the server (image source)
and run below command on the other device you want to upload the image.

copy https://user1:mypassword@209.165.202.129:8080/image_files/c7200-i-mx 
flash:c7200-i-mx

Sunday, December 26, 2021

Installing wireless Ethernet Driver in Debian

 



1. Add the line below to your /etc/apt/sources.list 

deb http://ftp.de.debian.org/debian buster main non-free
2. Launch Synaptic Package Manager search for iwlwifi, mark and apply changes. Restart and test.

Wednesday, December 22, 2021

vSRX initial configuration

 Topology:



1. start the CLI, enter configuration mode.

login: root

root@% cli


root> configure

Entering configuration mode

2. Set the root authentication password.

[edit]

root# set system root-authentication plain-text-password

New password:

Retype new password:



3. Set the host name.

[edit]

root# set system host-name VSRX1


4. Set Management interface IP Address, commit to save configuration.

[edit]
root@VSRX1# set interfaces fxp0.0 family inet address 192.168.100.11/24

[edit]
root@VSRX1# commit
commit complete

5. Send Ping and continue using JWEB.