2020-07-09 13:21:15 -05:00
.TH rascsi 1
.SH NAME
rasctl \- Sends management commands to the rascsi process
.SH SYNOPSIS
.B rasctl
2021-09-19 09:05:01 +02:00
\fB \- e\fR |
2020-07-09 13:21:15 -05:00
\fB \- l\fR |
2021-09-28 01:39:50 +02:00
\fB \- m\fR |
2021-12-21 08:43:21 +01:00
\fB \- o\fR |
2021-08-07 02:30:35 +02:00
\fB \- s\fR |
2021-10-06 23:25:43 +02:00
\fB \- v\fR |
2021-10-14 22:25:10 +02:00
\fB \- D\fR |
2021-10-06 23:25:43 +02:00
\fB \- I\fR |
\fB \- L\fR |
\fB \- O\fR |
2021-12-19 11:54:10 +01:00
\fB \- P\fR |
2021-09-22 17:40:46 +02:00
\fB \- T\fR |
2021-10-06 23:25:43 +02:00
\fB \- V\fR |
2021-10-17 08:51:14 +02:00
\fB \- X\fR |
2021-10-14 22:25:10 +02:00
[\fB \- C\fR \fI FILENAME:FILESIZE\fR ]
2021-09-30 19:22:57 +02:00
[\fB \- E\fR \fI FILENAME\fR ]
2021-09-22 17:40:46 +02:00
[\fB \- F\fR \fI IMAGE_FOLDER\fR ]
[\fB \- R\fR \fI CURRENT_NAME:NEW_NAME\fR ]
2021-10-14 22:25:10 +02:00
[\fB \- c\fR \fI CMD\fR ]
[\fB \- f\fR \fI FILE|PARAM\fR ]
2021-08-07 02:30:35 +02:00
[\fB \- g\fR \fI LOG_LEVEL\fR ]
[\fB \- h\fR \fI HOST\fR ]
2021-10-06 23:25:43 +02:00
[\fB \- i\fR \fI ID\fR
2021-08-21 23:45:30 +02:00
[\fB \- n\fR \fI NAME\fR ]
2021-10-14 22:25:10 +02:00
[\fB \- p\fR \fI PORT\fR ]
[\fB \- r\fR \fI RESERVED_IDS\fR ]
2021-08-07 02:30:35 +02:00
[\fB \- t\fR \fI TYPE\fR ]
[\fB \- u\fR \fI UNIT\fR ]
2021-10-14 22:25:10 +02:00
[\fB \- x\fR \fI CURRENT_NAME:NEW_NAME\fR ]
2021-12-23 08:49:04 +01:00
[\fB \- z\fR \fI LOCALE\fR ]
2020-07-09 13:21:15 -05:00
.SH DESCRIPTION
.B rasctl
2022-10-02 06:29:22 -07:00
sends commands to the rascsi process to make configuration adjustments at runtime or to check the status of the devices.
2020-07-09 13:21:15 -05:00
Either the -i or -l option should be specified at one time. Not both.
You do NOT need root privileges to use rasctl.
2021-06-19 17:17:23 +02:00
Note: The command and type arguments are case insensitive. Only the first letter of the command/type is evaluated by the tool.
2020-07-09 13:21:15 -05:00
.SH OPTIONS
.TP
2021-09-22 17:40:46 +02:00
.BR \- C\fI " " \fI FILENAME:FILESIZE
2021-09-15 10:57:12 +02:00
Create an image file in the default image folder with the specified name and size in bytes.
2021-09-15 10:47:51 +02:00
.TP
2021-10-14 22:25:10 +02:00
.BR \- D\fI
Detach all devices.
.TP
2021-09-30 19:22:57 +02:00
.BR \- E\fI " " \fI FILENAME
Display information on an image file.
.TP
2021-09-22 17:40:46 +02:00
.BR \- F\fI " " \fI IMAGE_FOLDER
2021-09-17 11:11:22 +02:00
Set the default image folder.
.TP
2021-10-06 23:25:43 +02:00
.BR \- I\fI
Gets the list of reserved device IDs.
.TP
2021-09-22 17:40:46 +02:00
.BR \- L\fI " " \fI LOG_LEVEL
2022-10-23 21:51:39 +02:00
Set the rascsi log level (trace, debug, info, warn, err, off).
2021-08-07 02:30:35 +02:00
.TP
.BR \- h\fI " " \fI HOST
The rascsi host to connect to, default is 'localhost'.
.TP
2021-09-19 09:05:01 +02:00
.BR \- e\fI
List all images files in the default image folder.
.TP
2021-09-22 17:40:46 +02:00
.BR \- N\fI
2021-09-19 09:05:01 +02:00
Lists all available network interfaces provided that they are up.
.TP
2021-10-06 23:25:43 +02:00
.BR \- O\fI
Display the available rascsi server log levels and the current log level.
.TP
2021-12-19 11:54:10 +01:00
.BR \- P\fI
Prompt for the access token in case rascsi requires authentication.
.TP
2020-07-09 13:21:15 -05:00
.BR \- l\fI
List all of the devices that are currently being emulated by RaSCSI, as well as their current status.
.TP
2021-09-28 01:39:50 +02:00
.BR \- m\fI
List all file extensions recognized by RaSCSI and the device types they map to.
.TP
2021-12-21 08:43:21 +01:00
.BR \- o\fI
Display operation meta data information.
.TP
2021-09-22 17:40:46 +02:00
.BR \- R\fI " " \fI CURRENT_NAME:NEW_NAME
2021-09-15 12:26:01 +02:00
Rename an image file in the default image folder.
.TP
2021-08-07 02:30:35 +02:00
.BR \- p\fI " " \fI PORT
The rascsi port to connect to, default is 6868.
.TP
2021-09-15 03:23:04 +02:00
.BR \- r\fI " " \fI RESERVED_IDS
2022-02-21 21:01:17 +01:00
Comma-separated list of IDs to reserve. Pass an empty list in order to not reserve anything.
2021-09-15 03:23:04 +02:00
.TP
2021-08-07 02:30:35 +02:00
.BR \- s\fI
2021-09-15 03:23:04 +02:00
Display server-side settings like available images or supported device types.
2021-08-07 02:30:35 +02:00
.TP
2021-09-22 17:40:46 +02:00
.BR \- T\fI
2021-09-19 23:27:47 +02:00
Display all device types and their properties.
.TP
2021-08-07 02:30:35 +02:00
.BR \- v\fI " " \fI
2021-10-06 23:25:43 +02:00
Display the rascsi server version.
.TP
.BR \- V\fI " " \fI
Display the rasctl version.
2021-08-07 02:30:35 +02:00
.TP
2021-10-17 08:51:14 +02:00
.BR \- X\fI " " \fI
Shut down the rascsi process.
.TP
2021-10-14 22:25:10 +02:00
.BR \- d\fI " " \fI FILENAME
2021-09-15 11:08:23 +02:00
Delete an image file in the default image folder.
.TP
2021-09-15 17:40:34 +02:00
.BR \- x\fI " " \fI CURRENT_NAME:NEW_NAME
Copy an image file in the default image folder.
.TP
2021-12-23 08:49:04 +01:00
.BR \- z\fI " " \fI LOCALE
Overrides the default locale for client-facing error messages.
.TP
2020-07-09 13:21:15 -05:00
.BR \- i\fI " " \fI ID
ID is the SCSI ID that you want to control. (0-7)
.TP
.BR \- c\fI " " \fI CMD
2021-09-15 03:23:04 +02:00
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)
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)
s(how): Display device information
2020-07-09 13:21:15 -05:00
.IP
2021-08-21 23:45:30 +02:00
eject, protect and unprotect are idempotent.
2020-07-09 13:21:15 -05:00
.TP
2021-09-15 03:23:04 +02:00
.BR \- b\fI " " \fI BLOCK_SIZE
2022-09-03 16:53:53 +02:00
The optional block size, either 512, 1024, 2048 or 4096 bytes. The default size is 512 bytes.
2021-09-15 03:23:04 +02:00
.TP
2021-09-15 22:00:48 +02:00
.BR \- f\fI " " \fI FILE|PARAM
Device-specific: Either a path to a disk image file, or a parameter for a non-disk device. See the rascsi(1) man page for permitted file types.
2021-08-07 02:30:35 +02:00
.TP
2020-07-09 13:21:15 -05:00
.BR \- t\fI " " \fI TYPE
2021-09-15 03:23:04 +02:00
Specifies the device type. This type overrides the type derived from the file extension of the specified image. See the rascsi(1) man page for the available device types. For some types there are shortcuts (only the first letter is required):
hd: SCSI hard disk drive
rm: SCSI removable media drive
2020-07-09 13:21:15 -05:00
cd: CD-ROM
2021-09-15 03:23:04 +02:00
mo: Magneto-Optical disk
2022-02-17 03:04:42 +01:00
lp: SCSI printer
2021-09-15 03:23:04 +02:00
bridge: Bridge device (Only applicable to the Sharp X68000)
2022-02-10 19:54:48 +01:00
daynaport: DaynaPort network adapter
services: Host services device
2020-07-09 13:21:15 -05:00
.TP
2021-09-15 03:23:04 +02:00
.BR \- n\fI " " \fI VENDOR:PRODUCT:REVISION
2021-08-21 23:45:30 +02: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 automatically applied. Once set the name of a device cannot be changed.
.TP
2021-08-07 02:30:35 +02:00
.BR \- u\fI " " \fI UNIT
2021-10-13 11:03:31 +02: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 controller. (This is not common)
2020-07-09 13:21:15 -05:00
.SH EXAMPLES
2021-06-19 17:17:23 +02:00
Show a listing of all of the SCSI devices and their current status.
2020-07-09 13:21:15 -05:00
rasctl -l
Example output:
2021-10-29 14:12:09 -07:00
+----+-----+------+-------------------------------------
| ID | LUN | TYPE | IMAGE FILE
+----+-----+------+-------------------------------------
| 0 | 1 | SCHD | /home/pi/harddisk.hda
+----+-----+------+-------------------------------------
2020-07-09 13:21:15 -05:00
Request the RaSCSI process to attach a disk (assumed) to SCSI ID 0 with the contents of the file system image "HDIIMAGE0.HDS".
rasctl -i 0 -f HDIIMAGE0.HDS
.SH SEE ALSO
2022-10-04 01:08:23 -07:00
rascsi(1), scsimon(1), rasdump(1)
2020-07-09 13:21:15 -05:00
Full documentation is available at: <https://www.github.com/akuker/RASCSI/wiki/>