Before selling Juniper, Arista or Aruba switches, export serial inventory from the CLI, remove the devices from any cloud or management platform, wipe configs with each vendor's secure-erase command (Junos zeroize, EOS secure erase, AOS-CX erase all zeroize), and rotate secrets the switch knew. Check licence and support terms with the vendor, because they may not transfer.

Key takeaways

  • Capture the inventory first. Once a switch is wiped, you can't read its serials from the CLI.
  • Deleting the startup config isn't a wipe. Use the vendor's secure-erase command, and test it on one unit first.
  • A wipe doesn't rotate your secrets. Servers and peers still trust the old RADIUS, SNMP and routing keys.
  • Don't promise licences or support. Juniper's published policy says they don't transfer, and other vendors may be similar.

How do you export a switch inventory for a buyback quote?

Export chassis, module and transceiver serial numbers with each platform's inventory command, then save them to a CSV alongside model, OS version and your asset tag. Juniper uses show chassis hardware, Arista uses show inventory, and Aruba uses show system and show modules or show inventory depending on the OS. Verify output on one unit first.

PlatformCommandWhat it gives youWatch-outs
Juniper Junosshow chassis hardwareChassis, FPCs, power supplies and transceivers with part and serial numbersVirtual Chassis members each need a record
Arista EOSshow inventory, show versionModules, power supplies, fans, transceivers; system serial and MACDual-supervisor chassis: record both
Aruba AOS-CXConfirm fields on your releaseSystem and module details, serialsConfirm fields on your release
Aruba AOS-Switchshow modules, show system informationChassis and module serialsStack members each need a record

Command output varies by platform and release, so test on one unit and compare it with the vendor guide. Juniper's documentation uses show chassis hardware as the way to list a switch's components and serial numbers.

Add these columns: model, OS version, uptime, asset tag, location, and whether the switch is standalone or part of a stack. List transceivers separately, because buyers often price them separately. For units you can't log in to, read the serial from the label.

How do you factory-reset and wipe each switch?

Use each vendor's secure-erase command, not just a config delete: Junos request system zeroize (media option where supported), Arista reset system storage secure from the serial console, and AOS-CX erase all zeroize. Confirm the switch boots to factory defaults, and treat stacks, dual supervisors and virtual chassis as separate wipes.

PlatformCommandWhat it doesGotchas
request system zeroize / request system zeroize mediarequest system zeroize / request system zeroize mediaRemoves configuration and resets key values; media option erases user dataMedia option slower; not on QFX in the docs I reviewed; clusters and VC need per-node runs
Aristareset system storage secureSecurely erases flash and optional SSDSerial console only; leaves switch in Aboot; EOS image must be reinstalled
Aruba AOS-CXerase all zeroizeErases customer data and resets to factory defaultsAruba AOS-Switch
Aruba AOS-Switcherase startup-config, erase allRemoves config; reset to defaultsConfirm key and certificate removal

Juniper Junos

Log in through the console as root. Juniper's documentation says request system zeroize removes all configuration and resets key values, and the media option erases user-created data so it can't be recovered. The media operation takes much longer, and the system reboots and may not boot without a configuration.

Three things to check for your platform:

  • Documentation for older releases says the media option isn't available on QFX. Check your release.
  • Disaggregated platforms may need request vmhost zeroize to cover the host OS, according to the CIS Juniper benchmark.
  • In clusters, HA and Virtual Chassis, the media command may run only on the local node, so run it on each device.

The CIS benchmark describes the media option as equivalent to NIST's Clear level, not Purge. That's usually fine for resale, but it's a policy decision.

Arista EOS

Arista's secure erase documentation describes reset system storage secure, which erases the flash and optional SSD. Key points:

  • Connect via serial console first. The command leaves the switch in Aboot.
  • EOS and boot-config are removed. You must reinstall the EOS image and a boot configuration afterwards.
  • It can take up to an hour.
  • Dual supervisors: run it on the standby supervisor, or with redundancy disabled.
  • Console log storage: some switches have a dedicated console-logging device that isn't securely erased.
  • It's best effort. Arista states that no non-destructive mechanism can guarantee the destruction of all data on a storage device.

Newer EOS releases add a rollback variant that preserves selected files, so the switch returns to EOS after the wipe. If you resell, tell the buyer whether you reinstalled an image.

Aruba AOS-CX and AOS-Switch

On AOS-CX, erase all zeroize is the full reset, and HPE's Aruba Central documentation recommends it over erase startup-config. For a VSF stack, HPE's procedure is to disable Central on the switch, delete the stack from Central, then run erase all zeroize on the conductor. One community report notes a VSF configuration persisting after a zeroize, so check the result on every member.

