The syntax of this command is:
NET DEVICE [printname [/DELETE | /RESTART]]
This command lists devicenames and controls shared printers.
COMMENTS
When used without options, the "net device" command displays
the status of all shared printers at the specified server,
as follows:
Device Status Time User Name
------------------------------------------------------------
laser Spooled Printing 00:00:00
The command completed successfully.
This screen displays:
Column Contents
_________ ____________________
Device The printname of
the shared resource.
Status The status of the
printer.
Time This field is not
applicable and
always displays
zero.
User Name The system does not
display the user
name.
When used with only the printname option, the "net device"
command displays only the status of the specified printer.
The name of a spooled print device is followed by the word
``Spooled.'' Because the server retains information about
spooled printer queues you define, you can display
information about a device associated with a spooled printer
queue even if that printer queue is not currently shared.
The status of a device can be one of the following:
Status Meaning
________ _________________________
Idle Not currently being used
Printing The printer is active
Paused The device has been
paused with the "net pause"
or "net print" command
Error There is a problem with
the device
EXAMPLES
At a UNIX system console, to list the status of the printer
with the UNIX system LP subsystem printname laser, type
the following:
net device laser
To delete the current print request from laser, type the
following:
net device laser /delete
To run the same command remotely (on server "market_asu"), type
the following (replacing "password" with the password for
"administrator":
net admin \\market_asu password /command net device
laser /delete
SEE ALSO
For information about See
_____________________ _________
Getting help with network commands net help
Printer queues and devices net print
Sharing printer queues net share
To get Help on command options, type "net help {command} /options | more".
To get Help one screen at a time, type "net help {command} | more".