Results 1 to 1 of 1
Mac OSX Automator for xDSL stats for HG612 & Vigor 130
This is a discussion on Mac OSX Automator for xDSL stats for HG612 & Vigor 130 within the Sky Broadband (Fibre) Help forums, part of the Sky Broadband help and support category; I have created an little script using Automator built into OSX to grab DSL stats on an unlocked HG612 and ...
- 30-12-17, 06:13 PM #1
Mac OSX Automator for xDSL stats for HG612 & Vigor 130
I have created an little script using Automator built into OSX to grab DSL stats on an unlocked HG612 and Visor 130 using only a few mouse clicks, if like me you like to keep an eye on stats and log in frequently.
Open Automator
Click File
Click New
Click Service
Click Choose
Click the drop down box for Service receives and select no input
In the search box on the left type run and double click Run AppleScript
Delete everything in here and replace with the code below for either the HG612 or the Vigor 130
Click the little Hammer (build Icon)
Click the Play (Run Icon) to test it.
Click File
Click Save and give the service a name
Edit 1: depending on the speed of your Mac you may need to increase the first delay time if you find that Terminal doesn't boot quick enough
To access it:
Click whatever application you have open at the time (whatever is next to the Apple logo in the menu bar) select Services then click the serivice
HG612
Code:tell application "Terminal" activate delay 1 set currentTab to do script "telnet put HG612 IP address here" delay 1 do script "put HG612 username here" in currentTab delay 0.5 do script "put HG612 password here" in currentTab delay 0.5 do script "sh" in currentTab delay 0.5 do script "xdslcmd info --stats" in currentTab delay 0.5 do script "exit" in currentTab delay 0.5 do script "exit" in currentTab end tell
Code:tell application "Terminal" activate delay 1 set currentTab to do script "telnet put Visor 130 IP address here" delay 1 do script "put Vigor 130 username here" in currentTab delay 0.5 do script "put Vigor 130 password here*" in currentTab delay 0.5 do script "vdsl status" in currentTab delay 0.5 do script "exit" in currentTab end tell
HG612 EXAMPLE
Code:tell application "Terminal" activate delay 1 set currentTab to do script "192.168.2.1" delay 1 do script "admin" in currentTab delay 0.5 do script "SkyUser" in currentTab delay 0.5 do script "sh" in currentTab delay 0.5 do script "xdslcmd info --stats" in currentTab delay 0.5 do script "exit" in currentTab delay 0.5 do script "exit" in currentTab end tell
Vigor 130 EXAMPLE
Code:tell application "Terminal" activate delay 1 set currentTab to do script "telnet 192.168.2.1" delay 1 do script "admin" in currentTab delay 0.5 do script "SkyUser" in currentTab delay 0.5 do script "vdsl status" in currentTab delay 0.5 do script "exit" in currentTab end tell
Last edited by andrewjr; 30-12-17 at 07:09 PM.
AirPort Extreme + Sky Fibre Guide | Mac OSX Automator for xDSL stats for HG612 & Vigor 130
Hauwei Cab > VMG1312-B10A > Ubiquiti UniFi | 58301/12298
Advertisement