Need a direction to start this project...

aaascnow

  • Joined: Apr 13, 2011
  • Posts: 38

Wed 7/20/2011 - 4:24

I have a server at a remote location.

 

I need to do the following

 

Disconect a VPN

ping the DNS name

Log the IP

log into a telnet

enter log in and password

enter a command

wait 30 seconds

ping the DNS again

log the IP

compare the IP

If the same do it again.

If a different IP than used in the last 24 hours

reconect the VPN

 

then make into an exe and run it with a time trigger

 

 

I need to log the IP and time stamp it, then read the file each time a new one is read.

 

I started this but got stuck trying to tell it to wait if NO Reply was found in the ping command.

 

So I got to step 3...

 

 

#1

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2734

Thu 7/21/2011 - 12:19

To log into the telnet, what do you use User Interface or Telnet prompt window? You can use the Send DOS Command and send through the corresponding argument to do what you need. Please find a list of the telnet commands here: http://technet.microsoft.com/en-us/library/bb491013.aspx :) Samantha

#2
Not a member yet? Register

Copyright 2014 - Softomotive Ltd