Operating System - OpenVMS
1827853 Members
1685 Online
109969 Solutions
New Discussion

Identify TCPIP$TELNETSYM Print Queue Usage

 
SOLVED
Go to solution
Doug Vegge
Occasional Advisor

Identify TCPIP$TELNETSYM Print Queue Usage

Our OVMS Alpha 4100 has over 1000 print queues defined for printers all around the world. How can I determine which are still being used?
5 REPLIES 5
Jim_McKinney
Honored Contributor
Solution

Re: Identify TCPIP$TELNETSYM Print Queue Usage

If you've got ACCOUNTING enabled

$ ACCOUNTING/TYPE=PRINT/SUMMARY=QUEUE
Willem Grooters
Honored Contributor

Re: Identify TCPIP$TELNETSYM Print Queue Usage

Look in accounting.
For each queue specify

$ ACC/TYPE=PRINT/QUEUE= [accountingfile]

and if no answer is returned, it has not being used - for the period the accounting file was active.

Accounting filew: default it is SYS$SYSTEM;ACCOUNTNG.DAT but your system may have saved files elsewehere.

You may want to specify a period (/SINCE, /BEFORE) to limit the results.

(I tried using wildcards in the queuespec but that doesn't translate into a wildcard - alas...)

WIllem
Willem Grooters
OpenVMS Developer & System Manager
Ian Miller.
Honored Contributor

Re: Identify TCPIP$TELNETSYM Print Queue Usage

You may find the following DCL procedure useful
http://www.hpug.org.uk/LIST_UNUSED_QUEUES_COM.TXT
____________________
Purely Personal Opinion
John Gillings
Honored Contributor

Re: Identify TCPIP$TELNETSYM Print Queue Usage

Doug,

I guess it depends on exactly what you mean by "used". ACCOUNTING can tell you which queues are printing files, but that's not necessarily the only definition of "used". Jobs could be entered on a stopped queue, and requeued elsewhere. You won't see accounting records, but deleting the queue will break the process.

There may also be queues which are read by some processes, but rarely (or never) have jobs entered. Deleting the queue may result in the process failing.

Another option over ACCOUNTING is to use an AUDIT ACE on the queue, and examine the audit journal after your test period. To trace jobs submitted:

$ EDIT/ACL/OBJECT=QUEUE queue-name

(AUDIT=SECURITY,ACCESS=SUBMIT+SUCCESS)

To see if a queue is read, change the access to "READ+SUBMIT+SUCCESS" (but be aware that a single SHOW QUEUE command will generate multiple audit messages). Other accesses you can audit are MANAGE and DELETE.

While debugging, use an ALARM=SECURITY ACE and watch the activity from a REPLY/ENABLE=SECURITY terminal.
A crucible of informative mistakes
Doug Vegge
Occasional Advisor

Re: Identify TCPIP$TELNETSYM Print Queue Usage

Was able to get information using the solutions provided.