SRX

last person joined: 6 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  move file(s) to /var/tmp (SRX210)

    Posted 05-23-2010 02:52

    Hello? everyone

    I've configured HA using by SRX-210 (2EA)

    But two version different so that i upgraded one of them to junos-9.6R2.11-domestic.

     

    I'd like to [junos-9.6R2.11-domestic] to var/tmp by shell prompt.

    But it didnt move to them.

    I welcome any your advices.

     

    The information as the below;

     

    root@% ls
    boot            kernel          packages        usr
    dev             kernel.old      root            var
    etc             opt             sbin
    root@% cd packages
    root@% ls -al
    total 336948
    drwxr-xr-x   3 root  wheel        512 May 23 17:25 .
    drwxr-xr-x  11 root  wheel        512 May 23 16:58 ..
    lrwxr-xr-x   1 root  wheel         23 May 23 16:58 junos -> junos-9.6R2.11-domestic
    -rw-r--r--   1 930   930    172436462 Oct  6  2009 junos-9.6R2.11-domestic
    -rw-r--r--   1 930   930           33 Oct  6  2009 junos-9.6R2.11-domestic.md5
    -rw-r--r--   1 930   930           41 Oct  6  2009 junos-9.6R2.11-domestic.sha1
    lrwxr-xr-x   1 root  wheel         20 Jul 14  1970 junos.old -> junos-9.5R1.8-export
    drwxr-xr-x   2 root  wheel        512 Jul 14  1970 mnt
    root@% mv junos-9.6R2.11-domestic var/tmp
    mv: rename junos-9.6R2.11-domestic to var/tmp: No such file or directory
    root@% mv junos-9.6R2.11-domestic /var/tmp
    mv: rename junos-9.6R2.11-domestic to /var/tmp/junos-9.6R2.11-domestic: Operation not permitted
    root@%

     

    2. If I have to move JUNOS package to /var/tmp do i should move all of them such as [ junos-9.6R2.11-domestic], [ junos-9.6R2.11-domestic.sha] and [ junos-9.6R2.11-domestic.md5]?

     

     

    Thank you

     

    Best Regards

     

    Jeff D. LEE

     

     

     

     

     



  • 2.  RE: move file(s) to /var/tmp (SRX210)

    Posted 05-23-2010 08:21

    my shell ls -al on /var/tmp/ shows the file with a .tgz as downloaded.  I believe the sha and md5 are just to run against your file to ensure you downloaded the correct one.

     

    % ls -al

    -rw-r--r--   1 admin  wheel  159383948 Nov 17  2009 junos-srx3000-9.6R2.11-domestic.tgz



  • 3.  RE: move file(s) to /var/tmp (SRX210)
    Best Answer

    Posted 05-23-2010 21:04

    Hi Jonny,

     

    Moving files from 'packages' directory to /var/tmp is not the right way to backup your image or use it for another installation. Moreover, 'moving' stuff (as against copying stuff) away from 'packages' directory can damage your router and leave it non-bootable. That is because some system files *MUST* exist in *THAT* directory. We do have some protection mechanisms, and that may be preventing you from actually moving stuff.

     

    What is your ultimate goal behind copying the files from 'packages' to /var/tmp? Maybe I can suggest a safe way of doing the same from CLI.

     

    Also, I highly recommend doing an 'ls' under 'packages' and ensuring that all the stuff that was there before is still there. If something actually got moved out then the router may not boot the next time.

     

    Regards,

    Kaustav Chakravorty



  • 4.  RE: move file(s) to /var/tmp (SRX210)

    Posted 05-28-2010 01:02

    Thank you Kaustav.

    It is very helpful to understand it

     

    Jeff