Solved

Checking if other systems are operational

Posted on 1998-10-30
6
137 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now