Este conteúdo não está disponível no idioma selecionado.

Chapter 3. Commands


3.1. Connecting to RHSC

3.1.1. Connect to RHSC via connect

The connect command connects to Red Hat Storage Console Application as follows:
# connect [options]
Copy to Clipboard Toggle word wrap
Expand
Table 3.1. Options for connect
Option Required Description
--ca-file Yes, unless --insecure is used. The certificate authority file to connect via SSL.
--cert-file No The certificate file to connect via SSL.
--filter No Enable filtering based on user permissions.
--insecure Yes, but only if no certificate authority is provided. Allow the CLI to connect via SSL without certification. Use this option with caution, as it may allow man-in-the-middle (MITM) attackers to spoof the identity of the server.
--key-file No The key file to connect via SSL.
--password Yes The password for the user attempting access to the Red Hat Storage Console Application.
--port No The port number to connect to the REST API, if not specified as part of the --url.
--session-timeout No The timeout period for the session.
--timeout - The timeout period for connection.
--url Yes The URL to the Red Hat Storage Console's REST API. This takes the form of https://[server]/api.
--user Yes The user name and directory service domain of the user attempting access to the Red Hat Storage Console Application. This takes the form of [username]@[domain].

Example 3.1. Example for connect

[RHSC shell (disconnected)]# connect --url "https://rhsc.example.com/api" --user "admin@exampleids.com" --password "p@55w0rd!" --ca-file "/home/user/ca.crt"

 ==========================================
 >>> connected to RHSC manager 3.3.0.0 <<<
 ==========================================

[RHSC shell (connected)]#
Copy to Clipboard Toggle word wrap

Note

Use the --insecure option to connect without certification. However, this is not recommended because it allows man-in-the-middle (MITM) attackers to spoof the server's identity.

3.1.2. Disconnect from RHSC Using disconnect

The disconnect command disconnects from Red Hat Storage Console Application as follows:
# disconnect
Copy to Clipboard Toggle word wrap

Example 3.2. Example for disconnect

[RHSC shell (connected)]# disconnect

  =======================================
  >>> disconnected from RHSC manager <<<
  =======================================

[RHSC shell (disconnected)]#
Copy to Clipboard Toggle word wrap
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat