ECS-L Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
RE: [ECS] Re: NETSTAT
Martin Terry
Thu, 8 Jul 1999 08:39:58 -0700

Mark, you could try a "ping" command before the netstat

Ping is a command line utility that easily lends itself to batch files.
Ping the address of the ISPs router or another "known" entity.

-----Original Message-----
From: Mark Gilmore [mailto:omnip@usit.net]
Sent: Thursday, July 08, 1999 8:02 AM
To: ecs-list@netbloc.com
Subject: [ECS] Re: NETSTAT


Very impressive Scott - Pulling up a web page did indeed
cause "NETSTAT -N" to work :-).
And WINIPCFG always works, regardless.
The problem with WINIPCFG is that it is interactive,
and it's output cannot be routed to a text file.
I need to get the IP address into a text file,
so that it may be emailed to the remote PC.
I guess I could have ECS connect AND pull up a web page
(so as to get NETSTAT to work), but this is awful "tackey".

Does anyone have a better solution ?
I could write a VC++ program to get this info, but
am having difficulty determining what functions to call:
GetServerVariable looks like it would do the trick,
but it requires a mysterious "HCONN" input argument,
which I can't find how to set or obtain.

Scott Reston wrote:
> 
> try connecting to a web site or 2 before running netstat... it may be that
netstat only shows 'routes' that you've already established. did you try
running "winipcfg"
> as was suggested on the ECS list? that might do the trick...
> 
> On Thu, 08 Jul 1999 05:56:46 -0700, Mark Gilmore wrote:
> 
> >Scott, "NETSTAT -n" worked for me last night, but
> >reports nothing this morning. Rebooted - same result.
> >Any ideas as to why ? I AM connected to the ISP.
> >Thanks.
> >--
> >Mark Gilmore
> >Omnipotence (ECS Home Automation Software)
> >omnip@usit.net
> >http://www.usit.com/omnip

-- 
Mark Gilmore
Omnipotence (ECS Home Automation Software)
omnip@usit.net
http://www.usit.com/omnip

  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.