이 콘텐츠는 선택한 언어로 제공되지 않습니다.

3.3. Other Commands


3.3.1. End of File (EOF)

Use the EOF command to leave the CLI shell using a Ctrl+D sequence.
Syntax

EOF

Example 3.10. Example for EOF

Leave the CLI shell:
[RHEVM shell (connected)]# EOF
Copy to Clipboard Toggle word wrap

3.3.2. List System Capabilities (capabilities)

Use the capabilties --features command to list all version capabilities and new features of the current version.
Syntax

capabilities --features

Example 3.11. Example for capabilities

List system capabilities of the current version:
[RHEVM shell (connected)]# capabilities --features

name                                : Search - Case Sensitivity
description                         : Ability to specify whether a search query should ignore case, by providing a URL parameter
url-parameters_set-parameter-name   : case_sensitive
url-parameters_set-parameter-context: matrix
url-parameters_set-parameter-type   : boolean
:
Copy to Clipboard Toggle word wrap

3.3.3. Clear the Screen (clear)

Use the clear command to clear the CLI screen.
Syntax

clear

Example 3.12. Example for clear

Clear the screen:
[RHEVM shell (connected)]# clear
Copy to Clipboard Toggle word wrap

3.3.4. Connect to VM (console)

Use the console command to open a graphical console to a virtual machine. This command opens either an external VNC or SPICE client based upon the virtual machine's display-type parameter.
Syntax

console [vm-id|vm-name]

Example 3.13. Example for console

Open graphical console to a virtual machines:
[RHEVM shell (connected)]# console RHEL6-Server
Copy to Clipboard Toggle word wrap

3.3.6. Exit from the CLI (exit)

Use the exit command to leave a CLI.
Syntax

exit

Example 3.15. Example for exit

Leave the CLI:
[RHEVM shell (connected)]# exit
Copy to Clipboard Toggle word wrap

3.3.7. Run a Script (file)

Use the file command to run a CLI script file. A script is a plain text file that contains a list of commands for execution.
Syntax

file [file-location]

Example 3.16. Example for file

Run a script file:
[RHEVM shell (connected)]# file /example/example-script
Copy to Clipboard Toggle word wrap

3.3.8. Show Help (help)

Use the help command displays help for CLI command and resource combinations.
Syntax

help [command] [resource] [options]

Example 3.17. Examples for help

Get CLI help:
[RHEVM shell (connected)]# help
Copy to Clipboard Toggle word wrap
Get help for the add command:
[RHEVM shell (connected)]# help add
Copy to Clipboard Toggle word wrap
Get help for the add command on the vm resource type:
[RHEVM shell (connected)]# help add vm
Copy to Clipboard Toggle word wrap

3.3.9. Display the User Command History (history)

Use the history command to display the history of user commands for the CLI shell.
Syntax

history

Example 3.18. Example for history

Display the user command history:
[RHEVM shell (connected)]# history
Copy to Clipboard Toggle word wrap

Example 3.19. Example for history --first

Display the first specified entries in the user command history with the --first n parameter:
[RHEVM shell (connected)]# history --first 5
Copy to Clipboard Toggle word wrap

Example 3.20. Example for history --last

Display the last specified entries in the user command history with the --last n parameter:
[RHEVM shell (connected)]# history --last 5
Copy to Clipboard Toggle word wrap

3.3.10. Show CLI Information (info)

Use the info command to display environment connection details and version information.
Syntax

info

Example 3.21. Example for info

View CLI information:
[RHEVM shell (connected)]# info

backend version: 3.1
sdk version    : 3.1.0.4
cli version    : 3.1.0.6
python version : 2.7.3.final.0

entry point    : https://www.example.com:8443/api

Copy to Clipboard Toggle word wrap

3.3.11. Test Connection (ping)

Use the ping command tests the connection to your Red Hat Enterprise Virtualization Manager. The command retrieves a remote resource and ensures the URL, user name and password for the connection are correct.
Syntax

ping

Example 3.22. Example for ping

Test your connection:
[RHEVM shell (connected)]# ping

success: RHEVM manager could be reached OK.

Copy to Clipboard Toggle word wrap

3.3.12. Run a Shell Command (shell)

Use the shell command to run a command from the Linux shell. This command helps with performing file management tasks in conjunction with the Red Hat Enterprise Virtualization Manager shell.
Syntax

shell [vm-id|vm-name]

Example 3.23. Examples for shell

List files in current working directory:
[RHEVM shell (connected)]# shell ls
Copy to Clipboard Toggle word wrap
Create a file:
[RHEVM shell (connected)]# shell touch example.txt
Copy to Clipboard Toggle word wrap
Copy a file:
[RHEVM shell (connected)]# shell cp example.txt /example-dir/.
Copy to Clipboard Toggle word wrap

Note

The CLI offers an alternative to the shell using the bang (!) character. For example:
[RHEVM shell (connected)]# !touch example.txt
Copy to Clipboard Toggle word wrap

3.3.13. Show Last Status (status)

Use the status command to display the most recently run command status.
Syntax

status

Example 3.24. Example for status

View the last status:
[RHEVM shell (connected)]# status

last command status: 0 (OK)

Copy to Clipboard Toggle word wrap

3.3.14. Show System Summary (summary)

Use the summary command to display a summary of the system status.
Syntax

summary

Example 3.25. Example for summary

Display system status:
[RHEVM shell (connected)]# summary

hosts-active          : 1
hosts-total           : 2
storage_domains-active: 2
storage_domains-total : 3
users-active          : 1
users-total           : 1
vms-active            : 1
vms-total             : 1
Copy to Clipboard Toggle word wrap
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat