Solved

Checking if other systems are operational

Posted on 1998-10-30
6
136 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
Comment Utility
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
Comment Utility
Can you have a share on them and read and write to that, that should be a good indication.
0
 

Author Comment

by:louy
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 12

Accepted Solution

by:
mark2150 earned 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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