2022-12-05 17:58:23 +00:00
|
|
|
|
!! ------ THIS FILE IS AUTO_GENERATED! DO NOT MANUALLY UPDATE!!!
|
2023-10-15 06:38:15 +00:00
|
|
|
|
!! ------ The native file is scsictl.1. Re-run 'make docs' after updating\n\n
|
|
|
|
|
piscsi(1) General Commands Manual piscsi(1)
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
NAME
|
|
|
|
|
scsictl - Sends management commands to the piscsi process
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
2023-10-30 12:32:45 +00:00
|
|
|
|
scsictl -e | -l | -m | -o | -v | -D | -I | -L | -O | -P | -S | -T | -V
|
2023-11-26 04:13:26 +00:00
|
|
|
|
| -X | [-C FILENAME:FILESIZE] | [-E FILENAME] | [-F IMAGE_FOLDER] | [-R
|
|
|
|
|
CURRENT_NAME:NEW_NAME] | [-c CMD] | [-f FILE|PARAM] | [-g LOG_LEVEL] |
|
|
|
|
|
[-h HOST] | [-i ID[:LUN]] | [-n NAME] | [-p PORT] | [-r RESERVED_IDS] |
|
|
|
|
|
[-s [FOLDER_PATTERN:FILE_PATTERN:OPERATIONS]] | [-t TYPE] | [-x CUR‐
|
2023-10-30 12:32:45 +00:00
|
|
|
|
RENT_NAME:NEW_NAME] | [-z LOCALE]
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
2023-11-26 04:13:26 +00:00
|
|
|
|
scsictl sends commands to the piscsi process to make configuration ad‐
|
2023-10-15 06:38:15 +00:00
|
|
|
|
justments at runtime or to check the status of the devices.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
Either the -i or -l option should be specified at one time. Not both.
|
|
|
|
|
|
2023-11-26 04:13:26 +00:00
|
|
|
|
You do NOT need root privileges to use scsictl. scsictl also runs on
|
2023-10-30 12:32:45 +00:00
|
|
|
|
non-Pi Linux platforms.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-11-26 04:13:26 +00:00
|
|
|
|
Note: The command and type arguments are case insensitive. Only the
|
2023-10-15 06:38:15 +00:00
|
|
|
|
first letter of the command/type is evaluated by the tool.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
|
-C FILENAME:FILESIZE
|
2023-10-15 06:38:15 +00:00
|
|
|
|
Create an image file in the default image folder with the speci‐
|
|
|
|
|
fied name and size in bytes.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-D Detach all devices.
|
|
|
|
|
|
|
|
|
|
-E FILENAME
|
|
|
|
|
Display information on an image file.
|
|
|
|
|
|
|
|
|
|
-F IMAGE_FOLDER
|
|
|
|
|
Set the default image folder.
|
|
|
|
|
|
|
|
|
|
-I Gets the list of reserved device IDs.
|
|
|
|
|
|
|
|
|
|
-L LOG_LEVEL
|
2023-11-26 04:13:26 +00:00
|
|
|
|
Set the piscsi log level (trace, debug, info, warning, error,
|
2023-10-15 06:38:15 +00:00
|
|
|
|
off).
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-h HOST
|
|
|
|
|
The piscsi host to connect to, default is 'localhost'.
|
|
|
|
|
|
|
|
|
|
-e List all images files in the default image folder.
|
|
|
|
|
|
2023-11-26 04:13:26 +00:00
|
|
|
|
-N Lists all available network interfaces provided that they are
|
2023-10-15 06:38:15 +00:00
|
|
|
|
up.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-11-26 04:13:26 +00:00
|
|
|
|
-O Display the available piscsi server log levels and the current
|
2023-10-15 06:38:15 +00:00
|
|
|
|
log level.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-11-26 04:13:26 +00:00
|
|
|
|
-P Prompt for the access token in case piscsi requires authentica‐
|
2023-10-15 06:38:15 +00:00
|
|
|
|
tion.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-11-26 04:13:26 +00:00
|
|
|
|
-l List all of the devices that are currently being emulated by
|
2023-10-15 06:38:15 +00:00
|
|
|
|
PiSCSI, as well as their current status.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-11-26 04:13:26 +00:00
|
|
|
|
-m List all file extensions recognized by PiSCSI and the device
|
2023-10-15 06:38:15 +00:00
|
|
|
|
types they map to.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-o Display operation meta data information.
|
|
|
|
|
|
|
|
|
|
-R CURRENT_NAME:NEW_NAME
|
|
|
|
|
Rename an image file in the default image folder.
|
|
|
|
|
|
|
|
|
|
-p PORT
|
|
|
|
|
The piscsi port to connect to, default is 6868.
|
|
|
|
|
|
|
|
|
|
-r RESERVED_IDS
|
2023-11-26 04:13:26 +00:00
|
|
|
|
Comma-separated list of IDs to reserve. Pass an empty list in
|
2023-10-15 06:38:15 +00:00
|
|
|
|
order to not reserve anything.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-10-30 12:32:45 +00:00
|
|
|
|
-s [FOLDER_PATTERN:FILE_PATTERN:OPERATIONS]
|
2023-11-26 04:13:26 +00:00
|
|
|
|
Display server-side settings like available images or supported
|
2023-10-15 06:38:15 +00:00
|
|
|
|
device types.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-10-30 12:32:45 +00:00
|
|
|
|
-S Display statistics.
|
|
|
|
|
|
2022-12-05 17:58:23 +00:00
|
|
|
|
-T Display all device types and their properties.
|
|
|
|
|
|
|
|
|
|
-v Display the piscsi server version.
|
|
|
|
|
|
|
|
|
|
-V Display the scsictl version.
|
|
|
|
|
|
|
|
|
|
-X Shut down the piscsi process.
|
|
|
|
|
|
|
|
|
|
-d FILENAME
|
|
|
|
|
Delete an image file in the default image folder.
|
|
|
|
|
|
|
|
|
|
-x CURRENT_NAME:NEW_NAME
|
|
|
|
|
Copy an image file in the default image folder.
|
|
|
|
|
|
|
|
|
|
-z LOCALE
|
|
|
|
|
Overrides the default locale for client-facing error messages.
|
|
|
|
|
|
|
|
|
|
-i ID[:LUN]
|
2023-10-15 06:38:15 +00:00
|
|
|
|
The SCSI ID and optional LUN that you want to control.
|
|
|
|
|
(0-7:0-31)
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-c CMD Command is the operation being requested. Options are:
|
|
|
|
|
a(ttach): Attach disk
|
|
|
|
|
d(etach): Detach disk
|
|
|
|
|
i(nsert): Insert media (removable media devices only)
|
|
|
|
|
e(ject): Eject media (removable media devices only)
|
2023-10-15 06:38:15 +00:00
|
|
|
|
p(rotect): Write protect the medium (not for CD-ROMs, which
|
|
|
|
|
are always read-only)
|
|
|
|
|
u(nprotect): Remove write protection from the medium (not for
|
|
|
|
|
CD-ROMs, which are always read-only)
|
2022-12-05 17:58:23 +00:00
|
|
|
|
s(how): Display device information
|
|
|
|
|
|
|
|
|
|
eject, protect and unprotect are idempotent.
|
|
|
|
|
|
|
|
|
|
-b BLOCK_SIZE
|
2023-10-15 06:38:15 +00:00
|
|
|
|
The optional block size, either 512, 1024, 2048 or 4096 bytes.
|
|
|
|
|
The default size is 512 bytes.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-f FILE|PARAM
|
2023-10-15 06:38:15 +00:00
|
|
|
|
Device-specific: Either a path to a disk image file, or a param‐
|
|
|
|
|
eter for a non-disk device. See the piscsi(1) man page for per‐
|
|
|
|
|
mitted file types.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-t TYPE
|
2023-10-15 06:38:15 +00:00
|
|
|
|
Specifies the device type. This type overrides the type derived
|
|
|
|
|
from the file extension of the specified image. See the
|
|
|
|
|
piscsi(1) man page for the available device types. For some
|
|
|
|
|
types there are shortcuts (only the first letter is required):
|
2022-12-05 17:58:23 +00:00
|
|
|
|
hd: SCSI hard disk drive
|
|
|
|
|
rm: SCSI removable media drive
|
|
|
|
|
cd: CD-ROM
|
|
|
|
|
mo: Magneto-Optical disk
|
|
|
|
|
lp: SCSI printer
|
|
|
|
|
bridge: Bridge device (Only applicable to the Sharp X68000)
|
|
|
|
|
daynaport: DaynaPort network adapter
|
|
|
|
|
services: Host services device
|
|
|
|
|
|
|
|
|
|
-n VENDOR:PRODUCT:REVISION
|
2023-10-15 06:38:15 +00:00
|
|
|
|
The vendor, product and revision for the device, to be returned
|
|
|
|
|
with the INQUIRY data. A complete set of name components must be
|
|
|
|
|
provided. VENDOR may have up to 8, PRODUCT up to 16, REVISION up
|
|
|
|
|
to 4 characters. Padding with blanks to the maxium length is au‐
|
|
|
|
|
tomatically applied. Once set the name of a device cannot be
|
|
|
|
|
changed.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-u UNIT
|
2023-10-15 06:38:15 +00:00
|
|
|
|
Unit number (0-31). This will default to 0. This option is only
|
|
|
|
|
used when there are multiple SCSI devices on a shared SCSI con‐
|
|
|
|
|
troller. (This is not common)
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
|
Show a listing of all of the SCSI devices and their current status.
|
|
|
|
|
scsictl -l
|
|
|
|
|
|
|
|
|
|
Example output:
|
|
|
|
|
+----+-----+------+-------------------------------------
|
|
|
|
|
| ID | LUN | TYPE | IMAGE FILE
|
|
|
|
|
+----+-----+------+-------------------------------------
|
|
|
|
|
| 0 | 1 | SCHD | /home/pi/harddisk.hda
|
|
|
|
|
+----+-----+------+-------------------------------------
|
|
|
|
|
|
2023-10-15 06:38:15 +00:00
|
|
|
|
Request the PiSCSI process to attach a disk (assumed) to SCSI ID 0 with
|
|
|
|
|
the contents of the file system image "HDIIMAGE0.HDS".
|
2022-12-05 17:58:23 +00:00
|
|
|
|
scsictl -i 0 -f HDIIMAGE0.HDS
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
|
piscsi(1), scsimon(1), scsidump(1)
|
|
|
|
|
|
|
|
|
|
Full documentation is available at: <https://www.piscsi.com>
|
|
|
|
|
|
2023-10-15 06:38:15 +00:00
|
|
|
|
piscsi(1)
|