Can a batch file be created to login to network router

April 25, 2019 at 14:21:36
Specs: Windows 7
I've never used batch files or scripting code, but I'm in need of a batch file that can access my network router (Cradlepoint) @ 192.168.0.1 and login with the password. It would also be nice if it could access a drop down menu from a window tab. The problem is, the LTE aircard modem connected to the router loses packer transfers either in or out but not both ways, and LAN access points lose internet access. The router or the modem has to be rebooted to get full connectivity again. Or, login to the router and go to the internet connection window and cycle the LTE connection off and wait 15 seconds to cycle back on and all is good again which is much quicker than the reboot process. A batch file to accomplish this would be even better. Any info on this would be appreciated.

See More: Can a batch file be created to login to network router

Report •

#1
April 26, 2019 at 05:01:57
It would depend on the router. I'm not at all familiar with Cradlepoint equipment. Can you ssh or telnet into it? If so, then it may be possible to write a script or batchfile to access the router and perform a couple of commands.

If it's a typical SOHO router, I would suspect it's not going to be possible to do what you wish. I would contact the OEM support and ask them if they know if you don't already. I suspect the manual would tell you too.

What kind of switch are you using? If it's managed you could always do a port mirror and see which interface is dropping packets.

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

#2
April 26, 2019 at 09:47:36
I found the router manual and it does allow remote SSH access when the SSH server is enabled. I'm seeing the packet loss in the router's internet connection manager which displays i/o count in bytes rather than packets. When the network access points lose connection, the router and aircard modem (Netgear 341U) are still happy and connected with a strong LTE connection. The only commonality with the signal loss condition is the router byte count ceasing in one direction. I'm thinking that the problem may be with the aircard and signal quality. of the 2.5ghz LTE signal. The signal strength is relatively strong (mid -70s dbm) but ragged with spike drops. SINR pretty much correlates with RSSI at arout 18 db. I've swapped the router and aircard out with the same models of each to no avail. Incidentally, this setup has worked fine for 5 years and just started with the problem about 6 weeks ago.

Report •

#3
April 26, 2019 at 13:01:25
You should be able to create a script to remotely access the router using ssh and have it run commands. ssh isn't native to windows so you'll need to install something to use it. I use MobaXterm but I've heard "cygwin" (spelling) is good too.

Sounds to me like you've figured out where the error is occurring. Now to figure out why it's happening.

Did anything change 6 weeks ago? In your home, in the neighborhood? It's either a hardware issue (trying a different card and router is indicative it's not a hardware issue) or interference, or perhaps signal degradation due to some issue with the providers hardware.

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

Related Solutions

#4
April 26, 2019 at 13:37:39
Thanks for your info and help. The signal loss problem is getting to be quite aggravating. It''s went from a couple of days to minutes apart in frequency of occurrence. I'm not aware of any particular event that might have started the problem. I considered the possibility of the router's 2.4 ghz wi-fi (no dual band) interfering with Sprint's R41 2.5 ghz band that the modem is using, but turning of wi-fi didn't stop the problem. I'm in a rural area and internet options are limited, so I think I'm just going to have to live with it. The batch reset thing would ease the restart process, especially for my wife who has to stand on a stool to pull the modem usb cable and replace it after 20 seconds to start the modem reboot process.

Report •

#5
April 26, 2019 at 14:07:24
It occurs to me that if it is a signal issue, you could look into a cell booster. If they're not too expensive, that might fix the issue for you and get rid of the need to reboot anything.

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

#6
April 26, 2019 at 19:19:13
Sprint sent me a contraption they call the Magic Box which is basically a signal booster and enhancer. I set the device in a window facing the tower for about a week, but it could never connect to the Sprint network. The tower is less than 2 miles away and the device showed that it was receiving a strong signal.

Report •

Ask Question