# sp-status command

The sp-status command displays the status
of all spooler-controlled devices.

## Syntax

```
sp-status {options}
```

## Parameter(s)

| options | printer.number {-printer.number} | Designates a specific printer, or range of printers, to display, and must be between 0 and the maximum printer number, inclusive. |
| --- | --- | --- |
| b | Outputs status of all printers, allocated and unallocated. | |
| n | No pause; suppresses pause at the end of the page on the terminal display. | |
| p | Directs output to the system printer, via the spooler. | |

## Description

If no options are specified,
the status of the spooler and all allocated printers displays. The
printer status may be one of the following:

| active | Printer is currently printing a report. |
| --- | --- |
| inactive | Printer is currently idle. |
| stopped | Printer has been stopped with a stopptr command, or is set to stop once it becomes idle. |
| unallocated | Printer has never been started, or has been deleted from the spooler with an sp-kill command using the delete option. The printer may be started again with the startptr command. |

## Example(s)

```
sp-status
The spooler is inactive.
Printer # 0 is serial, inactive, and on line.
The printer is running on line 13.
Assigned output queues: 0.
The number of inter-job pages to eject is 1.
```

## See also

- [listptr command](https://d3codex.com/tcl/listptr-command/)
- [Options (Spooler)](https://d3codex.com/tcl/options-spooler/)
- [sp-assign command](https://d3codex.com/tcl/sp-assign-command/)
- [startptr command](https://d3codex.com/tcl/startptr-command/)
- [stopptr command](https://d3codex.com/tcl/stopptr-command/)
- [what command](https://d3codex.com/tcl/what-command/)
- [wheres command](https://d3codex.com/tcl/wheres-command/)

---
Source: https://d3codex.com/tcl/sp-status-command/ - part of the D3Codex reference.
