Controllerless Networks

 View Only
Expand all | Collapse all

"Reset", "Clear all" and "factory_reset" Difference?

This thread has been viewed 85 times
  • 1.  "Reset", "Clear all" and "factory_reset" Difference?

    Posted May 08, 2023 12:00 AM

    Hi,

    May I know what's the difference between "Reset", "Clear all" and "factory_reset" in console if we want to completely reset the IAP? Will they also erase the OS image, thus requiring  flashing image from console? Thanks



  • 2.  RE: "Reset", "Clear all" and "factory_reset" Difference?

    Posted May 08, 2023 11:01 AM


    Note:
    These commands vary with IAP versions, image handling can vary with older AP models (prior to the UAP introduction with AP-315)

    According to the Instant User Guide 8.7:

    write erase - deletes the configuration, may not delete the AP specific configuration, depending on the IAP version.
    clear - clears various operational parameters
    factory_reset - clears configuration, DRT, cerftificates, and one of the 2 images.

    Completely resetting the IAP requires the factory_reset method, but once the IAP boots from the 2nd partition which is preserved during the factory reset, the expectation
    is that it will be operational and available for normal upgrade or downgrade. Subsequent IAP image upgrades will be installed on the partition 0.

    Details:
    An AP can be reset to factory default configuration by pressing its reset button for more than 5 seconds
    while the AP is operational. Aruba Instant allows you to disable AP factory reset while the AP is operational.

    Page 19 contains the process for factory reset from the console, apboot mode.

    apboot> factory_reset
    apboot> setenv disable_prov_ssid 1
    apboot> saveenv
    apboot> reset

    Resetting a Remote AP or Campus AP to an Instant AP  (page 500) 
    The reset knob located on the rear of an Instant AP can be used to reset the Instant AP to factory default
    settings.

    Page 437 describes resetting an IAP through airwave.

    "On resetting the Instant AP device from AirWave, all the configuration values will be set to default
    except for the per-ap-settings and VC Key value."

    The Instant CLI Reference Guide, around page 1175 describes the "write" CLI command:

    write {erase [all]|memory|terminal}
    erase <all> <reboot>
    Erases the running system configuration file. Rebooting the Instant AP resets it to the factory default configuration. If you
    specify all, the configuration and all data in the Instant AP databases are erased.

    the clear CLI command is included on page 90, and allows one to selectively clear operational data.
    clear
    airgroup {blocked-queries|blocked-service-id}
    ap-env-backup
    ap-env-current
    arp <ip>
    captive-portal <logo>
    cluster-security {connections|peers|stats}
    core-file
    datapath {session|session-all|statistics}
    debug <ap>
    trace {ip|mac}

    The unlisted "all" option includes all selections if the IAP version allows this option.

    page 346 covers the "reset drt" command, used to clear only the DRT  data and reset to the default version embedded in the OS image.
    reset drt

    Reload command simply reboots the Instant IAP

    The factory_reset CLI command or the apboot commands will delete the OS image from the 1st partition, and reboot from the 2nd, which should leave the IAP
    operational using that image. It could then be upgraded as needed.

    additional helpful apboot commands:
    osinfo
    printenv os_partition
    dhcp

    Helpful CLI commands:
    show image version
    show ap-env
    switch-partition-reboot
    clear ap-env-current                                                            
    clear ap-env-backup

    Lab example - This IAP shows
    apboot> osinfo                                                                  
    Partition 0:                                                                    
        image type: 0                                                               
      machine type: 46                                                              
              size: 19007052                                                        
           version: 8.10.0.2-8.10.0.2                                               
      build string: ArubaOS version 8.10.0.2-8.10.0.2 for Vela (jenkins@pr-hpn-cd-b2
             flags: Instant preserve 0120                                           
               oem: aruba                                                           
                                                                                    
    Image is signed; verifying checksum... passed                                   
    SHA2 Signature available                                                        
    Signer Cert OK                                                                  
    Policy Cert OK                                                                  
    RSA signature verified using SHA2.                                              
                                                                                    
    Partition 1:                                                                    
        image type: 0                                                               
      machine type: 46                                                              
              size: 13846960                                                        
           version: 6.5.1.5-4.3.1.7                                                 
      build string: ArubaOS version 6.5.1.5-4.3.1.7 for Vela (p4build@lemnos) (gcc 7  <------- AOS controller-based image
             flags: Instant preserve                                                
               oem: aruba            





    ------------------------------
    Shawn Adams
    ------------------------------