What's new

ssh commands for ASUSWRT-MERLIN firmware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Please list the contents of the folders /bin, /sbin and /usr/sbin, there you will find loads of commands.
 
Can someone point me to a list (if it exists) of major commands to set/manage RT-AC87R router via ssh prompt ?

Thx

Anything (special) that you would like to do, or would like to know it it could be done ?
 
Can someone point me to a list (if it exists) of major commands to set/manage RT-AC87R router via ssh prompt ?

Thx

It's an actual OS (Linux). Listing all possible commands would fill up an entire book.
 
Can someone point me to a list (if it exists) of major commands to set/manage RT-AC87R router via ssh prompt ?

Thx

One easy method I use is to simply press "Tab" twice.
That will usually display most available commands quickly and easily on many Unix-based systems.

On embedded you can also list the available busybox (a single executable file with many included system commands) commands by typing "busybox".
 
No in particular, just something that controls a router


That's a bit like asking how long is a piece of string. "Control" in what sense? To do what, exactly? As RMerlin was suggesting, I think it would be fair to say that the commands you are alluding to are Linux commands and ssh is the secure environment through which they could be passed to the router, but I'm no expert.

If you are thinking of control of the router in the sense of access to the router's webui (i.e. putting 192.168.1.1 into your browser). you could use ssh to establish a secure connection from a remote location back to your router, without the need for Linux commands.

If you say what you have in mind exactly, I'm sure that one of the very talented people on this forum will get you sorted.

Martin
 
