華為OceanStore V3,V5統一存儲命令行
華為內部還是很推崇圖形界面的。。。不過命令行確實挺爛,最起碼無法批量下命令,下幾行就全是亂碼輸入,不知道是命令緩存池小還是怎麽回事。
ssh進入到華為的命令行為如下顯示內容:
Authorized users only. All activities may be monitored and reported.
Last login: Fri Mar 22 19:02:49 2019 from 172.16.39.2
WARNING: You have accessed the system.
You are required to have a personal authorisation from the system administrator before you use this computer. Unauthorised access to or misuse of this system is prohibited.
System Name : KL02B0601_OCS01
Health Status : Normal
Running Status : Normal
Total Capacity : 912.460TB
SN : 2102351QGRXXXXXXXXXX
Location : ASDFFGF
Product Model : 18500 V5
Time : 2019-03-22/21:25:30 UTC+08:00
Patch Version : SPH006
admin:/>
以下為tab出來的命令,大部分的管理員配置命令都在這裏發起:
admin:/> <tab產物>
add change clear create delete exit
export help import poweroff poweron reboot
remove restore scan show swap test
upgrade
一般配置就幾個命令打頭
show
create
add
change
像delete,remove還是盡量少用。
admin:/>help <help產物>
^
alarm alarm_mask alarm_object
alarm_object_mask antivirus antivirus_scan
antivirus_server assistant_cooling_unit audit
audit_strategy bbu bond_port
bond_port_count bst cache_partition
call_home certificate cli
clone common_config configuration_data
consistency_group controller crl
db devicemanager diagnose_code
disk disk_domain dns_server
dns_zone domain enclosure
event event_config event_restore
exit expansion_module failover_group
fan file file_extension_filter
file_system fs_clone fs_security
fs_snapshot ftds homedir
host host_auto_scan host_group
hyper_metro_consistency_group hyper_metro_domain hyper_metro_pair
hyper_metro_vstore_pair hypervault hypervault_copy
hypervault_job hypervault_policy ib_initiator
ib_port icmp identity_mapping
initiator interface_module iostat
iscsi isns key_service
kmc kms ldap
license license_active logfile
logical_port lun lun_cache
lun_copy lun_destroy_data lun_format_process
lun_group lun_migration lun_migration_split
lun_takeover mapping_view mirror_copy
mirror_domain mirror_lun mm_user
notification ntp_server on_access_scan
performance persistent_mirror port
?介紹了ssh界面的一些操作鍵說明
admin:/> <?產物>
ERROR REPORTING
The ^ (a caret) indicates a syntax error occurred in the preceding command
statement. The location of a caret in the command statement indicates the
location of the syntax error.
CONTEXT SENSITIVE HELP
[?] - Display context sensitive help. This is either a list of possible
command completions with summaries, or the full syntax of the
current command. A subsequent repeat of this key, when a command
has been resolved, will display a detailed reference.
[CTRL+A] - Display available list of the object that can be used as valid
parameter. It is supported in limited context and the tips will be
promoted after the TAB or space key is pressed.
AUTO-COMPLETION
The following keys both perform auto-completion for the current command line.
If the command prefix is not unique then the bell will ring and a subsequent
repeat of the key will display possible completions.
[Tab] - Auto-complete and display possible inputs.
[Space] - Auto-complete.
MOVEMENT KEYS
[Up] - Move to the previous command line held in history.
[Down] - Move to the next command line held in history.
[Left] - Move the insertion point left one character.
[Right] - Move the insertion point right one character.
[CTRL+Left] - Move the insertion point left one word.
[CTRL+Right] - Move the insertion point right one word.
[CTRL+S] - Move the insertion point to the start of the command line
[CTRL+E] - Move the insertion point to the end of the command line.
DELETION KEYS
[CTRL+C] - Delete the whole line.
[CTRL+D] - Delete the character selected by the cursor.
[CTRL+K] - Delete all the characters to the right of the cursor, including the character selected by the cursor.
[Backspace] - Delete the character to the left of the cursor.
PAGING KEYS
[Enter] - Move to the next line.
[Space] - Move to the next page.
[G] - Move to the last page.
ESCAPE SEQUENCES
Some characters cannot be inputed literally. They should be represented with escape sequences,
which are character sequences beginning with a backslash ("\‘). The following table lists all the
escape sequences:
\ A literal backslash, `\‘.
\s A space.
\q A question-mark, ‘?‘.
| A vertical-line, ‘|‘.
當然除了管理員模式還有工程師模式和開發模式,部分命令比如ping命令要進入到開發者模式裏才有,這裏就不多說了
admin:/>change user_mode current_mode user_mode=
<user_mode=?> View that you want to enter. Possible values are developer and engineer: 1:"developer": indicates the
developer view. 2:"engineer": indicates the engineer view.
華為OceanStore V3,V5統一存儲命令行