以下操作程序僅適用於 TECOM AR4031C (使用 Broadcom BCM6338 晶片), 不適用於 TECOM AR4031B (使用 Broadcom BCM6335 晶片), 與 "
Hacking Beetel 220x ADSL router (Broadcom BCM6338)" 這篇文章有些不同, TECOM AR4031C 需使用 Console 連接線進行操作, 在輸入 Ctrl-C & Ctrl-D 之後可以中斷 Shell script, 但是若是使用 Telnet 連接方式, 在輸入 Ctrl-C & Ctrl-D 之後, Shell script 中斷後 Telnet session 會被退出結束.
Login:
cht
Password:
Main Menu
1. ADSL Link State
2. LAN
3. WAN
4. DNS Server
5. Route Setup
6. NAT
7. Firewall
8. Quality Of Service
9. Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
->
輸入 Ctrl-C & Ctrl-D
-> exit
Done
#
help all
Built-in commands:
-------------------
. : break cd continue eval exec exit export help login newgrp
read readonly set shift times trap umask wait [ busybox cat df
dmesg echo expr false ifconfig init insmod iproute kill klogd
linuxrc logger logread lsmod mkdir modprobe mount msh ping ps
pwd reboot rm rmmod route sendarp sh sysinfo syslogd test tftp
tftpd true tty vconfig
#
sysinfo
Number of processes: 18
12:01am up 1 min,
load average: 1 min:0.29, 5 min:0.07, 15 min:0.02
total used free shared buffers
Mem: 6068 5496 572 0 428
Swap: 0 0 0
Total: 6068 5496 572
#
lsmod
Module Size Used by
bcm_enet 18224 0 - Live 0xc0031000
bcmprocfs 12288 0 - Live 0xc000f000
adsldd 117936 0 - Live 0xc005a000
blaadd 5808 0 - Live 0xc000c000
atmapi 56880 2 adsldd,blaadd, Live 0xc0022000
#
mount
/dev/mtdblock0 on / type squashfs (ro)
/proc on /proc type proc (rw,nodiratime)
tmpfs on /var type tmpfs (rw)
#
df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock0 1408 1408 0 100% /
tmpfs 192 52 140 27% /var
#
ps
PID Uid VmSize Stat Command
1 cht 256 S init
2 cht SWN [ksoftirqd/0]
3 cht SW< [events/0]
4 cht SW< [khelper]
5 cht SW< [kblockd/0]
6 cht SW [pdflush]
7 cht SW [pdflush]
8 cht SW [kswapd0]
9 cht SW< [aio/0]
10 cht SW [mtdblockd]
17 cht 300 S -sh
83 cht 188 S pvc2684d
268 cht 680 S telnetd
269 cht 720 S sshd
273 cht 160 S bftpd
278 cht 192 S tftpd
279 cht 804 S httpd
545 cht 256 R ps
#
cat /proc/cpuinfo
system type : 96338R_EPT
processor : 0
cpu model : BCM6338 V1.0
BogoMIPS : 238.38
wait instruction : no
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : no
VCED exceptions : not available
VCEI exceptions : not available
#
cat /proc/meminfo
MemTotal: 6068 kB
MemFree: 536 kB
Buffers: 428 kB
Cached: 2168 kB
SwapCached: 0 kB
Active: 1508 kB
Inactive: 1568 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 6068 kB
LowFree: 536 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 1364 kB
Slab: 1712 kB
Committed_AS: 1824 kB
PageTables: 144 kB
VmallocTotal: 1048560 kB
VmallocUsed: 264 kB
VmallocChunk: 1048080 kB
#
cat /proc/filesystems
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev tmpfs
nodev pipefs
squashfs
nodev ramfs
#
cat /proc/stat
cpu 291 0 1245 11741 38 0 16
cpu0 291 0 1245 11741 38 0 16
intr 27111 0 0 0 0 0 0 0 26654 0 0 124 0 0 279 0 0 0 0 0 0 0 0 0 54 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 3241
btime 946684800
processes 733
procs_running 1
procs_blocked 0
#
cat /proc/vmstat
nr_dirty 0
nr_writeback 0
nr_unstable 0
nr_page_table_pages 36
nr_mapped 341
nr_slab 428
pgpgin 995
pgpgout 0
pswpin 0
pswpout 0
pgalloc_high 0
pgalloc_normal 0
pgalloc_dma 17111
pgfree 17248
pgactivate 451
pgdeactivate 188
pgfault 30646
pgmajfault 20
pgrefill_high 0
pgrefill_normal 0
pgrefill_dma 423
pgsteal_high 0
pgsteal_normal 0
pgsteal_dma 547
pgscan_kswapd_high 0
pgscan_kswapd_normal 0
pgscan_kswapd_dma 363
pgscan_direct_high 0
pgscan_direct_normal 0
pgscan_direct_dma 297
pginodesteal 0
slabs_scanned 0
kswapd_steal 315
kswapd_inodesteal 0
pageoutrun 5
allocstall 5
pgrotated 0
#
cat /proc/cmdline
root=31:0 ro noinitrd
#
cat /proc/version
Linux version 2.6.8.1 (root@hp) (gcc version 3.4.2) #1 Thu Dec 1 16:13:28 CST 2005
#
reboot
# The system is going down NOW !!
Sending SIGTERM to all processes.
br0: port 2(nas_0_33) entering disabled state
device nas_0_33 left promiscuous mode
br0: port 2(nas_0_33) entering disabled state
br0: port 3(nas_0_36) entering disabled state
device nas_0_36 left promiscuous mode
br0: port 3(nas_0_36) entering disabled state
br0: port 4(nas_0_37) entering disabled state
device nas_0_37 left promiscuous mode
br0: port 4(nas_0_37) entering disabled state
br0: port 5(nas_0_38) entering disabled state
device nas_0_38 left promiscuous mode
br0: port 5(nas_0_38) entering disabled state
Sending SIGKILL to all processes.
Please stand by while rebooting the system.
Restarting system.