User Tools

Site Tools

This wiki is read only and for archival purposes only. >>>>>>>>>> Please use the new OpenWrt wiki at <<<<<<<<<<

Scripts to get information from modems

Get IP address

Fibertel Cisco DPC3825 DOCSIS 3.0 Data Gateway

wget -q --post-data="username_login=admin&password_login=password" \
  --timeout=1 -O /dev/null
wget -qO - | sed -n -e \
  '/InternetIPAddress/ s/^.*>\([0-9][0-9\.]*\)<.*$/\1/p'

Get speed

Arnet P.DG A4001N

# Reads modem speed
wget -qO - | sed -e \
  '1,/>Line Rate - Upstream (Kbps):</d' | sed -e \
  '6,$ d' -e '2,4 d' -e 's/<\/.*$//' -e 's/.*>//'

doc/howto/ddns.ipscript.txt · Last modified: 2016/02/20 05:24 by Nilfred