How to use USB to import files with JUNIPER switches
Time: 2025-06-06
JUNIPER switch provides USB interface, which can be used for system upgrade or data storage and transfer, such as backing up switch configuration files, log files, etc. You can also import new configuration files or script files for automated configuration of the switch, monitoring, troubleshooting, and so on. To use USB to import files to JUNIPER switch, you need to mount USB first.
The following shares how to use USB to import files based on specific cases.
Table 1 Parameter Description
Item | Description |
Switch Model | QFX5120-32C-AFI |
Import file name | testoptical.sh |
USB file path | /dev/da0p1 |
Mount Path | /mnt/usb1 |
File import storage path | /var/tmp |
I. How to mount USB on JUNIPER switch
1. Enter ls / to view the files in the switch, where dev contains all the device files of the switch.
2. Execute cd /mnt/ to enter the mnt folder; execute mkdir usb1 to create a usb1 folder for subsequent mounting.
3. The implementation of mount_msdosfs /dev/da0p1 /mnt/usb1, the USB to the switch, USB file path /dev/da0p1, mount path is /mnt/usb1, enter ls /mnt/usb1, to see whether the mount is successful.
II. the file is imported into the JUNIPER switch via USB
1. Execute cp /mnt/usb1/testoptical.sh /var/tmp to import the file into the switch; the file storage path is /var/tmp.
2. Execute cd /var/tmp to enter the tmp folder; enter ls | grep test to check whether the file is imported successfully, test is the keyword to retrieve the imported file testoptical.sh.
3. Execute umount /dev/da0p1 to unmount; input df -h to see if the unmount is successful.
Moduletek Limited can provide optical module products compatible with JUNIPER switches.
If you have any questions about the above content, you can contact us by Email : web@moduletek.com.