Community discussions

MikroTik App
 
BeepBoop
just joined
Topic Author
Posts: 2
Joined: Fri Nov 24, 2023 5:58 pm

List mikrotik commands

Mon Jan 08, 2024 4:53 am

Is there a way to list the Mikrotik commands recursively similar to the `ls -R` flag in Linux? I'm trying to find a way to enumerate the list of commands for a REST client I'm building. I know that you can list the current "directory" options by pressing tab in a console, but I'm not sure if there is a way to mimic this behavior in the Mikrotik scripting language.

Any help is greatly appreciated!

Thanks!
 
ther33
just joined
Posts: 15
Joined: Sun Apr 02, 2023 11:58 pm

Re: List mikrotik commands

Tue Jan 09, 2024 4:02 am

You should be able to use /console/inspect with as-value in some kind of a loop structure to query all commands and info. If you do create a script to do this, please post it here.

Amm0 posted about how /console/inspect works here: viewtopic.php?p=1024410#p1024410

Who is online

Users browsing this forum: No registered users and 3 guests