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

3.3. Other Commands


3.3.1. .rhscshellrc Configuration

The .rhscshellrc configuration file contains options for connecting to the rhsc-shell. The .rhscshellrc file is available in the /home/[user name]/ directory.
Expand
Table 3.5. .rhscshellrc Parameters
Name Type Description
url
string
The address of the Red Hat Storage Console Application.
username
string
User name to be used to log in.
password
string
Password to be used for user name.
insecure
boolean
Toggles CA certificate requirement. The status is either True or False.
autopage
boolean
Toggles pagination in the shell. The status is either True or False.
filter
boolean
Toggles object filtering. Object filtering allows users to fetch objects according to their permissions. Only admin roles can toggle filtering off. The status is either True or False.
--session-timeout integer The timeout period for connection.
timeout
integer
Requests timeout. The default is -1.

3.3.2. Clear the Screen Using clear

Use the clear command to clear the CLI screen as follows:
# clear
Copy to Clipboard Toggle word wrap

Example 3.9. Example for clear

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

3.3.4. Show Last Status Using status

Use the status command to display the most recently run command status as follows:
# status
Copy to Clipboard Toggle word wrap

Example 3.11. Example for status

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

last command status: 0 (OK)
Copy to Clipboard Toggle word wrap

3.3.5. Show CLI Information Using info

Use the info command to display environment connection details and version information as follows:
# info
Copy to Clipboard Toggle word wrap

Example 3.12. Example for info

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

backend version: 3.3
sdk version    : 2.1
cli version    : 2.1
python version : 2.6.6.final.0

entry point    : https://www.example.com:8443/api
Copy to Clipboard Toggle word wrap

3.3.6. Test Connection Using ping

Use the ping command to test the connection to your Red Hat Storage Console Application. The command retrieves a remote resource and ensures the URL, username and password for the connection are correct.
# ping
Copy to Clipboard Toggle word wrap

Example 3.13. Example for ping

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

success: RHSC manager could be reached OK.
Copy to Clipboard Toggle word wrap

3.3.7. Exit from the CLI Using exit

Use the exit command to leave the CLI as follows:
# exit
Copy to Clipboard Toggle word wrap

Example 3.14. Example for exit

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

3.3.8. End of File Using EOF

Use the EOF command to leave the CLI shell using a Ctrl+D sequence.
# EOF
Copy to Clipboard Toggle word wrap

Example 3.15. Example for EOF

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

3.3.9. Show Help Using help

Use the help command displays help for CLI command and resource combinations as follows:
# help [command][resource][options]
Copy to Clipboard Toggle word wrap

Example 3.16. Examples for help

Get CLI help:
[RHSC shell (connected)]# help
Copy to Clipboard Toggle word wrap
Get help for the add command:
[RHSC shell (connected)]# help add
Copy to Clipboard Toggle word wrap
Get help for the add command on the cluster resource type:
[RHSC shell (connected)]# help add cluster
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