DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

Show Commands / Router Documentation

  • support@redblade.co.uk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
05 May 2009 17:25 #55654 by support@redblade.co.uk
Show Commands / Router Documentation was created by support@redblade.co.uk
Hi

I am new to this forum and am looking for a way to document our router configurations. I am not sure if this has already been discussed, sorry if it has. But here is what I would like..

I would like to be able to pull our routers config out via the cli. I am not looking to backup the configuration here, as this would be reliant on an engineer taking a backup on a regular basis and then updating the documentation. I would like to remove this dependancy. The scenario is I am using Rancid to backup my Cisco and HP configurations and I would like to add our draytek routers to this. I have configured the basics of a rancid script that does pull some config and does basic error checking (commands dont seem to be consistent across router models). So far I have the following commands working, no particular order, at present this is what we need to get.

sys version
sys cc
xdsl ppp
xdsl annex
show lan1
show lan2
ip route status
adsl ppp
adsl annex
show dhcp
show dmz
show dns
show openport
srv nat portmap table
mngt accesslist list
vpn l2lset 1
vpn l2lset 2
vpn l2lset 3
vpn l2lset 4
vpn l2lset 5
vlan status
srv nat showall

Partly working (works on some but hangs on others, doesnt work on 2820, works on 3100)

sys iface - hangs when prompted to press space or enter

Not working (this is due to the ? at the end)

mngt echoicmp ?
mngt httpport ?
mngt httpsport ?
mngt noping ?
mngt telnetport ?

Now a few requests / questions

1) Is there away for the good people at Draytek, to provide a sort of "show run " command that lists all the above details, in 1 command
2) the VPN scripts dont list the vpn termination points, what is the command to list this
3) Can we get the mngt commands to list the details without a ? at the end
4) is there a away to set a command not to prompt for user input when the response goes over a page
5) Is there a way for me to list the firewall settings, including port and device groups
6) Different Routers seem to have different, exit codes ie when quit is typed the returned message is not always the same, is there a way to standardise this


I think this is all for now.

I would like to thank you for any advise or help in advance

Thanks

Please Log in or Create an account to join the conversation.

More
03 Jan 2026 04:41 #105952 by weslee
Replied by weslee on topic Show Commands / Router Documentation
I have a similar usecase for which I started writing a python script that authenticates to a Draytek, runs a set of commands and extracts the output into a sqlite database. This was some time ago, so not sure whether it would still work - but if anyone has any requirement, let me know and I can share it on github.

commands run with data extracted:

"sys status",
"sys ver",
"wan show",
"adsl status",
"fw log",
"fw session",
"bwm status",
"wl assoc",
"wl config ssid show",
"wl config security show",
"wl stalist show",
"wl stalist neighbor",
"vpn status",
"dhcp status",
"arp status",
"switch status"

Please Log in or Create an account to join the conversation.

More
05 Jan 2026 10:15 #105954 by weslee
Replied by weslee on topic Show Commands / Router Documentation
I understand some of the newer models have an API which can be queried. Can anyone confirm API availability on which models / version of the OS?

✌🏼❤️

Please Log in or Create an account to join the conversation.

Moderators: Admin3Christopher