request app-engine file-copy (crash | log) from-jhost to-vjunos
Syntax
request app-engine file-copy (crash | log) from-jhost host-os-filename to-vjunos vjunos-filename
Description
In Junos OS environments with a host OS, copies
core files (crash option) or system log files (log option) from the host OS to a Junos OS filename.
crashoption—Core files are copied from the directory where the host OS normally stores core files. For example, when the host OS is Linux, the source directory is /var/crash. Theshow app-engine crashcommand displays the list of core files available to copy from the host OS source directory.logoption—Log files are copied from the directory where the host OS normally stores system log files. For example, when the host OS is Linux, the source directory is /var/log. Theshow app-engine logscommand displays the list of system log files available to copy from the host OS source directory.
Either the crash or log option is required.
When the destination Junos OS path for the to-vjunos argument
is a directory, the destination filename is the source filename by
default. To rename the file at the destination, specify a full path
that includes a destination filename in the path with the to-vjunos argument.
Options
from-jhosthost-os-filename—Source filename to copy from the host OS.to-vjunosvjunos-filename—Junos OS destination path (with or without a filename) to which the file is copied. If this path is a directory, the source filename is used as the destination filename by default.
Additional Information
This command does not apply to accessing files on guest virtual machines (VMs) on QFX Series devices that support guest VMs.
Required Privilege Level
view
Output Fields
This command produces no output. To see the results
of the copy operation, you can run Junos OS commands for viewing files,
such as file list with the destination directory, show system core-dumps, or show log.
Sample Output
request app-engine file-copy crash
user@host> request app-engine file-copy crash from-jhost localhost.dcfpe.6449.1454328456.core.tgz to-junos /var/tmp user@host> show system core-dumps re0: -------------------------------------------------------------------------- -rw-r--r-- 1 user test 2538949 Feb 2 19:01 /var/tmp/localhost.dcpfe.6449.1454328456.core.tgz total files: 1
Release Information
Command introduced in Junos OS Release 13.1X51-D10.