Routing

 View Only
last person joined: 4 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  large tgz file

     
    Posted 05-13-2020 05:34

    hi all,

    Which open source program/tool can be used to open or extract the tgz compressed archive file  var/log/* 



  • 2.  RE: large tgz file

     
    Posted 05-13-2020 05:38

    Hi,

    depends largely on the OS:

    - on Windows 7zip

    - on any unix-like (MAC, Linux, ...) tar (on the CLI)

    Regards

    Ulf



  • 3.  RE: large tgz file

     
    Posted 05-13-2020 05:42

    Hi Arix,

     

    If you are woring on a UNIX or LINUX servers there is no need for a tool. You can use below command to extract the files.

     

    >tar -xvf <file_name.tgz>

     

    Or you can use winzip to extarct the files.

     

     

     

    If this solves your problem, please mark this post as "Accepted Solution" so we can help others too

     

    Kudos are appreciated too 

     

     

    Regards,

    Nadeem

     



  • 4.  RE: large tgz file

     
    Posted 05-13-2020 06:15

    Thanks...

     

    Another qs:

    Why I can't copy the tgz files from junos device to my pc over winSCP. Any txt files are okay but .tgz no.... not allowed me to copy, permission deny...what should I do?



  • 5.  RE: large tgz file

     
    Posted 05-13-2020 06:24

    Can you please do a "file list detail </path/filename>" on the JUNOS device? Maybe the different files have different permissions?



  • 6.  RE: large tgz file

     
    Posted 05-13-2020 06:33

     

    > file list detail /var/tmp/LastVarLog.tgz
    -rw------- 1 xxxxxxxx wheel 104550044 Mar 11 55:13 /var/tmp/LastVarLog.tgz

     

    when generating tgz compress archive file, how to make sure all can open/read /write?

     

    Another qs:

    When examining the RSI, what key thing(s) can be looked at and how? Using the ctrl+F or?



  • 7.  RE: large tgz file

    Posted 05-13-2020 06:37

    Arix, 

    Please try

     

    > start shell user root

    Enter password

    cd /var/tmp

    chmod 777 LastVarLog.tgz

     

    Regards, 

    Sharat



  • 8.  RE: large tgz file
    Best Answer

     
    Posted 05-13-2020 07:01

    @Arix wrote:

    when generating tgz compress archive file, how to make sure all can open/read /write?

    foo@host> file list detail test_file
    -rw------- 1 foo bar 61 May 13 15:58 /var/home/foo/test_file

     

    foo@host> file change-permission test_file permission go+r

     

    foo@host> file list detail test_file
    -rw-r--r-- 1 foo bar 61 May 13 15:58 /var/home/foo/test_file



  • 9.  RE: large tgz file

    Posted 05-13-2020 06:32

    Arix, 

     

    Can you share the error screenshot.

    Also, are you logged in as root on the Junos ? What class does the user you have belong to ? 

     

    Regards, 

    SHarat



  • 10.  RE: large tgz file

    Posted 05-13-2020 05:51

    Hey Arix, 

     

    I would recommend you use the linux command:    tar  -zxvf  <filename>.tgz
    Also, refer this for some faster speed: 

    https://stackoverflow.com/questions/32806589/how-to-speed-up-the-extraction-of-a-large-tgz-file-with-lots-of-small-files

     

    Regards, 

    Sharat