Skip to main content

IBM Systems  >   System z  >   z/VM  >  

Description of SPOOLPIG

Download count: 30 this month, 386 altogether.

Downloads for SPOOLPIG:
VMARC archive: v-4K

SPOOLPIG EXEC

Display the largest spool files on the system and also show the user ids that are using the most spool space. The number of spool files displayed is variable, and defaults to 10. The information can also be written to a file.

The exec requires the IBM class D query commands for query reader, punch, print, and alloc. It also requires the IBM class E query nss command. Only these CP commands are used to collect the data - the exec does not examine real memory or read spool file blocks from disk.

The syntax of the command is:

SPOOLPIG lines (FILE fn ft fm

Where:

lines
The number of spool files and users to output. The default is 10 lines.
FILE
If this option is specified, write the output to a file. Otherwise, the output is displayed on the screen.
fn ft fm
The name of the file to write to. The default is nodeid SPOOLPIG A, where nodeid is the node id from the IDENTIFY command.

An example of SPOOLPIG output

SPOOLPIG 5
The top 5:
OWNERID  DEV FILE CLASS RECORDS  CPY HOLD DATE       TIME     NAME      TYPE
OPERATNS RDR 0002 D SYS 00028988 001 NONE 2009-01-13 08:46:46 CPDUMP    CPDUMP
MAINT    PRT 0106 A PRT 00062337 001 NONE 2009-01-06 15:12:41
PERFSVM  PRT 0103 A PRT 00048292 001 NONE 2009-01-14 00:00:38 FCONMON   LISTING
PERFSVM  PRT 0105 A PRT 00048274 001 NONE 2009-01-16 00:00:38 FCONMON   LISTING
PERFSVM  PRT 0104 A PRT 00048271 001 NONE 2009-01-15 00:00:38 FCONMON   LISTING
Block counts per user:
PERFSVM  with 171615 blocks, 112 files.
OPERATNS with 29000 blocks, 3 files.
MAINT    with 1663 blocks, 2 files.
DATAMOVE with 16 blocks, 1 files.
DIRMAINT with 12 blocks, 1 files.
 
Total spool: 147 files, spool usage: 43%
Saved segments: 22161 blocks, 9% of in use spool space.
 
Ready;

Feedback: Bruce Hayden Linux on System z Advanced Technical Support