Thursday June 26 2008 @ 10:23AM EDT, Aaron
Clear_Queue does just that -- it deletes entries in a queue using the following parameters:
Queue name, e.g. Sys$Batch
RETAINED if you only want retained jobs deleted
Minimum age in days of jobs to delete, e.g., 7 would only delete jobs over a week old.
$ @Clear_Queue Sys$Print "" 1
would delete any print job in sys$print that was submitted before yesterday.
NOTE: this procedure requires the DBD (days between dates) routine also found on this site. Please modify the line (right after the f$verify) that defines DBD, if DBD is not already defined on your system.
Monday June 09 2008 @ 06:14AM EDT, Labadie
Display for a process or for all the processes the fillm, filcnt (used fillm at the moment), and the peak open channels since the process creation (SDA> eval @CTL$GL_CHINDX).
Open channels means files, mailboxes, network devices...
This "DCL Program" (1867 lines) provides powerful process scanning capabilities giving detailed JPI process context variable information about any processes on the same node or cluster. The processes to be displayed can be specified using multiple selection criteria. A VT220 compatible terminal is assumed. The procedure adapts the number of columns displayed automatically when the screen is in 80 column or 132 column mode. Single pass and continuous display modes are supported. The continuous display mode can be exited only using Control-C. The continuous mode will also change the page length of the screen automatically when needed, if your terminal emulation supports the VT function correctly. DECwindow's DECterm supports this functionality the best. For a more complete HELP description and many more capabilities, start the procedure with a question mark "?" as the first command line parameter.
Some of the useful things you can do with this procedure:
find all processes running a specific image, or any image within a specific directory tree.
find all processes with a specific quota exhausted to a specified percentage.
count the number of times processes with a specific set of attributes exist during a period of time.
call this procedure from your own, and use the global variables created that give the identifying attributes of the first or last process that PROCESS_SCAN found.
watch the processes of another cluster node and their changing attributes as that node boots, BEFORE the System Manager can log-on to the booting node, and BEFORE TCP/IP or DECnet has been loaded on that node.
Happy 30th OpenVMS Anniversary to the OpenVMS Community!