User Tools

Site Tools


docs:guide-user:network:wan:ddns.ipscript

Scripts to get information from modems

Get IP address

Fibertel Cisco DPC3825 DOCSIS 3.0 Data Gateway

#!/bin/sh
wget -q --post-data="username_login=admin&password_login=password" \
  --timeout=1 http://192.168.100.1/goform/Docsis_system -O /dev/null
wget -qO - http://192.168.100.1/Status.asp | sed -n -e \
  '/InternetIPAddress/ s/^.*>\([0-9][0-9\.]*\)<.*$/\1/p'

Get speed

Arnet P.DG A4001N

#!/bin/sh
 
# Reads modem speed
 
wget -qO - http://10.0.0.2/info.html | sed -e \
  '1,/>Line Rate - Upstream (Kbps):</d' | sed -e \
  '6,$ d' -e '2,4 d' -e 's/<\/.*$//' -e 's/.*>//'
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
docs/guide-user/network/wan/ddns.ipscript.txt · Last modified: 2018/03/03 20:13 by bobafetthotmail