by Rob Locke (Red Hat)
One of the new features introduced in version 3.1 of Red Hat Enterprise Virtualization is a command line interface (CLI) to connect to the manager. The CLI also contains a scripting system, which helps system administrators perform periodic maintenance or repetitive tasks on their virtualization environment.
Communication with the RHEV Manager is secured through the use of a certificate that needs to be downloaded from the manager:
$ wget http://rhevm.pod0.example.com/ca.crt
Connect to the RHEV Manager using the rhevm-shell command (referring to the downloaded certificate):
$ rhevm-shell -l https://rhevm.pod0.example.com/api \ -u rhevadmin@example.com -A ca.crt -c Password: redhat ... output omitted ... [RHEVM shell (connected)]#
There are numerous subcommands that can be specified at the rhevm-shell prompt. Use help for a list of subcommands, then help subcommand to see what can be done:
[RHEVM shell (connected)]# help ... output omitted ... [RHEVM shell (connected)]# help action ... output omitted ...
Those rhevm-shell subcommands can be entered interactively from the prompt above or embedded in a text file for automation from a standard shell prompt:
$ cat /tmp/rhel0.shutdown action vm rhel0 shutdown exit $ rhevm-shell -l https://rhevm.pod0.example.com/api \ -u rhevadmin@example.com -A ca.crt -f /tmp/rhel0.shutdown -c Password: redhat
Learn more about rhevm-shell and other methods of automation in our updated Red Hat Enterprise Virtualization (RH318) course.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Sull'autore
Ricerca per canale
Automazione
Le ultime novità sulla piattaforma di automazione che riguardano la tecnologia, i team e gli ambienti
Intelligenza artificiale
Aggiornamenti sulle piattaforme che consentono alle aziende di eseguire carichi di lavoro IA ovunque
Servizi cloud
Maggiori informazioni sul nostro portafoglio di servizi cloud gestiti
Sicurezza
Le ultime novità sulle nostre soluzioni per ridurre i rischi nelle tecnologie e negli ambienti
Edge computing
Aggiornamenti sulle piattaforme che semplificano l'operatività edge
Infrastruttura
Le ultime novità sulla piattaforma Linux aziendale leader a livello mondiale
Applicazioni
Approfondimenti sulle nostre soluzioni alle sfide applicative più difficili
Serie originali
Raccontiamo le interessanti storie di leader e creatori di tecnologie pensate per le aziende
Prodotti
- Red Hat Enterprise Linux
- Red Hat OpenShift
- Red Hat Ansible Automation Platform
- Servizi cloud
- Scopri tutti i prodotti
Strumenti
- Formazione e certificazioni
- Il mio account
- Risorse per sviluppatori
- Supporto clienti
- Calcola il valore delle soluzioni Red Hat
- Red Hat Ecosystem Catalog
- Trova un partner
Prova, acquista, vendi
Comunica
- Contatta l'ufficio vendite
- Contatta l'assistenza clienti
- Contatta un esperto della formazione
- Social media
Informazioni su Red Hat
Red Hat è leader mondiale nella fornitura di soluzioni open source per le aziende, tra cui Linux, Kubernetes, container e soluzioni cloud. Le nostre soluzioni open source, rese sicure per un uso aziendale, consentono di operare su più piattaforme e ambienti, dal datacenter centrale all'edge della rete.
Seleziona la tua lingua
Red Hat legal and privacy links
- Informazioni su Red Hat
- Opportunità di lavoro
- Eventi
- Sedi
- Contattaci
- Blog di Red Hat
- Diversità, equità e inclusione
- Cool Stuff Store
- Red Hat Summit