5

IP Address info from Router

Posted in Internet by parvez 128 days ago

Installed lynx and added egrep and sed magic to get the IP Address information from my CISCO Router.

/opt/local/bin/lynx -dump -auth=admin:PASSWORD -accept_all_cookies http://192.168.1.1/Status_Router.asp | egrep -E ":  " | sed "s/   :  //g" | awk 'NR==3'

I did not want to use whatismyip.com to get my IP Address. Prefer to get the info locally.

Thanks!

Comments

Log in to comment or register here.