Discussion:
Printer log
(too old to reply)
naginder jaswal
2007-09-12 09:27:09 UTC
Permalink
Sir
I want to know how can be set the printer log.I have a 1022n series
printer.And 30 user used it in the network.I want to see which user give the
printing command at the pertular date or timing.Which i can moniter the
user.So plz tell me about this
Thanks
--
Warm Regards:
Naginder Singh Jaswal
09872783949
Rein,Rodney
2007-09-12 13:30:13 UTC
Permalink
set queue qname/retain

that will retain all jobs and tell the user and date/time....be aware
that this will retain ALL jobs. You will need to delete and re-create
the queue to get rid of the retained jobs or delete them manually.

Might also try accounting - help accounting/type

Rodney

________________________________

From: naginder jaswal [mailto:***@gmail.com]
Sent: Wednesday, September 12, 2007 4:27 AM
To: info-***@process.com
Subject: Printer log


Sir
I want to know how can be set the printer log.I have a 1022n series
printer.And 30 user used it in the network.I want to see which user give
the printing command at the pertular date or timing.Which i can moniter
the user.So plz tell me about this
Thanks
--
Warm Regards:
Naginder Singh Jaswal
09872783949

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.
David J Dachtera
2007-09-13 02:35:22 UTC
Permalink
Post by Rein,Rodney
set queue qname/retain
that will retain all jobs and tell the user and date/time....be aware that
this will retain ALL jobs. You will need to delete and re-create the queue to
get rid of the retained jobs or delete them manually.
Well, you don't actually have to do that. More follows...
Post by Rein,Rodney
Might also try accounting - help accounting/type
That would be best, really.

There is no need (on newer VMS) to delete a queue full of retained entries to
clear them out. You just need some code that doesn't ship with VMS.

I call this little piece "LDO" (ell-doo) or "List Do" to perform an operation on
the entity in the first "word" of strings read from a pipeline:

$!
$! LDO.COM - by David J Dachtera
$!
$ if p1 .eqs. ""
$ then
$ type sys$pipe
$ exit
$ endif
$ set noon
$read_loop:
$ read/end=eof_pipe sys$pipe p9
$ elm0 = f$elem( 0, " ", f$edit( p9, "trim,compress" ))
$ 'p1' 'elm0''p2'
$ goto read_loop
$eof_pipe:
$ exit

To clear out Retained entries (regardless of why they were retained!), you could
use a command like this:

$ PIPE -
SHOW QUEUE/ALL queue_name | -
SEARCH SYS$PIPE RETAINED | -
@LDO "DELETE/ENTRY="

Not fool-proof since long job names can cause the entry number and the
"Retained" flag to appear on separate lines in the display, but could be useful,
I think.

Most folks cook up some DCL using F$GETQUI() in a loop to find all the retained
entries on a queue and delete them one by one.

One of the commands the VMS forgot:

$ DELETE/ENTRY={ALL|EXECUTING|HOLDING|PENDING|RETAINED}/QUEUE=queue_name
--
David J Dachtera
dba DJE Systems
http://www.djesys.com/

Unofficial OpenVMS Marketing Home Page
http://www.djesys.com/vms/market/

Unofficial Affordable OpenVMS Home Page:
http://www.djesys.com/vms/soho/

Unofficial OpenVMS-IA32 Home Page:
http://www.djesys.com/vms/ia32/

Unofficial OpenVMS Hobbyist Support Page:
http://www.djesys.com/vms/support/
David P. Drake
2007-09-12 13:42:17 UTC
Permalink
Use the accounting records of the system.

$ accounting /queue=name sys$manager:accountng.dat

will give you a summary, add /full to see the details. Use $ HELP
accounting to get the syntax details.

Dave.
Post by naginder jaswal
Sir
I want to know how can be set the printer log.I have a 1022n
series printer.And 30 user used it in the network.I want to see
which user give the printing command at the pertular date or
timing.Which i can moniter the user.So plz tell me about this
Thanks
--
Naginder Singh Jaswal
09872783949
Dave.

Everyone has a photographic memory. Some don't have film.
Selden E Ball Jr
2007-09-12 13:52:48 UTC
Permalink
Of course, you also have to enable print accounting, preferably in
SYS$MANAGER:SYSTARTUP_VMS.COM

You could use something like this:

$ SET ACCOUNTING/ENABLE:-
(BATCH,DETACHED,INTERACTIVE,LOGIN_FAILURE,MESSAGE,NETWORK,PRINT,PROCESS)

but check the accounting documentation to make sure you're logging
everything appropriate for your site.

Selden
Post by David P. Drake
Use the accounting records of the system.
$ accounting /queue=name sys$manager:accountng.dat
will give you a summary, add /full to see the details. Use $ HELP
accounting to get the syntax details.
Dave.
Post by naginder jaswal
Sir
I want to know how can be set the printer log.I have a 1022n
series printer.And 30 user used it in the network.I want to see
which user give the printing command at the pertular date or
timing.Which i can moniter the user.So plz tell me about this
Thanks
--
Naginder Singh Jaswal
09872783949
Dave.
Everyone has a photographic memory. Some don't have film.
Loading...