Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: My discoveries with the ECI modem via telnet  (Read 2736 times)

Ixel

  • Kitizen
  • ****
  • Posts: 1282
My discoveries with the ECI modem via telnet
« on: November 06, 2012, 10:00:08 AM »

I thought I'd open a new thread regarding commands of interest I've found, or more specifically easier ways of inputting commands to fetch stats and such.

I've noticed some people echo into a pipe file in the /tmp directory, well I've found a way that's much easier (not sure how many others have found it, but I'll share anyway incase someone doesn't know about it).

Example:
Code: [Select]
/ifx/vdsl2/dsl_cpe_pipe.sh g997lsg 0 1
nReturn=0 nDirection=0 nDeltDataType=1 LATN=0 SATN=0 SNR=61 ATTNDR=19592784 ACTPS=-901 ACTATP=103

Some interesting stats:
Code: [Select]
Alpha # /ifx/vdsl2/dsl_cpe_pipe.sh pmcctg 0 1
nReturn=0 nChannel=0 nDirection=1 nElapsedTime=4201 bValid=1 nCodeViolations=0 nFEC=0

Alpha # /ifx/vdsl2/dsl_cpe_pipe.sh pmcctg 0 0
nReturn=0 nChannel=0 nDirection=0 nElapsedTime=4221 bValid=1 nCodeViolations=0 nFEC=0

Alpha # /ifx/vdsl2/dsl_cpe_pipe.sh g997lsg 1 1
nReturn=0 nDirection=1 nDeltDataType=1 LATN=178 SATN=170 SNR=112 ATTNDR=85765760 ACTPS=-901 ACTATP=-3

Alpha # /ifx/vdsl2/dsl_cpe_pipe.sh g997lsg 0 1
nReturn=0 nDirection=0 nDeltDataType=1 LATN=0 SATN=0 SNR=61 ATTNDR=19633716 ACTPS=-901 ACTATP=103

Alpha # /ifx/vdsl2/dsl_cpe_pipe.sh g997lspbg 1
nReturn=0 nDirection=0 LATN[0]=125 LATN[1]=285 LATN[2]=454 LATN[3]=-32768 LATN[4]=-32768 SATN[0]=134 SATN[1]=283 SATN[2]=453 SATN[3]=-32768 SATN[4]=-32768 SNR[0]=111 SNR[1]=108 SNR[2]=115 SNR[3]=-32768 SNR[4]=-32768

Alpha # /ifx/vdsl2/dsl_cpe_pipe.sh g997lspbg 0
nReturn=0 nDirection=0 LATN[0]=11 LATN[1]=211 LATN[2]=334 LATN[3]=-32768 LATN[4]=-32768 SATN[0]=15 SATN[1]=209 SATN[2]=334 SATN[3]=-32768 SATN[4]=-32768 SNR[0]=60 SNR[1]=61 SNR[2]=61 SNR[3]=-32768 SNR[4]=-32768

Alpha # /ifx/vdsl2/dsl_cpe_pipe.sh g997csg 0 1
nReturn=0 nChannel=0 nDirection=1 ActualDataRate=59996000 PreviousDataRate=0 ActualInterleaveDelay=0 ActualImpulseNoiseProtection=0

Alpha # /ifx/vdsl2/dsl_cpe_pipe.sh g997csg 0 0
nReturn=0 nChannel=0 nDirection=0 ActualDataRate=19460000 PreviousDataRate=0 ActualInterleaveDelay=0 ActualImpulseNoiseProtection=0
« Last Edit: November 06, 2012, 10:42:52 AM by Ixel »
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: My discoveries with the ECI modem via telnet
« Reply #1 on: November 06, 2012, 09:11:58 PM »

An excellent find. Very interesting. And far simpler.  :clap2:

Have you mentioned it to Bald_Eagle1? Perhaps he is revising his scripts, as I type this.  ::)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Ixel

  • Kitizen
  • ****
  • Posts: 1282
Re: My discoveries with the ECI modem via telnet
« Reply #2 on: November 06, 2012, 10:04:33 PM »

I haven't, but I would imagine he'll read this thread, or has already done so. I should hopefully be releasing a similar tool for the ECI in a few days, preview thread is in the monitoring forum.
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: My discoveries with the ECI modem via telnet
« Reply #3 on: November 06, 2012, 11:00:42 PM »

I have indeed read it & very interesting it is too, Ixel.

What you have found looks far more efficient than the echoing method that I have had a quick play with:-

Code: [Select]
Alpha #
Alpha # echo "g997lspbg 1" > /tmp/pipe/dsl_cpe0_cmd
Alpha # cat /tmp/pipe/dsl_cpe0_ack
nReturn=0 nDirection=0 LATN[0]=132 LATN[1]=305 LATN[2]=489 LATN[3]=-32768 LATN[4]=-32768 SATN[0]=117 SATN[1]=302 SATN[2]=484 SATN[3]=-32768 SATN[4]=-32768 SNR[0]=57 SNR[1]=56 SNR[2]=59 SNR[3]=-32768 SNR[4]=-32768


I presume (maybe incorrectly) that the Linux script /ifx/vdsl2/dsl_cpe_pipe.sh includes the echo and cat commands or some other shortcut(s) for the same result.

Unfortunately, I don't currently have much time to experiment/revise any scripts.
It's even harder as I don't have an unlocked ECI modem of my own to play with (yet), so I have to remotely access someone else's for the time being.

I will be keeping my eagle eye on progress though.

It would be really good if anyone could suss out how to format the ECI's stats to the same format as used in the HG612 graphing scripts (using an ongoing modem_stats.log for the data over many hours, days, weeks, months & even more than a year if deemed necessary).

Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: My discoveries with the ECI modem via telnet
« Reply #4 on: November 09, 2012, 02:49:58 AM »

Quote
I presume (maybe incorrectly) that the Linux script /ifx/vdsl2/dsl_cpe_pipe.sh includes the echo and cat commands or some other shortcut(s) for the same result.

Your presumption is quite correct. The dsl_cpe_pipe.sh script is just --

Code: [Select]
#!/bin/sh

pipe_no=0

# use specified pipe no
case "$1" in
        0|1|2)
                pipe_no=$1; shift; ;;
esac

#echo "Call dsl_pipe with $*"
##echo $* > /tmp/pipe/dsl_cpe${pipe_no}_cmd
##result=`cat /tmp/pipe/dsl_cpe${pipe_no}_ack`
echo "$*" > /tmp/pipe/dsl_cpe0_cmd
result=`cat /tmp/pipe/dsl_cpe0_ack`
echo "$result"

Essentially the arguments supplied to that script are echo'd to dsl_cpe0_cmd and the result is read from dsl_cpe0_ack. Once the 'hackery' is removed, the actual script is --

Code: [Select]
#!/bin/sh

echo "$*" > /tmp/pipe/dsl_cpe0_cmd
result=`cat /tmp/pipe/dsl_cpe0_ack`
echo "$result"

I should also mention that /tmp is just a symbolic link to the /var/tmp/ directory, so the script could be reduced to --

Code: [Select]
#!/bin/sh

echo "$*" > /var/tmp/pipe/dsl_cpe0_cmd
echo $(cat /var/tmp/pipe/dsl_cpe0_ack)
« Last Edit: November 09, 2012, 02:59:43 AM by burakkucat »
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.