- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Help with "WATCHER"
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 11:10 AM
10-23-2007 11:10 AM
The program is an Idle Terminal Monitor which deletes idle processes. I want to use it not to delete processes but instead to run my script when an idle process is found.
I can do this now by disabling all of the "kill" functions and naming my DCL script WATCHER_LOGOUT.COM in the WATCHER directory.
So far so good - but WATCHER still displays a msg on the users terminal that it is about the log them out. My script will not log them out.
I tried SEARCHing through all of the files for the msg text, but found nothing.
Any ideas as to how to suppress the %WATCHER-I-LOGOUT msg? TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 11:38 AM
10-23-2007 11:38 AM
Re: Help with "WATCHER"
SET WATCH_DEFAULT/NOWARNING
in the configuration file do you any good?
You can also experiment with SET NOACTION and see if it will still execute a script even when not doing any logouts our disconnects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 01:55 PM
10-23-2007 01:55 PM
SolutionThe messages are defined in WATCHER_MSG.MSG. They're written to the user's terminal by routine BREAKTHROUGH in module FORCE.B32. It doesn't look like there's any logic to block the message, apart from SET NOACTION (but that appears to block everything else too!)
If you have a BLISS compiler, just comment out the calls to BREAKTHROUGH (there are only two) and recompile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 02:24 PM
10-23-2007 02:24 PM
Re: Help with "WATCHER"
Just a thought, since you're not deleting the process, make sure you test carefully! It's entirely possible that WATCHER has an implicit assumption that the process will be deleted. Once a process is identified as "idle" and is supposed to have been killed, what happens if it remains idle into the future? Will your WATCHER_LOGOUT process be called repeatedly?
Also beware of this type of program. I haven't checked the logic, but I've seen this type of utility bring a system to its knees by "chasing" a swapped out process through the process list when the system is over BALSETCNT. Checking the process inswaps it, which forces the next process to be outswapped, repeat for every process on the system :-( Can you spell "thrashing"? Adding logic to eliminate this undesirable behaviour by avoiding touching an outswapped process in a manner than will swap it in means that an outswapped process will never be considered idle. What is wrong with this picture?
(of course it could be argued that anyone who is over BALSETCNT deserves whatever they get?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2007 03:44 AM
10-24-2007 03:44 AM
Re: Help with "WATCHER"
Craig:
- /NOWARNING suppresses the Warning msg, but not the LOGOUT msg
- SET NOACTION does just that: no msgs go out, but my script doesn't get called either
John:
Thanks for the comments
- I don't know from Bliss, but I'll download the compiler from the Freeware compilation and give it a try
- I've discovered that if an idle process is not actually killed, WATCHER will start tracking it again & try to kill it again after it ages out. I can live with this.
- re "chasing" a swapped out process: WATCHER has an option called NO INSWAP, so it leaves alone (i.e. does not track) any outswapped processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2007 11:25 PM
10-24-2007 11:25 PM
Re: Help with "WATCHER"
$ set message/NoID/NoFacility/NoText/NoSeverity
does it have any effect??
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2007 12:57 AM
10-25-2007 12:57 AM
Re: Help with "WATCHER"
Ah, that could be a reasonable reason to run an idle process checker. Mostly I just see those as a nuisance and resource hogs.
It does beg two questions:
1) Should you not review and fix an application which holds record locks over arbitrary long periods?
2) Consider going after the culprit itself!
Write a program with $GETLKI to look for rms record locks (exec mode, 8-byte name, parent lock name starts with RMS$) and remembers those. Look again after a while and see if the same pid still holds that lock.
Three strikes and your out (or at least on a suspect list).
You'll probably need some exception list.
I have a tool on the OpenVMS freeware that does 80% of the hard work for such tool:
http://h71000.www7.hp.com/freeware/freeware60/rms_tools/src/blocking.c
Feel free to use that as a starting point.
And for mere money I'll be happy to adapt it for the requested purpose.
Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2007 03:35 AM
10-25-2007 03:35 AM
Re: Help with "WATCHER"
Hein - in short, "Third Party Product" - can't get to the code!
Thanks for the responses