Solved

Checking if other systems are operational

Posted on 1998-10-30
6
140 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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.
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…
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…

739 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