Вы находитесь на странице: 1из 4

SOLUTION:

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.

1. Enter the shell as root:


2. user@switch> start shell user root
3. Password:
4. root@switch%

#########################################################################
### si no se tiene user root ingresar con usuario local y definirlo ###
###
### user@switch>edit
### user@switch# set system root-authentication plain-text-password
### user@switch# New password:
#########################################################################

5. Before inserting the USB device, perform the following:


6. root@% ls /dev/da*
7. /dev/da0 /dev/da0s1c /dev/da0s2a /dev/da0s3 /dev/da0s3e
8. /dev/da0s1 /dev/da0s1f /dev/da0s2c /dev/da0s3c
9. /dev/da0s1a /dev/da0s2 /dev/da0s2f /dev/da0s3d

10. Insert the USB drive in the USB port. The following output will be displayed:
11. rootstr@% umass1: TOSHIBA TransMemory, rev 2.00/1.00, addr 3
12. da2 at umass-sim1 bus 1 target 0 lun 0
13. da2: <TOSHIBA TransMemory 5.00> Removable Direct Access SCSI-0
device
14. da2: 40.000MB/s transfers
15. da2: 983MB (2013184 512 byte sectors: 64H 32S/T 983C)

16. root@% ls /dev/da*


17. /dev/da0 /dev/da0s1c /dev/da0s2a /dev/da0s3 /dev/da0s3e
18. /dev/da0s1 /dev/da0s1f /dev/da0s2c /dev/da0s3c /dev/da2
19. /dev/da0s1a /dev/da0s2 /dev/da0s2f /dev/da0s3d /dev/da2s1

Note: '/dev/da2s1' is the USB drive. #### tambien puede salir /dev/da1s1'

20. Create a directory for the USB drive to mount to:


21.
root@% mkdir /var/tmp/usb

22. Mount the USB drive to the /var/tmp/usb directory:


23.
24. root@% mount_msdosfs /dev/da1s1 /var/tmp/usb
25. root@% ls /var/tmp/usb
26. images.tgz

Note: 'ls /var/tmp/usb' will show all the files in the USB drive.
27. Copy any of the USB files to the /var/tmp/usb directory:
28. root@% cp /var/tmp/usb/images.tgz /var/tmp
29. root@% ls /var/tmp
images.tgz
The images.tgz file from the USB is successfully copied to the /var/tmp directory.

30. Now unmount the USB drive after the file is completely copied:
31. root@% umount /var/tmp/usb
32. root@% umass1: at uhub0 port 1 (addr 3) disconnected
33. (da1:umass-sim1:1:0:0): lost device
34. (da1:umass-sim1:1:0:0): removing device entry
umass1: detached

Escribir CLI

########## validar que este el JUNOS en carpeta tmp

root> file list /cf/var/tmp o file list /var/tmp

/cf/var/tmp:
cleanup-pkgs.log
eedebug_bin_file
gksdchk.log
gres-tp/
idp_license_info
install/
junos-srxsme-12.1X45-D10-domestic.tgz*
kmdchk.log
krt_gencfg_filter.txt
pics/
policy_status
rtsdb/
sec-download/
spu_kmd_init
usb/
vi.recover/
vpn_tunnel_orig.id

root>

root> request system software add /var/tmp/junos-srxsme-12.1X45-D10-


domestic.tgz no-valide no-copy
VALIDAR EQUIPO SISTEMAS OPERATIVOS CARGADOS

root@SRX> request system snapshot slice alternate


It will look as below:

{primary:node0}[edit]
root@1# run request system snapshot slice alternate ?
Possible completions:
<[Enter]> Execute this command
factory Include only files shipped from factory in
snapshot
media Media to snapshot to
partition Partition the media
| Pipe through a command

{primary:node0}[edit]
root@1# run request system snapshot slice alternate
node0:
-------------------------------------------------------------------------
-
Formatting alternate root (/dev/ad0s1a)...
Copying '/dev/ad0s2a' to '/dev/ad0s1a' .. (this may take a few minutes)
The following filesystems were archived: /

node1:
-------------------------------------------------------------------------
-
Formatting alternate root (/dev/ad0s2a)...
Copying '/dev/ad0s1a' to '/dev/ad0s2a' .. (this may take a few minutes)
The following filesystems were archived: /

It will take a while then you can check the version of the backup software by executing the following command:

root@SRX> show system software backup

Note : The above will not work or show the following error if you do not have dual partitions:
Error: usb media missing or invalid
Kindly execute the following command to check the internal partition:
root@SRX> show system snapshot media internal
root@SRX> show system software backup

#### SI hay que instalar por JUNOS por TFTP

Ip server 192.168.1.123

Ip de Junos puerto 0/0 192.168.1.203

Crear el directorio de Montaje

root@% mkdir /var/tmp/usb


Montar USB al directorio

root@% mount –t msdosfs /dev/da0s1 var/tmp/usb

Verifique que la USB este montado en el dsipositivo

root@% pwd

/cf/root

root@% cd /var/tmp/usb

root@% pwd

/cf/var/tmp/usb

root@% ls

junos-jsr-11.4R5.7-export.tgz

file checksum md5 /var/tmp/nomrbe de archivo...

request system storage cleanup

request system snapshot slice alternate

request system reboot all-members

Вам также может понравиться