Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Problem
Description: You have collected logs on your device and need to send them to Juniper Networks Technical
Support. This topic shows you how to compress the logs into a single le for each Routing Engine to more
conveniently send the logs.
Solution
You can compress all the log les in the /var/log directories of the master and backup (if present)
Routing Engines into a single tgz le for each Routing Engine, which enables you to send the logs to JTAC
in a convenient package. You can use either the CLI or the command shell to perform these tasks; because
of its ease of use, only the CLI version is shown here.
1. Access the device through the management IP address or console, typically on the master Routing Engine, RE0.
user@host>
2. Archive and compress all the log les on RE0 and put them in /var/tmp.
user@host>filearchivecompresssource/var/log/*destination/var/tmp/re0.tgz
/usr/bin/tar:Removingleading`/'frommembernames
4. Log in to the backup Routing Engine, RE1, and access the CLI.
Note: 1 is appended to the hostname in the prompt to signify that you are on RE1.
user@host>requestroutingengineloginbackup
%cli
user@host11>
5. Archive and compress all the log les on RE1 and put them in /var/tmp.
user@host1>filearchivecompresssource/var/log/*destination/var/tmp/re1.tgz
/usr/bin/tar:Removingleading`/'frommembernames
jinstall12.220120328.0domesticsigned.tgz
krt_gencfg_filter.txt
preinstall_boot_loader.conf
re1.tgz
rtsdb
secdownload
vi.recover
%
7. Exit the remote login to the backup Routing Engine to return to the master Routing Engine. Note that the previously
appended 1 is removed from the hostname in the prompt to signify that you are back on RE0.
user@host1>exit
rlogin:connectionclosed
user@host1>
10. Copy the les directly from the master Routing Engine to any local host using FTP, SCP, JWEB, or (on some devices) a
mounted USB.
Related Documentation
MX Series
Collecting Subscriber Access Logs Before Contacting Juniper Networks Technical Support
Modied: 20150326
http://www.juniper.net/techpubs/en_US/junos15.1/topics/task/troubleshooting/troubleshootinglogscompressing.html 2/2