28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

J-series filesystems on a device connected to the router’s USBport or, for J4300 and<br />

J6300 routers, on a removable compact flash disk.<br />

You can take a snapshot of the software at any time, but you should always do so<br />

before installing a new JUNOS software version so that you can recover to a known,<br />

stable environment in case something goes wrong when you load the software. You<br />

should also always take a snapshot after you have successfully loaded a new version<br />

of the software.<br />

Before installing a new software package, you can use the request system storage<br />

cleanup command to remove older files to free up space in the filesystem. This command<br />

deletes any rotating logfiles in /cf/var/log that are not current files in /cf/var/tmp<br />

that have not been modified in the last two days and all crashfiles in /cf/var/crash.<br />

Before you delete files in the directories, you can use the file list command to<br />

check what they contain:<br />

aviva@RouterA> file list detail /cf/var/tmp<br />

/cf/var/tmp:<br />

total 28<br />

-rw-r--r-- 1 root wheel 6379 Nov 3 00:10 cleanup-pkgs.log<br />

drwxrwxrwx 2 root wheel 512 Apr 15 2005 install/<br />

-rw-r----- 1 root wheel 2492 Nov 3 00:10 sampled.pkts<br />

aviva@RouterA> file list detail /cf/var/log/messages*<br />

-rw-rw-r-- 1 root wheel 65 Nov 3 00:06 /cf/var/log/messages<br />

-rw-rw---- 1 root wheel 2587 Nov 3 00:06 /cf/var/log/messages.0.gz<br />

-rw-rw-r-- 1 root wheel 21746 Apr 16 2005 /cf/var/log/messages.1.gz<br />

-rw-rw---- 1 root wheel 12381 Dec 9 2004 /cf/var/log/messages.10.gz<br />

-rw-rw-r-- 1 root wheel 11066 Apr 9 2005 /cf/var/log/messages.2.gz<br />

-rw-rw-r-- 1 root wheel 12844 Feb 24 2005 /cf/var/log/messages.3.gz<br />

-rw-rw-r-- 1 root wheel 8751 Feb 18 2005 /cf/var/log/messages.4.gz<br />

-rw-rw---- 1 root wheel 12280 Feb 17 2005 /cf/var/log/messages.5.gz<br />

-rw-rw---- 1 root wheel 11486 Feb 10 2005 /cf/var/log/messages.6.gz<br />

-rw-rw---- 1 root wheel 44407 Feb 8 2005 /cf/var/log/messages.7.gz<br />

-rw-rw---- 1 root wheel 22260 Dec 10 2004 /cf/var/log/messages.8.gz<br />

-rw-rw---- 1 root wheel 18618 Dec 9 2004 /cf/var/log/messages.9.gz<br />

total 12<br />

The show log command is another way to find out when logfiles were last modified:<br />

aiva@RouterA> show log<br />

messages Size: 65, Last changed: Nov 03 00:06:10<br />

messages.0.gz Size: 2587, Last changed: Nov 03 00:06:10<br />

messages.1.gz Size: 21746, Last changed: Apr 16 2005<br />

messages.10.gz Size: 12381, Last changed: Dec 09 2004<br />

messages.2.gz Size: 11066, Last changed: Apr 09 2005<br />

messages.3.gz Size: 12844, Last changed: Feb 24 2005<br />

messages.4.gz Size: 8751, Last changed: Feb 18 2005<br />

messages.5.gz Size: 12280, Last changed: Feb 17 2005<br />

messages.6.gz Size: 11486, Last changed: Feb 10 2005<br />

messages.7.gz Size: 44407, Last changed: Feb 08 2005<br />

messages.8.gz Size: 22260, Last changed: Dec 10 2004<br />

messages.9.gz Size: 18618, Last changed: Dec 09 2004<br />

Backing Up Filesystems on J-Series Routers | 47<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!