- Enter the shell as root:
user@switch> start shell user root Password: root@switch%
- Before inserting the USB device, perform the following:
root@% ls /dev/da* /dev/da0 /dev/da0s1c /dev/da0s2a /dev/da0s3 /dev/da0s3e /dev/da0s1 /dev/da0s1f /dev/da0s2c /dev/da0s3c /dev/da0s1a /dev/da0s2 /dev/da0s2f /dev/da0s3d
- Insert the USB drive in the USB port. The following output will be displayed:
root@% umass1: TOSHIBA TransMemory, rev 2.00/1.00, addr 3 da2 at umass-sim1 bus 1 target 0 lun 0 da2: <TOSHIBA TransMemory 5.00> Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: 983MB (2013184 512 byte sectors: 64H 32S/T 983C) root@% ls /dev/da* /dev/da0 /dev/da0s1c /dev/da0s2a /dev/da0s3 /dev/da0s3e /dev/da0s1 /dev/da0s1f /dev/da0s2c /dev/da0s3c /dev/da2 /dev/da0s1a /dev/da0s2 /dev/da0s2f /dev/da0s3d /dev/da2s1
- Create a directory for the USB drive to mount to:
root@% mkdir /var/tmp/usb
- Mount the USB drive to the /var/tmp/usb directory:
root@% mount_msdosfs /dev/da2s1 /var/tmp/usb root@% ls /var/tmp/usb images.tgz
- Copy any of the USB files to the /var/tmp/usb directory:
root@% cp /var/tmp/usb/images.tgz /var/tmp root@% ls /var/tmp images.tgz
- Now unmount the USB drive after the file is completely copied:
root@% umount /var/tmp/usb root@% umass1: at uhub0 port 1 (addr 3) disconnected (da1:umass-sim1:1:0:0): lost device (da1:umass-sim1:1:0:0): removing device entry umass1: detached
Friday, 28 October 2016
Junos Copy files from USB Stick to Juniper Switch/Router
The following procedure allow users to mount a USB device on EX/J/SRX/MX devices. This can be helpful if network connectivity is unavailable and you need to copy files to or from the device.
Subscribe to:
Post Comments (Atom)
Juniper Troubleshooting Commands
TROUBLESHOOTING set cli timestamp (logs timestamp on cli for all commands you run. Very useful) show system uptime show chass...
-
Login with "root" account > file copy ftp://(TFTP IP Address or Hostname)/ex4300/jinstall-ex-4300-14.1X53-D40.8-domestic-sign...
-
The following procedure allow users to mount a USB device on EX/J/SRX/MX devices. This can be helpful if network connectivity is unavailabl...
-
If a client assigns an IP Address via a DHCP Relay all initial DISCOVERY, OFFER, REQUEST and ACK udp packets are broadcast between the Clien...
No comments:
Post a Comment