Este contenido no está disponible en el idioma seleccionado.
3.3. Other Commands
3.3.1. End of File (EOF) Copiar enlaceEnlace copiado en el portapapeles!
EOF
command to leave the CLI shell using a Ctrl+D
sequence.
EOF
Example 3.10. Example for EOF
[RHEVM shell (connected)]# EOF
[RHEVM shell (connected)]# EOF
3.3.2. List System Capabilities (capabilities) Copiar enlaceEnlace copiado en el portapapeles!
capabilties
--features
command to list all version capabilities and new features of the current version.
capabilities
--features
Example 3.11. Example for capabilities
3.3.3. Clear the Screen (clear) Copiar enlaceEnlace copiado en el portapapeles!
clear
command to clear the CLI screen.
clear
Example 3.12. Example for clear
[RHEVM shell (connected)]# clear
[RHEVM shell (connected)]# clear
3.3.4. Connect to VM (console) Copiar enlaceEnlace copiado en el portapapeles!
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.
console [vm-id|vm-name]
Example 3.13. Example for console
[RHEVM shell (connected)]# console RHEL6-Server
[RHEVM shell (connected)]# console RHEL6-Server
3.3.5. Print Input (echo) Copiar enlaceEnlace copiado en el portapapeles!
echo
command to print input to the screen. Use the $out
variable to print the last shell command output.
echo [input]
Example 3.14. Example for echo
[RHEVM shell (connected)]# echo "Example text!"
[RHEVM shell (connected)]# echo "Example text!"
[RHEVM shell (connected)]# echo $out
[RHEVM shell (connected)]# echo $out
3.3.6. Exit from the CLI (exit) Copiar enlaceEnlace copiado en el portapapeles!
exit
command to leave a CLI.
exit
Example 3.15. Example for exit
[RHEVM shell (connected)]# exit
[RHEVM shell (connected)]# exit
3.3.7. Run a Script (file) Copiar enlaceEnlace copiado en el portapapeles!
file
command to run a CLI script file. A script is a plain text file that contains a list of commands for execution.
file [file-location]
Example 3.16. Example for file
[RHEVM shell (connected)]# file /example/example-script
[RHEVM shell (connected)]# file /example/example-script
3.3.8. Show Help (help) Copiar enlaceEnlace copiado en el portapapeles!
help
command displays help for CLI command and resource combinations.
help [command] [resource] [options]
Example 3.17. Examples for help
[RHEVM shell (connected)]# help
[RHEVM shell (connected)]# help
add
command:
[RHEVM shell (connected)]# help add
[RHEVM shell (connected)]# help add
add
command on the vm
resource type:
[RHEVM shell (connected)]# help add vm
[RHEVM shell (connected)]# help add vm
3.3.9. Display the User Command History (history) Copiar enlaceEnlace copiado en el portapapeles!
history
command to display the history of user commands for the CLI shell.
history
Example 3.18. Example for history
[RHEVM shell (connected)]# history
[RHEVM shell (connected)]# history
Example 3.19. Example for history --first
--first
n parameter:
[RHEVM shell (connected)]# history --first 5
[RHEVM shell (connected)]# history --first 5
Example 3.20. Example for history --last
--last
n parameter:
[RHEVM shell (connected)]# history --last 5
[RHEVM shell (connected)]# history --last 5
3.3.10. Show CLI Information (info) Copiar enlaceEnlace copiado en el portapapeles!
info
command to display environment connection details and version information.
info
Example 3.21. Example for info
3.3.11. Test Connection (ping) Copiar enlaceEnlace copiado en el portapapeles!
ping
command tests the connection to your Red Hat Virtualization Manager. The command retrieves a remote resource and ensures the URL, user name and password for the connection are correct.
ping
Example 3.22. Example for ping
[RHEVM shell (connected)]# ping success: RHEVM manager could be reached OK.
[RHEVM shell (connected)]# ping
success: RHEVM manager could be reached OK.
3.3.12. Run a Shell Command (shell) Copiar enlaceEnlace copiado en el portapapeles!
shell
command to run a command from the Linux shell. This command helps with performing file management tasks in conjunction with the Red Hat Virtualization Manager shell.
shell [vm-id|vm-name]
Example 3.23. Examples for shell
[RHEVM shell (connected)]# shell ls
[RHEVM shell (connected)]# shell ls
[RHEVM shell (connected)]# shell touch example.txt
[RHEVM shell (connected)]# shell touch example.txt
[RHEVM shell (connected)]# shell cp example.txt /example-dir/.
[RHEVM shell (connected)]# shell cp example.txt /example-dir/.
Note
shell
using the bang (!
) character. For example:
[RHEVM shell (connected)]# !touch example.txt
[RHEVM shell (connected)]# !touch example.txt
3.3.13. Show Last Status (status) Copiar enlaceEnlace copiado en el portapapeles!
status
command to display the most recently run command status.
status
Example 3.24. Example for status
[RHEVM shell (connected)]# status last command status: 0 (OK)
[RHEVM shell (connected)]# status
last command status: 0 (OK)
3.3.14. Show System Summary (summary) Copiar enlaceEnlace copiado en el portapapeles!
summary
command to display a summary of the system status.
summary
Example 3.25. Example for summary