Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

request vmhost cleanup

 

Syntax

Release Information

Command introduced in Junos OS Release 15.1F3 for the PTX5000, MX240, MX480, and MX960 routers.

Command introduced in Junos OS Release 15.1F5 for the MX2010 and MX2020 routers.

Command introduced in Junos OS Release 16.1R4 for the PTX3000 routers.

Note

PTX3000 router supports the Routing and Control Board, RCBPTX.

Command introduced in Junos OS Release 17.1R1 for EX9200 switches.

Command introduced in Junos OS Release 17.3R1 for the MX10003 routers.

Command introduced in Junos OS Release 17.4R1 for the MX204 routers.

Command introduced in Junos OS Release 18.1R1 for the QFX10002-60C switch.

Command introduced in Junos OS Release 18.2R1 for the PTX10002-60C router.

Command introduced in Junos OS Release 18.2R1 for MX10008 Routers

Description

Clean up temporary files, crash generated files, and log files located in the /var/tmp, /var/crash, and /var/log directories respectively on the host OS.

Options

none—Clean up temporary files, crash generated files, and log files located in the /var/tmp, /var/crash, and /var/log directories on the host OS running on the Routing Engine on the local Virtual Chassis member.

invoke-on(Optional) Clean up temporary files, crash generated files, and log files on all the Routing Engines or the other Routing Engine.

Clean up files in /var/tmp, /var/crash, and /var/log on the host OS running on a router that has dual Routing Engines. You can use the all-routing-engine option to clean up the files in these directories on the host OS running on all the Routing Engines or the other-routing-engine option to clean up the files in these directories on the host OS running on the other Routing Engine. If you issue the command from the master Routing Engine, the backup Routing Engine is referred to as the other Routing Engine.

re0 | re1(Optional) On devices that support dual or redundant Routing Engines, clean up files in /var/tmp, /var/crash, and /var/log on the host OS running on the Routing Engine in slot 0 (re0) or the Routing Engine in slot 1 (re1).
Note

The QFX10002-60C and PTX10002-60C devices do not have master and backup routing engines.

routing-engine(Optional) Specify the Routing Engine for which the files in /var/tmp, /var/crash, and /var/log on the host OS are to be cleaned up. The following options are available:
  • backup—Backup Routing Engine.

  • both—Master and backup Routing Engines.

  • local—Routing Engine on the local Virtual Chassis member.

  • master—Master Routing Engine.

  • other—If you issue the command from the master Routing Engine, the backup Routing Engine is referred to as the other Routing Engine.

Required Privilege Level

maintenance

Related Documentation

Output Fields

When you enter this command, you are provided feedback on the status of your request.