Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

request vmhost file-copy

date_range 09-Dec-23

Syntax

content_copy zoom_out_map
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

content_copy zoom_out_map
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.

Note:

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.

footer-navigation