cancel
Showing results for 
Search instead for 
Did you mean: 

Netgear CLI

Be3G
Grafter
Posts: 6,111
Thanks: 1
Registered: ‎05-04-2007

Re: Netgear CLI

Alas, I think your last sentence sums up the situation... it seems that commands such as cat and ls literally don't exist. I've tried upper- and lower-case, doing 'cat' on them to see if they show any script, using them with 'sudo' to see if it's the permissions, but nothing works - I always get either 'not found' or 'no such file or directory'. That seems rather bizarre to me, because the CLI is definitely supposed to be a customer-facing feature, as telnet is listed as one of the remote access methods one can enable in the modem's webpage GUI. But it really does seem as though the standard linux commands are non-existent in the router's firmware, so I think we'll have to give up on the idea. Thanks for all the help though alanb - you definitely had a load of ideas I wouldn't have thought of!
alanb
Grafter
Posts: 459
Registered: ‎24-05-2007

Re: Netgear CLI

I'm a tad disappointed that my old FR328 doesn't have this feature, so that I can play this game too.
But before you give up completely, have a read of this ...
http://bbs.adslguide.org.uk/showthreaded.php?Cat=0&Board=dslrouter&Number=3412081&page=1&view=collap...
Quote
I typed adsl which brings up another list and in there is command ..
adsl info --stats
which brings up a whole bunch of info.
Netgear DM111 ADSL2+ Modem
Software Version: 3.28r
Login name: admin
Password:
> help
?
help
logout
reboot
adsl
atm
brctl
cat
df
dumpcfg
echo
ifconfig
kill
arp
defaultgateway
dhcpserver
dns
lan
passwd
ppp
remoteaccess
localaccess
restoredefault
route
save
swversion
wan
ping
ps
pwd
sysinfo
tftp
> adsl
Usage: adsl start [--up] [--mod <a|d|l|t|2|p|e|m>] [--lpair <(i)nner|(o)uter>]
[--trellis <on|off>] [--snr <snrQ4>] [--bitswap <on|off>] [--sra <on|
off>]
adsl stop
adsl connection [--up] [--down] [--loopback] [--reverb]
[--medley] [--noretrain] [--L3] [--diagmode] [--L0]
[--tones <xmtStart xmtNum xmtMap rcvStart rcvNum rcvMap>]
adsl configure [--mod <a|d|l|t|2|p|e|m>] [--lpair <(i)nner|(o)uter>]
[--trellis <on|off>] [--snr <snrQ4>] [--bitswap <on|off>] [--sra <on|
off>]
adsl bert [--start <#seconds>] [--stop] [--show]
adsl info [--state] [--show] [--stats] [--SNR] [--QLN] [--Hlog] [--Hlin]
[--HlinS] [--Bits] [--linediag] [--reset]
adsl adslstatus
adsl --version
adsl --help
> adsl info --stats
adsl: ADSL driver and PHY status
Status: Showtime Channel: FAST, Upstream rate = 762 Kbps, Downstream rate = 239
0 Kbps
Link Power State: L0
Mode: ADSL2+
Channel: Fast
Trellis: ON
Line Status: No Defect
Training Status: Showtime
Down Up
SNR (dB): 16.9 5.5
Attn(dB): 57.5 32.4
Pwr(dBm): 17.1 12.4
Max(Kbps): 3336 19997
Rate (Kbps): 2390 762
G.dmt framing
K: 143(0) 32
R: 12 16
S: 1 2
😧 16 8
ADSL2 framing
MSGc: 11 24
B: 142 31
M: 1 2
T: 2 4
R: 12 16
S: 1.9076 2.6666
L: 650 240
😧 16 8
Counters
SF: 653804 653802
SFErr: 122 7107
RS: 22229370 22229268
RSCorr: 2766 5755700
RSUnCorr: 1265 0
HEC: 104 3539
OCD: 0 0
LCD: 0 0
Total Cells: 59765530 2658710477
Data Cells: 543437 65119541
Drop Cells: 0
Bit Errors: 0 190383
LOF: 20 0
LOS: 11 0
LOL: 0 0
LPR: 0 0
ES: 13886 2439
SES: 2109 78
UAS: 74 1440
Total time = 1 days 5 hours 50 sec
SF = 16445455
CRC = 138000
LOS = 11
LOF = 20
ES = 13886
Latest 1 day time = 5 hours 50 sec
SF = 1112561
CRC = 1368
LOS = 1
LOF = 5
ES = 256
Latest 15 minutes time = 50 sec
SF = 3092
CRC = 0
LOS = 0
LOF = 0
ES = 0
Previous 15 minutes time = 15 min 0 sec
SF = 55484
CRC = 7
LOS = 0
LOF = 0
ES = 5
Previous 1 day time = 24 hours 0 sec
SF = 5340251
CRC = 49447
LOS = 7
LOF = 0
ES = 8049
15 minutes interval [-30 min to -15 min] time = 15 min 0 sec
SF = 55484
CRC = 11
LOS = 0
LOF = 0
ES = 10
15 minutes interval [-45 min to -30 min] time = 15 min 0 sec
SF = 55484
CRC = 12
LOS = 0
LOF = 0
ES = 8
15 minutes interval [-60 min to -45 min] time = 15 min 0 sec
SF = 55545
CRC = 16
LOS = 0
LOF = 0
ES = 11
>
alanb
Grafter
Posts: 459
Registered: ‎24-05-2007

Re: Netgear CLI

And if you really want to get your hands dirty, have a look at this ...
http://www.castalie.org/projects/DM111P.html
Incidentally this link confirms that it has a Busybox shell, so perhaps a bit of googling on that might move you forward.
Be3G
Grafter
Posts: 6,111
Thanks: 1
Registered: ‎05-04-2007

Re: Netgear CLI

Hmm... I'd seen both of those links already (the TBB one was my first point of reference), but I must admit that I didn't originally read the second one too closely as it all seemed a bit beyond me... however, perhaps it's worth giving a second go, and you say, the confirmation that it's BusyBox could provide a few leads. Thanks again, and I'll report back if I get anywhere useful. Smiley