Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
How to Configure the NFX150
Table of Contents Expand all
list Table of Contents
file_download PDF
keyboard_arrow_right

Supporting File Transfer from USB on NFX Series Devices

date_range 24-Nov-23

Starting from Junos OS Release 21.1R1, you can transfer VNF images, NFX software, or any user scripts from USB to NFX devices by enabling the USB pass-through feature. By default, the USB pass-through feature is disabled.

Note:

Built-in LTE functionality does not work after you enable the USB pass-through feature.

To enable USB pass-through to Junos and mount a USB:

  1. Log in to the JCP CLI and enter configuration mode:
    content_copy zoom_out_map
    root@host% cli
    root@host> configure
  2. Configure the USB pass-through feature:
    content_copy zoom_out_map
    root@host# set system services usb-pass-through
    root@host# commit
  3. Restart the device to enable the USB pass-through feature.
  4. Verify whether the USB pass-through feature is enabled:
    content_copy zoom_out_map
    root@host# run show system services usb-pass-through

    USB pass through Information

    -------------------------------------

    Mode: Enabled

  5. Mount a USB device on an NFX device. This is helpful if network connectivity is unavailable and you need to copy files to or from the device.
    Note:

    It is recommended to use a USB with the FAT32 format.

    Enter the shell prompt as a root user:

    content_copy zoom_out_map
    root@host>
    root@host> start shell user root
    Password: 
    root@host%
  6. Before inserting the USB device, perform the following:
    content_copy zoom_out_map
    root@host:~ # ls -l /dev/da*
    ls: No match.
  7. Insert the USB drive in the USB port. An output similar to the following is displayed:
    content_copy zoom_out_map
    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 -l /dev/da*
            crw-r-----  1 root  operator  0x93 Feb  4 04:22 /dev/da0
            crw-r-----  1 root  operator  0x94 Feb  4 04:22 /dev/da0p1
    
    In the sample output, /dev/da0p1 is the USB drive. If the device supports multiple USBs, use the right file that is corresponding to the attached USB. If the console session is not available while inserting the USB, check the messages var log file for logs related to da (for example, show log messages | match da). It logs the same four lines as shown on console if the USB is inserted.
  8. Create a directory for the USB drive to mount to:
    content_copy zoom_out_map
    root@host% mkdir /var/tmp/usb
  9. Mount the USB drive to the /var/tmp/usb directory:
    Note:

    ls /var/tmp/usb directory shows all files that are present in the USB drive.

    content_copy zoom_out_map
    root@host% mount_msdosfs /dev/da0p1 /var/tmp/usb
    root@host% ls /var/tmp/usb
    images.tgz
  10. Unmount the USB drive after the file is completely copied:
    content_copy zoom_out_map
    root@host% umount /var/tmp/usb
external-footer-nav