request vmhost file-copy
Syntax
request vmhost file-copy from-jnode filename{ (crash | log); to-vjunos directory filename; } invoke-on;
Description
Copy crash files or log files from the host OS to Junos OS. You can use these files for analysis and debugging purposes.
Options
crash |
Files in /var/crash on the host. |
from-jnode filename |
Name of the host file to be copied. |
log |
Files in /var/log on the host. |
to-vjunos directory/<filename> |
Name of the JUNOS directory/<filename> to which the host file is copied. |
invoke-on |
Remote command execution. |
Additional Information
You can use the show vmhost crash
and show vmhost logs
commands to list or identify the
files in the host OS to be copied to Junos OS.
Required Privilege Level
maintenance
Sample Output
request vmhost file-copy
user@host> request vmhost file-copy from-jnode messages log to-vjunos /var/tmp/linux_log_file user@host> file list /var/tmp/linux_log_file detail -rw-r----- 1 root wheel 7253996 Mar 2 23:08 /var/tmp/linux_log_file total files: 1
Release Information
Command introduced in Junos OS Release 15.1F3.
PTX3000 router supports the Routing and Control Board, RCBPTX.
Command introduced in Junos OS Release 18.1R1 for NFX150 devices.
Command introduced in Junos OS Release 18.4R1 for NFX250 (NG) devices.
Command introduced in Junos OS Release 19.1R1 for NFX350 devices.