Tuesday, December 11, 2012

Finding CLI Commands

Sometimes it's handy to know which CLI commands correspond to actions you are performing in the GUI. With the following commands you can enable debugging on the console that will show you in the CLI what you're doing in the GUI.

# diag debug reset
# diag debug enable
# diag debug console
# diag debug cli 7

Here is some sample output in the CLI when adding and deleting static routes in the GUI.

0: config router static
0: edit 0
0: set device "VPN_Tunnel"
0: set dst 1.1.1.1 255.255.255.255
0: end
0: config router static
0: delete 16
0: end

Also, if you are performing an action in the GUI and you get no output on the CLI then chances are that there is no equivalent CLI command.

1 comment: