Solved

Checking if other systems are operational

Posted on 1998-10-30
6
138 Views
Last Modified: 2010-04-30
I am building a system in VB5 to monitor other systems.  It will be running on Win95 or NT and be checking a few OS2 WARP machines at some time interval to check if they are up and running.  I am looking for something that gives good information about the condition of the machine not just that the NIC card is working.  Any suggestions?
0
Comment
Question by:louy
6 Comments
 
LVL 3

Expert Comment

by:HATCHET
ID: 1442589
louy,

With Windows 95/98 and Windows NT, you can do an API call or two and check if the operating system is up and running.  Wiht OS2, I haven't a clue!  Sorry.   =]

If you need more info on the API's, lemme know how familiar you are with them and I'll try and give more info on it.

HATCHET
0
 
LVL 2

Expert Comment

by:chris_a
ID: 1442590
Can you have a share on them and read and write to that, that should be a good indication.
0
 

Author Comment

by:louy
ID: 1442591
Hatchet

I dont have any API knowledge, that sound interesting, but it is OS2.

Chris_a

I can do a share.  I could write an OS2 batch file to look for some file that my VB5 monitoring system puts out there and have it do something to it.  At least I would know that process is running.  Just looking for some suggestions.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 12

Accepted Solution

by:
mark2150 earned 100 total points
ID: 1442592
If you can schedule a job to run on the remote systems have it update a file with the current time/date. This will let you know when the last checkin was.

A simple program:

KILL "MYTOKEN"
OPEN "MYTOKEN" FOR OUTPUT AS #1
PRINT #1, "I'm Alive!"
CLOSE #1

It's not necessary for your monitoring software to OPEN the file, just watch the time/date stamp and you'lll know when the last time the remote system ran.

M

0
 

Author Comment

by:louy
ID: 1442593
I was hoping for something slick, but this type of approach probably provides better info.  The OS2 machines run several programs most of which write to individual logs already.  I created a file that stores the log file name to check and the frequency to check it.  I also stored an amount of time after which if there is no activity to the log to send an alert.

  I am just using the FileDateTime function, I think this is what was suggested?  

The programs that write the log files are written in C and do not like it when anyone opens them.  Does this function open the files or just grap the time stamp without opening them?
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1442594
FileDate/Time should just give you the date/time stamp and not actually open the files. The beauty of this is it's simplicity. It will work no matter what OS the monitored systems are using. A DIR command will reveal the data if nothing else does and there is little that can go wrong.

M

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

774 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