Here you go. Enjoy.
Code:
3ginfo.sh                   ftpput                      pscan
ATE                         gctwimax                    psta_monitor
[                           gencert.sh                  pwd
[[                          get_account_list            radio
acsd                        get_all_folder              radvd
add_account                 get_apps_name               rc
add_folder                  get_folder_list             rcheck
add_multi_routes            get_permission              rdnssd
app_base_library.sh         get_phy_speed               read_sms
app_base_link.sh            get_phy_status              readlink
app_base_packages.sh        get_var_file_name           reboot
app_cancel.sh               grep                        renice
app_check_folder.sh         gunzip                      restart_wireless
app_check_pool.sh           gzip                        rm
app_fsck.sh                 halt                        rmdir
app_fsck_all.sh             head                        rmmod
app_get_field.sh            helper.sh                   robocfg
app_init_run.sh             hotplug                     route
app_install.sh              hotplug2                    rstats
app_move_to_pool.sh         how_many_layer              run_app_script
app_remove.sh               httpd                       run_pptpd
app_set_enabled.sh          hub-ctrl                    run_telnetd
app_stop.sh                 icon.ico                    scp
app_switch.sh               icon.large.ico              scsi-start
app_update.sh               ifconfig                    scsi-stop
app_upgrade.sh              igmpproxy                   sd-idle-2.6
arp                         igs                         sdparm
arping                      infosvr                     sed
arpstorm                    init                        send_sms
ash                         initial_all_var_file        sendmail
asus_lp                     initial_folder_list         service
asus_sd                     initial_var_file            set_permission
asus_sg                     inotify                     setconsole
asus_sr                     insmod                      setup_dnsmq
asus_tty                    ionice                      setuprsa.sh
asus_usb_interface          ip                          sh
asus_usbbcm                 ip6tables                   showmount
asuswebstorage              ip6tables-restore           sigmon
auto_macclone               ip6tables-save              sleep
autodet                     ipset                       smbd
avahi-daemon                iptables                    smbpasswd
awk                         iptables-restore            sort
badblocks                   iptables-save               ssh
basename                    kill                        statd
bcrelay                     killall                     strings
blkid                       klogd                       swapoff
brctl                       l2tp-control                swapon
busybox                     l2tpd                       switchmode
cat                         led_ctrl                    sync
chat                        less                        sysinfo
check_spectrum.sh           lighttpd                    syslogd
chk_app_state               lighttpd-arpping            tail
chkntfs                     lighttpd-monitor            tar
chmod                       lld2d                       tc
chown                       lld2d.conf                  tcpcheck
chpasswd                    lld2d.rtn66r                tee
chpasswd.sh                 ln                          telnet
chroot                      logger                      telnetd
clear                       login                       test
cmp                         lpd                         test_disk1
comgt                       ls                          test_disk2
console                     lsmod                       test_endian
cp                          lsusb                       test_if_exist_account
create_if_no_var_files      madwimax                    test_if_exist_share
crond                       makemime                    test_of_var_files
crontab                     md5sum                      test_share
cru                         mdev                        tftp
cstats                      minidlna                    top
cut                         miniupnpd                   touch
date                        mkdir                       tr
dbclient                    mkdosfs                     traceroute
dd                          mke2fs                      traceroute6
ddns_updated                mkfs.ext2                   true
del_account                 mkfs.ext3                   tune2fs
del_folder                  mkfs.vfat                   u2ec
df                          mknod                       udevtrigger
dhcp6c                      mkntfs                      udhcpc
dhcp6c-state                mkswap                      udpxy
dhcp6s                      mod_account                 umount
diff                        mod_folder                  uname
dirname                     modify_if_exist_new_folder  unzip
disk_monitor                modprobe                    updown.sh
disk_remove                 more                        uptime
dmesg                       mount                       uqmi
dnsmasq                     mountd                      usb_modeswitch
dropbear                    mt-daapd                    usb_notify
dropbearconvert             mtd-erase                   usbled
dropbearkey                 mtd-unlock                  usleep
dropbearmulti               mtd-write                   vconfig
du                          mv                          vi
e2fsck                      nas                         vsftpd
eapd                        nc                          wanduck
ebtables                    netstat                     watch
echo                        netstat-nat                 watchdog
egrep                       networkmap                  wc
ejusb                       nfsd                        webdav_client
emf                         nice                        webs_update.sh
entware-setup.sh            nmbd                        webs_upgrade.sh
env                         nohup                       wget
et                          nslookup                    which
ether-wake                  ntp                         wimaxc
exportfs                    ntpclient                   wimaxd
expr                        nvram                       wl
ez-ipupdate                 openssl                     wlcconnect
fdisk                       openvpn                     wlconf
fgrep                       ots                         wlcscan
find                        pc                          wpa_cli
find_modem_node.sh          pidof                       wpa_supplicant
find_modem_type.sh          ping                        wps_monitor
firmware_check              ping6                       wpsaide
flock                       portmap                     write_3g_ppp_conf
free                        pppd                        write_smb_conf
free_caches                 pppoe-relay                 write_webdav_conf
fsck.ext2                   pptpctrl                    zcat
fsck.ext3                   pptpd                       zcip
fsync                       printf
ftpget                      ps
 
Here you go. Enjoy.
Code:
3ginfo.sh                   ftpput                      pscan
ATE                         gctwimax                    psta_monitor
[                           gencert.sh                  pwd
[[                          get_account_list            radio
acsd                        get_all_folder              radvd
add_account                 get_apps_name               rc
add_folder                  get_folder_list             rcheck
add_multi_routes            get_permission              rdnssd
app_base_library.sh         get_phy_speed               read_sms
app_base_link.sh            get_phy_status              readlink
app_base_packages.sh        get_var_file_name           reboot
app_cancel.sh               grep                        renice
app_check_folder.sh         gunzip                      restart_wireless
app_check_pool.sh           gzip                        rm
app_fsck.sh                 halt                        rmdir
app_fsck_all.sh             head                        rmmod
app_get_field.sh            helper.sh                   robocfg
app_init_run.sh             hotplug                     route
app_install.sh              hotplug2                    rstats
app_move_to_pool.sh         how_many_layer              run_app_script
app_remove.sh               httpd                       run_pptpd
app_set_enabled.sh          hub-ctrl                    run_telnetd
app_stop.sh                 icon.ico                    scp
app_switch.sh               icon.large.ico              scsi-start
app_update.sh               ifconfig                    scsi-stop
app_upgrade.sh              igmpproxy                   sd-idle-2.6
arp                         igs                         sdparm
arping                      infosvr                     sed
arpstorm                    init                        send_sms
ash                         initial_all_var_file        sendmail
asus_lp                     initial_folder_list         service
asus_sd                     initial_var_file            set_permission
asus_sg                     inotify                     setconsole
asus_sr                     insmod                      setup_dnsmq
asus_tty                    ionice                      setuprsa.sh
asus_usb_interface          ip                          sh
asus_usbbcm                 ip6tables                   showmount
asuswebstorage              ip6tables-restore           sigmon
auto_macclone               ip6tables-save              sleep
autodet                     ipset                       smbd
avahi-daemon                iptables                    smbpasswd
awk                         iptables-restore            sort
badblocks                   iptables-save               ssh
basename                    kill                        statd
bcrelay                     killall                     strings
blkid                       klogd                       swapoff
brctl                       l2tp-control                swapon
busybox                     l2tpd                       switchmode
cat                         led_ctrl                    sync
chat                        less                        sysinfo
check_spectrum.sh           lighttpd                    syslogd
chk_app_state               lighttpd-arpping            tail
chkntfs                     lighttpd-monitor            tar
chmod                       lld2d                       tc
chown                       lld2d.conf                  tcpcheck
chpasswd                    lld2d.rtn66r                tee
chpasswd.sh                 ln                          telnet
chroot                      logger                      telnetd
clear                       login                       test
cmp                         lpd                         test_disk1
comgt                       ls                          test_disk2
console                     lsmod                       test_endian
cp                          lsusb                       test_if_exist_account
create_if_no_var_files      madwimax                    test_if_exist_share
crond                       makemime                    test_of_var_files
crontab                     md5sum                      test_share
cru                         mdev                        tftp
cstats                      minidlna                    top
cut                         miniupnpd                   touch
date                        mkdir                       tr
dbclient                    mkdosfs                     traceroute
dd                          mke2fs                      traceroute6
ddns_updated                mkfs.ext2                   true
del_account                 mkfs.ext3                   tune2fs
del_folder                  mkfs.vfat                   u2ec
df                          mknod                       udevtrigger
dhcp6c                      mkntfs                      udhcpc
dhcp6c-state                mkswap                      udpxy
dhcp6s                      mod_account                 umount
diff                        mod_folder                  uname
dirname                     modify_if_exist_new_folder  unzip
disk_monitor                modprobe                    updown.sh
disk_remove                 more                        uptime
dmesg                       mount                       uqmi
dnsmasq                     mountd                      usb_modeswitch
dropbear                    mt-daapd                    usb_notify
dropbearconvert             mtd-erase                   usbled
dropbearkey                 mtd-unlock                  usleep
dropbearmulti               mtd-write                   vconfig
du                          mv                          vi
e2fsck                      nas                         vsftpd
eapd                        nc                          wanduck
ebtables                    netstat                     watch
echo                        netstat-nat                 watchdog
egrep                       networkmap                  wc
ejusb                       nfsd                        webdav_client
emf                         nice                        webs_update.sh
entware-setup.sh            nmbd                        webs_upgrade.sh
env                         nohup                       wget
et                          nslookup                    which
ether-wake                  ntp                         wimaxc
exportfs                    ntpclient                   wimaxd
expr                        nvram                       wl
ez-ipupdate                 openssl                     wlcconnect
fdisk                       openvpn                     wlconf
fgrep                       ots                         wlcscan
find                        pc                          wpa_cli
find_modem_node.sh          pidof                       wpa_supplicant
find_modem_type.sh          ping                        wps_monitor
firmware_check              ping6                       wpsaide
flock                       portmap                     write_3g_ppp_conf
free                        pppd                        write_smb_conf
free_caches                 pppoe-relay                 write_webdav_conf
fsck.ext2                   pptpctrl                    zcat
fsck.ext3                   pptpd                       zcip
fsync                       printf
ftpget                      ps

Thanks!
Of cause I was interested not in ALL Linux commands, but rather ASUS Router specific ones...
 
Can anyone help me? I am looking to make any one of my LAN ports VLAN 300.

Not sure what commands I should be using.

I typed the following: "robocfg switch enable port 4 state enabled stp none tag 300 jumbo on vlan 300 ports "4t 8t"

Then:
admin@Curtis:/tmp/home/root# robocfg show
Switch: enabled
Port 0: 1000FD enabled stp: none vlan: 2 jumbo: on mac: 08:62:66:8e:50:10
Port 1: DOWN enabled stp: none vlan: 1 jumbo: on mac: 00:00:00:00:00:00
Port 2: DOWN enabled stp: none vlan: 1 jumbo: on mac: 00:00:00:00:00:00
Port 3: 1000FD enabled stp: none vlan: 1 jumbo: on mac: e0:69:95:e5:48:ed
Port 4: DOWN enabled stp: none vlan: 300 jumbo: on mac: 00:00:00:00:00:00
Port 8: DOWN enabled stp: none vlan: 1 jumbo: on mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
1: vlan1: 1 2 3 5 7t
2: vlan2: 0 7
300: vlan300: 4t 8t
1045: vlan1045: 2 4 5 7 8u
1046: vlan1046: 1t 4 5
1047: vlan1047: 0t 5t
1099: vlan1099: 0t 3 4t 5t 7t 8u
1100: vlan1100: 4t
1101: vlan1101: 0 1 5t
1102: vlan1102: 1 4t 5 7t 8u
1103: vlan1103: 0 1 4 5 7t 8t
admin@Curtis:/tmp/home/root#

However, in my ethernet ports under tools-->sysinfo it reads:

Ethernet Ports
Port VLAN Link State Last Device Seen
WAN 2 1000 Full Duplex 20:B5:C6:05:03:BC
LAN 4 1 Down <none>
LAN 3 1 Down <none>
LAN 2 1 1000 Full Duplex E0:69:95:E5:48:ED
LAN 1 1 Down <unknown>


So it appears it didn't take the command.

I don't care what port carries VLAN 300 I just want one of them to do it. Please help
 
Thanks!
Of cause I was interested not in ALL Linux commands, but rather ASUS Router specific ones...

List is incomplete anyway.

I noticed two commands not in there that I use when setting up my router and there may be more commands missing from that list.

dhcp_staticlist

custom_clientlist
 
List is incomplete anyway.

I noticed two commands not in there that I use when setting up my router and there may be more commands missing from that list.

dhcp_staticlist

custom_clientlist
Those aren't commands, they're NVRAM variables.

P.S. You're replying to a post that is almost 2 years old.
 
I know they are nvram but they are what you can put into the router via telnet or SSH to help setup/manage the router...
That still doesn't make them commands though. ;)

You could enter something like:

nvram get dhcp_staticlist

nvram is a command (and is in the list above), get and dhcp_staticlist are just parameters to that command.

There are about 350 commands and over 2000 NVRAM variables. If you want to post every possible combination be my guest. :)
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top