Here you can configure command aliases on the CLI. With these command aliases, CLI commands on the console can be shortened or predefined. For example, setting parameters or displaying a (status) table.
To do this, define pairs of a new alias and the corresponding command to be executed. Examples:
- In the following example, the user-defined alias "show wwan" should display the status of the cellular modem from the
status tree using the command "ls
/status/modem-mobile".
root@:/Setup/Config/Command-Aliases > add "show wwan" "ls /status/modem-mobile" set ok: Command Definition ==================================-------------------------------------- show wwan ls /status/modem-mobile
- An alias is created to make the command Ping send two packets to the IP address
8.8.8.8:
root@:/Setup/Config/Command-Aliases > add "pingtest" "ping 8.8.8.8 -c2" set ok: Command Definition ==================================-------------------------------------- pingtest ping 8.8.8.8 -c2 root@:/Setup/Config/Command-Aliases > pingtest 56 Byte Packet from 8.8.8.8 seq.no=0 time=6.687 ms 56 Byte Packet from 8.8.8.8 seq.no=1 time=6.425 ms ---8.8.8.8 ping statistic--- 56 Bytes Data, 2 Packets transmitted, 2 Packets received, 0% loss
- SNMP ID:
- 2.11.98
- Console path:
- Setup > Config