Solved

Disconnect RAS connection

Posted on 2004-04-02
4
399 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 250 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Make the most of your online learning experience.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month5 days, 12 hours left to enroll

626 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