This article outlines the process of utilizing the Mist Remote Shell to manage SSH connections and perform a factory reset on an EX switch without releasing it from the Mist UI.
When adopting the Switches using ZTP, the switches might not connect to the Mist cloud.
The solution is to do a zeroize to the Switch.
Refer: https://www.juniper.net/documentation/us/en/software/junos/junos-install-upgrade/topics/topic-map/zero-touch-provision.html
Without physical console access, troubleshooting becomes severely limited, relying solely on alternative remote management methods, if available.
Phone home service will not be available to complete the ZTP.
Accessing Mist Remote Shell:
Disabling the Protect_re Filter:
protect_re
192.168.2.0/24
Establishing SSH Connection:
Zeroizing the Switch:
request system zeroize
Automatic Re-ZTP:
Note: From any upstream/downstream device you can SSH to the ZTP switch that you want to zeroize.