On AOS-Switch, erase startup-config clears the configuration, and the console route offers erase all. Reseller guidance advises deleting SSH and SSL keys manually if needed. Confirm against HPE's current guide. Don't rely on the front-panel Reset or Clear buttons, which reset the switch or passwords and don't wipe stored data.

What do you remove before wiping: cloud, licences and secrets?

Remove the switch from cloud and management platforms first, then wipe, then rotate every secret it held: RADIUS and TACACS+ keys, SNMP credentials, routing authentication keys, certificates and API tokens. A wipe clears the switch, but peers and servers still trust those secrets until you change them.

Before the wipe:

  • Remove cloud registration. Check CloudVision (Arista), Mist (Juniper) and Aruba Central or HPE GreenLake device inventory, and release any subscription tied to the unit.
  • Keep your own backup of the configuration in secure storage, and never hand it to the buyer.
  • Capture the inventory (above).

After the wipe, rotate on the other side:

  • RADIUS and TACACS+ shared secrets on the servers
  • SNMPv2 community strings and SNMPv3 users on the monitoring system
  • BGP, OSPF and other routing authentication keys on the neighbours
  • SSH and TLS certificates issued to the switch
  • Any API tokens or automation credentials

Do licences and support transfer when you resell a switch?

Often not. Juniper's published gray market policy says Junos software is licensed to the original purchaser and non-transferable without written permission, and support contracts don't transfer from the original owner. Check Arista and Aruba terms before telling a buyer anything, and cancel or co-term your own support after the sale.

Juniper's policy also describes a software licence re-registration fee for buyers who want support. Don't describe a used switch as "supported" or "licensed" unless the vendor confirms it. I haven't verified Arista's or Aruba's resale terms, so check them directly.

When should you destroy a switch instead of reselling it?

Destroy the unit when you can't complete or verify a wipe, or when your data classification says non-destructive erasure isn't enough. Fixed-configuration switches keep their flash on the board, so destruction means the whole unit or the storage device.

SituationRoute
Wipe completes and result is verifiedResale
No console access, unknown credentials, failed eraseVendor recovery, or destruction
Dual supervisor where erase can't runResale only after each supervisor is erased
High-sensitivity network and policy requires destructionDestroy storage or the unit
Console log storage on a device that can't be erasedDestroy, or accept the residual risk in writing

Our SAN array guide applies the same shred-or-resell logic to storage.

What mistakes slow down a switch buyback?

The usual mistakes are wiping before capturing the inventory, deleting only the startup config, forgetting stack members and transceivers, leaving cloud registrations, and leaving a buyer a switch with no OS image. Most cost days, not hours.

  • Wiping first, then discovering you need serials.
  • Config delete only, which leaves logs, keys and stored data.
  • Stacks wiped as one unit, leaving member configs behind.
  • Cloud registration left in place, so the switch phones home to your account.
  • EOS image not reinstalled after an Arista secure erase, so the box won't boot.
  • No wipe log, so you can't show what was done to which serial.
  • Secrets not rotated on servers and neighbours.
  • Missing fan trays or power supplies that change the quote.

How do you prepare a bulk switch handover?

Capture the inventory, remove cloud registrations, run and verify each wipe, rotate secrets, then pack by serial and reconcile at handover. Keep a wipe log per serial, and agree access and loading-bay timing in advance.

  1. Export the inventory for every switch, including transceivers.
  2. Mark stacks, VC and VSF members, and any dual-supervisor chassis.
  3. Back up each configuration in secure storage.
  4. Remove cloud and management registrations.
  5. Run the vendor's secure-erase command on each unit and member.
  6. Verify the result and record it in a log per serial.
  7. Reinstall an OS image where the buyer needs one, or tell them it's not included.
  8. Rotate secrets on servers, monitoring and neighbours.
  9. Book access: loading bay, goods lift, gate passes and RAMS if racks are involved.
  10. Reconcile serials at handover and file the log and signed list.

Next step

If you're retiring Juniper, Arista or Aruba switches, send us the model list, quantities, stack details and any support status. We'll confirm what we can buy, what needs inspection, and the access and records requirements before we quote. WhatsApp +971 58 903 8823 or email info@mahrecycling.ae to arrange a site inspection. See our page on server and network equipment buyback in the UAE .

About this guide

Written by: MAH Sustainability Team. Last reviewed: 28 November 2026.

Based on: Juniper's request system zeroize documentation and gray market policy, Arista's secure erase manual and technical notes, HPE Aruba Central documentation, and the CIS Juniper benchmark.

Limits: Command names, options and output change by platform and release, so test on a lab unit and check the current vendor guide. I verified Juniper and Arista behaviour in vendor documentation. Aruba AOS-Switch details rely partly on community and reseller guidance. This isn't security or legal advice.