|
|
| Author |
Message |
nfsnfs Where's my Signal?


Joined: December 15 2007 Posts: 7
|
Posted: Sat Dec 15, 2007 10:30 am Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
Ha thanks for this .
|
|
| Back to top |
|
 |
mdbscorpio Where's my Signal?


Joined: December 28 2007 Posts: 14
|
Posted: Sat Dec 29, 2007 5:05 am Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
absolutely amazing... works like butter on mine... thnk god for my sleep savings now...
|
|
| Back to top |
|
 |
mdbscorpio Where's my Signal?


Joined: December 28 2007 Posts: 14
|
Posted: Sat Dec 29, 2007 10:56 pm Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
i'm not able to schedule routerOFF.bat and routerON.bat properly in any scheduler... the thing is tht the scheduler runs the task but i think without using telnet... what should i set in the parameters for those two tasks? plz help !!!
Edit @4:24 pm IST
hey... found tht problem... it has to run in the specific directory where TS10 is located and in my case it C:\routerswitch... now everything's working fine... i'm migrating from 250 to 500 starting from Jan 1 2008... god i'm so excited... got loads of stuffss to download !!! 
|
|
| Back to top |
|
 |
Aditya Where's my Signal?


Joined: February 15 2008 Posts: 1
|
Posted: Fri Feb 15, 2008 10:54 am Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
routeroff.bat works on MT841 but router on.bat doesnt works.Can anyone tell me telnet command for restarting the router.tell me wat shud type in the text file in order to reboot the modem. PLZ help anyone
|
|
| Back to top |
|
 |
karthiktha Where's my Signal?


Joined: March 19 2008 Posts: 2
|
Posted: Wed Mar 19, 2008 9:07 pm Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
hi.. i have configured my modem in bridge mode and using ppoe dialer in windows to connect.. will it work for me.. or this is only for those configuring in ppoe(always on) mode..
|
|
| Back to top |
|
 |
parthashome Can I use the phone?


Joined: December 28 2006 Posts: 291 Location: Kolkata
|
|
| Back to top |
|
 |
avinashpathak Can I use the phone?


Joined: December 24 2006 Posts: 220 Location: JUNGLE
|
Posted: Thu Mar 20, 2008 1:31 am Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
| parthashome wrote: |
i use dataone quick usage finder to schedule my connections in windows.
i works great. it automatically connects at 2:01 and disconnects at 7:59 |
thanx, i wasnt aware of it. i was using shaplus to find out usage and dap to schedule the downloads.
this one is really great, thanx once again..
 but no 500 combo option...
_________________ MERA COMPU BABA - Core 2 Quad (Q6600) 1066 FSB @ 2.4 GHz + Intel DQ965GF + NVIDIA 7300 SE + 500 GB SATA II (250 Seagate + 250 Hitachi) + 8 GB (2+2+2+2) DDR II RAM @ 800 Mhz + Intex 19" TFT + Samsung DVD RW 22X SATA + Creative 5.1 + Intex 5 MP Webcam + SmartAX MT841 + Home 500 Combo + MS Win Vista Business + MS Windows 7 64bit (Built 7600). |
|
| Back to top |
|
 |
lijodavis Where's my Signal?


Joined: May 05 2006 Posts: 4
|
Posted: Wed Apr 16, 2008 10:53 pm Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
Thanks or this.You really saved my sleep.
|
|
| Back to top |
|
 |
arvind_das Where's my Signal?


Joined: June 28 2008 Posts: 1
|
|
| Back to top |
|
 |
deepakOne Where's my Signal?


Joined: July 29 2008 Posts: 5
|
|
| Back to top |
|
 |
zabak Where's my Signal?


Joined: January 18 2006 Posts: 19
|
Posted: Sun Jan 18, 2009 12:57 am Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
WHY NO ONE IS DEVELOPING FOR VISTA...I NEED THIS FOR VISTA...MODS PLEASE HELP ME FOR THIS SCIPT....
|
|
| Back to top |
|
 |
deepakOne Where's my Signal?


Joined: July 29 2008 Posts: 5
|
Posted: Sun Jan 18, 2009 10:13 am Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
Here is example windows script that could do connect and disconnect of router. THIS IS NOT VISTA SPECIFIC SOLUTION BUT WORKS FOR VISTA.
To Enable Router:
Const EVENT_FAILURE = 1
Const EVENT_SUCCESS = 0
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapter")
For Each objItem in colItems
' Wscript.Echo "Name: " & objItem.Name
' Wscript.Echo "Description: " & objItem.Description
' Wscript.Echo "Status: " & objItem.NetEnabled
if objItem.NetEnabled=false then
objItem.Enable
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent EVENT_SUCCESS,"Network Card Enabled Successfully"
elseif objItem.NetEnabled=true then
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent EVENT_FAILURE,"Network Card Is Already Enabled"
End If
Next
To Disable Router:
Const EVENT_FAILURE = 1
Const EVENT_SUCCESS = 0
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapter")
For Each objItem in colItems
' Wscript.Echo "Name: " & objItem.Name
' Wscript.Echo "Description: " & objItem.Description
' Wscript.Echo "Status: " & objItem.NetEnabled
if objItem.NetEnabled=true then
objItem.Disable
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent EVENT_SUCCESS,"Network Card Disabled Successfully"
elseif objItem.NetEnabled=false then
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent EVENT_FAILURE,"Network Card Is Already Disabled"
End If
Next
Save both the scripts as .vbs files and double click on saved file. Check if it works for you and let me know.
This solution will work, but still my recommendation would be using Bridge mode [dialer] that's safest way.
I hope this will help.
|
|
| Back to top |
|
 |
AlienTech Good Enough


Joined: July 29 2006 Posts: 1076
|
|
| Back to top |
|
 |
zabak Where's my Signal?


Joined: January 18 2006 Posts: 19
|
Posted: Mon Feb 02, 2009 11:54 pm Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
| deepakOne wrote: |
Here is example windows script that could do connect and disconnect of router. THIS IS NOT VISTA SPECIFIC SOLUTION BUT WORKS FOR VISTA.
<-- snip -->
|
THIS WORKS PERFECt....
BUT.... i need to restart router...this is dissabling network and reenabling it. IP Adress is not refreshing....i need to restart router
|
|
| Back to top |
|
 |
aloke_ranjan Where's my Signal?


Joined: January 27 2010 Posts: 1
|
Posted: Wed Jan 27, 2010 11:49 pm Post subject: Re: Schedule router disconnect and dial in Linux and Windows |
|
Method given by noobiont for enable and disable modem router(Huawei MT841) and for Ubuntu 9.10 (karmic), Gnome:2.28.1 and Kernel: 2.6.31-17-generic is not working message is appearing that "Command line failed to execute". Any suggestion or modification in this regard , I will be very thankful to him..
|
|
| Back to top |
|
 |
|
|
|