![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
This section describes the functions available when entering commands in the CLI and the contents of the output when executing commands.
Use the input completion function #
Commands and arguments can be automatically completed by typing the "Tab" key in the middle of entering a command.
If there are multiple applicable commands, a list of command candidates is displayed.
Execution example
The following is an example of an Edge Gateway in action.
amnimo(cfg)# int ←ここで「Tab」キーを押す
amnimo(cfg)# interface ←コマンドが補完される
amnimo(cfg)# interface et ←ここで「Tab」キーを押す
amnimo(cfg)# interface eth eth0 ←引数が補完される
amnimo(cfg)# interface lan ←ここで「Tab」キーを押す
lan0 lan1 lan2 lan3 ←引数の候補一覧が表示される
amnimo(cfg)# s ←ここで「Tab」キーを押す
ssh syslog show ←コマンドの候補一覧が表示される
amnimo(cfg)# ex⮠ ←exitを省略して実行
amnimo# ←exitと認識し実行される
For IoT routers, the following information will appear as a list of "eth" candidates
amnimo(cfg)# interface eth eth0 eth1
For IoT routers and indoor type compact routers, the "lan" candidate list is not displayed because LAN ports are not implemented.
Browse command history #
Commands executed in the past are stored as history data. By entering the "↑" and "↓" keys, you can view the commands that were executed in the past.
↑up key
→Displays one past command in the command history.
↓ key
→Displays the most recent command in the command history.
If the most recent command was command-a, command-b, and command-c, the history can be traced as follows.
Execution example
amnimo(cfg)# command-a⮠
amnimo(cfg)# command-b⮠
amnimo(cfg)# command-c⮠
amnimo(cfg)# ←コマンド入力がない状態で「↑」キーを押す
amnimo(cfg)# command-c ←直近で実行したコマンドが表示される
amnimo(cfg)# command-c ←再度「↑」キーを押す
amnimo(cfg)# command-b ←1つ履歴をさかのぼって、実行したコマンドが表示される
amnimo(cfg)# command-b ←再度「↑」キーを押す
amnimo(cfg)# command-a ←さらに1つ過去に実行したコマンドが表示される
amnimo(cfg)# command-a ←続いて「↓」キーを押す
amnimo(cfg)# command-b ←1つ直近に実行したコマンドが表示される
amnimo(cfg)# command-b ←続いて「↓」キーを押す
amnimo(cfg)# command-a ←さらに1つ直近に実行したコマンドが表示される
Read the error message #
The message you see when you run the command contains a lot of information.
This section describes the messages that are sent when an error occurs.
In the event of an abnormality #
If an error occurs when executing the command, a message will be displayed according to the verbose option of the amsh program.
- See "Running the amsh program with options" for more information.
Execution example
amnimo$ enable
amnimo# configure
amnimo(cfg)# hoge
verbose オプションの出力LEVELに応じたメッセージが表示される
amnimo(cfg)#
When a required field is missing #
If any of the required input items are missing when the command is executed, the missing configuration items are listed.
Below is an example of setting up an account for a specific user with the account command.
I am trying to change the password in account configuration mode, but it is giving me an error because I need to configure the group. if I abort the configuration with the exit command, it asks me if I want to abort.
Execution example (V1.8.0 or later)
amnimo$ enable
amnimo# configure
amnimo(cfg)# account user username1
amnimo(cfg-account-username1)# password secret ENCRYPT-USERNAME1-PASSWORD
You must fill in the following required fields: ←groupの設定が不足している
group
amnimo(cfg-account-username1)# exit ←アカウントの設定モードを終了
You must fill in the following required fields:
group
Cancel configuration? (y/N): ←yまたはYを押すと設定をキャンセル。nまたはN、Enterキーを押すと設定に戻る
- (y/N) represents y (yes) or N (no). The uppercase letter is set as the default. Pressing Enter without typing anything will select the uppercase one.
- If you enter a letter other than y (Y) or n (N), you will be asked again if you want to abort.
