SpyderByte.com: OpenVMS.org dcl.OpenVMS.org de.OpenVMS.org fr.OpenVMS.org Tru64.org
   
Home About/Contact Search Archive Mobile Submit Procedure Sponsorship/Advertising
dcl.OpenVMS.org
Admin: Ken Farmer
About: DCL (Digital Command Language) related news and procedures archive.


Navigation
Search Procedures
Post a Procedure
Documentation
Training
Vendors

Features
Bob Gezelter Articles:
Pitfalls of F$LOCATE & other Func
Logical Names (Part 5)
Logical Names (Part 4)
Report from the 1st OpenVMS Technical Symposium (Part 1)
Logical Names (Part 3)
Logical Names (Part 2)
Logical Names (Part 1)


RSS/RDF Feeds
OpenVMS.org (RSS 2.0)
dcl.OpenVMS.org (RSS 0.91)


Top 5 Stories
DCL_CHECK (7)
Free.com (2)
SHOW_PAGEFILE (7)
SHOW_BG (7)
Repeat.com (22)



Latest Procedures & News

Clear_Queue
Thursday June 26 2008 @ 10:23AM EDT, Aaron views: 1952

Clear_Queue does just that -- it deletes entries in a queue using the following parameters:

  1. Queue name, e.g. Sys$Batch
  2. RETAINED if you only want retained jobs deleted
  3. Minimum age in days of jobs to delete, e.g., 7 would only delete jobs over a week old.

For example:

$ @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.




find_bg
Monday June 09 2008 @ 11:41AM EDT, Labadie views: 1629

This procedure finds the bg devices of a process. It will just display "matched" if a process does not own a bg device.

You pass a PID as P1, for example:

$ @findbg.com 20217DFF
BG8833:
BG8835:
BG8836:
BG8853:
BG1272:



Peakchan
Monday June 09 2008 @ 06:14AM EDT, Labadie views: 1532
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...


find_log
Friday June 06 2008 @ 04:22AM EDT, Labadie views: 1443
Updated version

This procedure tries to find the logfile of a process, assuming the logfile has a .log extension. It is not bullet-proof. It can be adapted to search for something else.

You give the pid of the process as the P1 parameter:

$ @find_log  2020043E
DSA0:[SQLSRV$DEFLT]SQS_BILBO_GENERI0040001.LOG;21



rdel.com: Recursively delete directory
Thursday May 29 2008 @ 11:34AM EDT, Mayur Avhad views: 2690

The rdel.com procedure recursively deletes all the directory present in a given directory. User need not run command del[...]*.*;* repeatedly.

$ sh def
SMSY22$USERS:[TEMP.EXAMPLE]
$ create /dir [.A.B.C.D]
$ create /dir [.X.Y.Z]
$ @rdel SMSY22$USERS:[TEMP.EXAMPLE]



DCL spy
Monday May 12 2008 @ 08:18AM EDT, Catalin Dandes views: 1743

dclspy.com :

  • Is using SDA to retrieve the dcl buffer (recall/all) of all sessions from other users, while they are still connected.
  • Useful in multi-admin environment, to see what other admins are doing without bothering them.



CHECK_QUOTAS.COM
Monday April 14 2008 @ 01:24PM EDT, David J. Weissenborn views: 1747
Scan processes and system quotas and alert if they are within x% of quota limit.


bgstat
Wednesday April 02 2008 @ 04:37AM EDT, labadie views: 1933
This procedure sorts the bg devices based on the Bytes sent, Bytes received, I/O sent, I/O received.

I have already submitted it, but realised that there was a typo due to a bad copy and paste.


SYSTEM_REPORT
Thursday March 27 2008 @ 11:26AM EDT, Karl Rohwedder views: 1980
SYSTEM_REPORT creates a HTML-formatted report of your system/cluster.

A new version V1.7-1 has been released.




Process_Scan
Sunday November 25 2007 @ 11:46PM EST, Keith Cayemberg views: 2075

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!




[<< Prev] 1 2 3 4 5 6 7 8 9 10 11 12 13 [Next >>]



ADVERTISEMENT:
Mailing Lists
OpenVMS.org News:
(Low volume newsletter)
Subscribe | Unsubscribe
OpenVMS.org Alerts:
(Security & Patch Alerts)
Subscribe | Unsubscribe

Sponsors | Affiliates







Virtual VAX & Alpha

HoffmanLabs.com

The OpenVMS Consultant


Interested in Advertising? Click here...

Friends of VMS
Encompass (HP Customer Community):
United States
Canada
Australia
Encompasserve
OpenVMS Hobbyist
Other Sites:
8-Cubed
Aaron's OpenVMS Hobbyist Blog
Arne Vajhøj
Deathrow Public OpenVMS Cluster
DJE Systems
Hunter Goatley
Ian Miller
Itanium Solutions Alliance
Syltrem VMS Page (French)
Kednos PL/I
OpenVMSPlanet.org
OpenVMS Rocks
Preatorian.net
Retrobeep
SYSMGR Blog
VAMP
Vaxination
XDelta


Add, edit, report problems here...

OpenVMS Webring

OpenVMS Webring

Prev

Random

Next

Prev5

List

Next5



Home About & Contact Search Archive Mobile Submit Procedure Sponsorship & Advertising

     Copyright © 2003-2006 SCORSE, LLC
OpenVMS® is a trademark of HP
All other trademarks are those of their owners.
    
 SpyderByte.com ;Technical Portals