Este conteúdo não está disponível no idioma selecionado.
3.3. Other Commands
3.3.1. .rhscshellrc Configuration Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
The
.rhscshellrc configuration file contains options for connecting to the rhsc-shell. The .rhscshellrc file is available in the /home/[user name]/ directory.
| 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 Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
Use the
clear command to clear the CLI screen as follows:
clear
# clear
Example 3.9. Example for clear
Clear the screen:
[RHSC shell (connected)]# clear
[RHSC shell (connected)]# clear
3.3.3. Print Input Using echo Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
Use the
echo command to print input to the screen. Use the $out variable to print the last shell command output.
echo [input]
# echo [input]
Example 3.10. Example for echo
Print input:
[RHSC shell (connected)]# echo "Example text!"
[RHSC shell (connected)]# echo "Example text!"
Print last output:
[RHSC shell (connected)]# echo $out
[RHSC shell (connected)]# echo $out
3.3.4. Show Last Status Using status Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
Use the
status command to display the most recently run command status as follows:
status
# status
Example 3.11. Example for status
View the last status:
[RHSC shell (connected)]# status last command status: 0 (OK)
[RHSC shell (connected)]# status
last command status: 0 (OK)
3.3.5. Show CLI Information Using info Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
Use the
info command to display environment connection details and version information as follows:
info
# info
Example 3.12. Example for info
View CLI information:
3.3.6. Test Connection Using ping Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
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
# ping
Example 3.13. Example for ping
Test your connection:
[RHSC shell (connected)]# ping success: RHSC manager could be reached OK.
[RHSC shell (connected)]# ping
success: RHSC manager could be reached OK.
3.3.7. Exit from the CLI Using exit Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
Use the
exit command to leave the CLI as follows:
exit
# exit
Example 3.14. Example for exit
Leave the CLI:
[RHSC shell (connected)]# exit
[RHSC shell (connected)]# exit
3.3.8. End of File Using EOF Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
Use the
EOF command to leave the CLI shell using a Ctrl+D sequence.
EOF
# EOF
Example 3.15. Example for EOF
Leave the CLI shell:
[RHSC shell (connected)]# EOF
[RHSC shell (connected)]# EOF
3.3.9. Show Help Using help Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
Use the
help command displays help for CLI command and resource combinations as follows:
help [command][resource][options]
# help [command][resource][options]
Example 3.16. Examples for help
Get CLI help:
[RHSC shell (connected)]# help
[RHSC shell (connected)]# help
Get help for the
add command:
[RHSC shell (connected)]# help add
[RHSC shell (connected)]# help add
Get help for the
add command on the cluster resource type:
[RHSC shell (connected)]# help add cluster
[RHSC shell (connected)]# help add cluster