Is there any way to show the complete list of supported console commands in OpenWRT and its modifiers?
no, you could get the list of commands by hitting tab tab, but that will give
you thousands of commands (far too many to be useful), each of the commands has
a man page, each of which ranges from a screenful to hundreds of screens worth
of information.
each package that you install then adds additional commands to this list.
These are Linux systems, so look at books on Linux administration (they tend to
be the thousand page monsters), that will give you an introduction on the
commands, but this is just an introduction.
I am looking for the commands that help me to create a file that contain the
Hostname, IP and MAC Address of all devices connected to the LAN or WiFi form
the router.
you can get the list of MAC addresses connected to wifi easily.
the list of MAC addresses connected to the wired lan is a bit harder (because
it's possible for things to be connected to the wired lan and never talk to the
router, unusual, but possible)
Translating these to IP addresses can be done via the arp table, but only for
things that have talked to the router.
It could also be done by looking at DHCP leases, but only for things that have
requested DHCP addresses (commonly everything on the network, but it's not a
requirement unless you have 802.1x setup)
getting hostnames is a third step, DHCP can issue hostnames, or report hostnames
provided by the client, but that doesn't necessarily match the hostname set on
the system (but may be good enough for your purposes)
In short, the network doesn't work the way you think it does, but looking at the
DHCP lease information may give you the info you are looking for on your
network (where it's a reasonable assumption that you don't have anyone with a
lot of network knowledge trying to hide from you)
David Lang