Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Disconnect RAS connection

Posted on 2004-04-02
4
Medium Priority
?
405 Views
Last Modified: 2011-10-03
Hello-
We have a dial-up ras server that user's use to synchronize a remote db. We are using a profile in Remote Access Policies in the Routing and Remote Access snap-in to disconnect the call if idle for 5 min. This works to disconnect users, but not on all modems. The 1st modem in the pool for example never will disconnect the user even if idle for hours. Any suggestions as to why this would happen or where the policy is being overwritten? thanks
0
Comment
Question by:mlandsitel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 7

Accepted Solution

by:
Chatable earned 1000 total points
ID: 10743522
The Modem idle disconnect function disconnects your dial-up connection only if no traffic is sent whatsoever during the timeout period. If ANY traffic occurs during that time (like, somebody sends you a ping), the timeout is reset. Check to see if the 1st modem somehow receives some misdirected traffic etc.
In addition, why even count on the idle disconnect function if you can simply disconnect the connection yourself?
If you have access to the source code of the program that does the syncronization you can use the RasDial and RasHangUp API functions to automatically connect/disconnect the RAS connection. If you don't, you can simply create a batch file to connect, execute the syncronization program then immediately disconnect. The command "rasdial" is used to connect/disconnect.
If you didn't understand a word, here's a short example. Suppose you have a dialup connection named "internet".
C:\> rasdial internet
Command completed successfully.

[ You are now connected ]

C:\> rasdial internet /disconnect
Command completed successfully.

[ You are now disconnected ]
0
 

Expert Comment

by:shenry1307
ID: 10791061
If using multiple COMx ports, the easiest way I know of is to redirect the "hangup" command to that port.

Example:
======

You have a modem using COM1 ...

C:\>echo ATH > COM1

This can be easily scripted.

Good luck.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question