mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-10 17:30:47 +00:00
94786aec54
* Added messages * Comment update * Interface update * Support for localized descriptions * Sort operations * Completed meta data * rasctl -s returns operation meta data * Manpage update * Type update * Comment update * Description updates * Comment update * Added convenience method * Added convenience method * Code cleanup * Comment update * Display permitted values * For completeness sake added permitted boolean values * Added support for default value * Removed redundant message field * Description update * Description upddate * Squashed commit of the following: commit 8171c6ea27982c736c30c0db69a7fdde07ee10ce Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 12:43:14 2021 +0100 The data type is implicit commit fb01dc9d82e8ff7456b05a0cb9d08069adacc64c Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 12:37:49 2021 +0100 Renaming commit 057dbf1aca7be3f7e76a5ff89a582a276b6d3089 Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 12:29:54 2021 +0100 Comment update commit 5f699aad2f835f72accdb445d1e59f094aeb108f Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 12:24:25 2021 +0100 Signature update commit cbcf8b09f9d1ba7b82f816269bcfe91d9f00eb6e Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 12:22:45 2021 +0100 Signature update commit a8148ef802ca809e5a305d2caa69856c9033d932 Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 12:16:46 2021 +0100 Comment update commit ce685a92d4827e131d80d10ecd56e2b3baf173f8 Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 12:15:46 2021 +0100 Use map instead of list commit 454c0438f3589904f5dbe5253963dd200ea416dd Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 10:47:36 2021 +0100 Updated size check commit b386dbba4b0262f4f6f02aecb2a1daeffd41f4a2 Author: Uwe Seimet <Uwe.Seimet@seimet.de> Date: Sat Dec 18 01:23:43 2021 +0100 Initial improvements * Default value update * Comment update * Comment update * Map operations by ordinal * Added safeguard against unknown operations * Added cast * Data type update * Sort map by operation name * Renaming * Code cleanup * Comment update * Renaming * Comment update * Description updates * Fixed typo * Added operation * Logging update * Interface comment update * Fixed typo * Aded operation parameters * Updated handling of mandatory parameters * Updated assertion handling * Added missing condition * Removed duplicate cod3 * Code cleanup * Logging update * Removed duplicate code * Code cleanup * Squashed commit of the following: commit 4ae273ccbd3e2b9bfda6426a9c1f71844b48b2d9 Author: akuker <34318535+akuker@users.noreply.github.com> Date: Sun Dec 19 22:30:22 2021 -0600 Loopback tester pcb (#545) commit 46c5c1966f36841419df7c3337990ac941de3c85 Author: akuker <34318535+akuker@users.noreply.github.com> Date: Sun Dec 19 22:29:59 2021 -0600 RaSCSI Zero version 1.0 (#546) commit d09df31d67de3470ef4ed3fc74b40da1b181c0bb Author: Daniel Markstedt <markstedt@gmail.com> Date: Sun Dec 19 20:25:23 2021 -0800 Remove redundant code from OLED script (#547) commit d8828da6909a8b87e54f21aada20758607a2a67a Author: akuker <34318535+akuker@users.noreply.github.com> Date: Sun Dec 19 21:02:50 2021 -0600 Added list of sponsors commit bcd7e8396d945f5a051e01080354d3ac7ba63704 Author: Daniel Markstedt <markstedt@gmail.com> Date: Sun Dec 19 15:51:45 2021 -0800 Second attempt at properly creating the manpage dir (#542) commit c887edfc8c9956aa9dcac3764abe6cef16ffb596 Author: Daniel Markstedt <markstedt@gmail.com> Date: Sun Dec 19 15:50:03 2021 -0800 Remove special elevated privileges for the Web Interface (#536) * Use the pi_shutdown method to restart the rascsi service * Use the pi_shutdown method to restart the rascsi service * Remove modifications to sudoers no longer needed * Introduce sleeps attempting to connect to socket; reduce overall number of retries * Remove systemd helped methods and the functionality that depends on it * Attempts to speed up splash code * Remove unneccessary verbosity * Attempt to optimize service definition commit 801aebfb96e968a3bef1575b0301db4bd7625a35 Author: Daniel Markstedt <markstedt@gmail.com> Date: Sun Dec 19 15:47:22 2021 -0800 More readable message when downloading a file (#531) commit 29cf58288f228fe235b7d6fe2f0dd5852cf9a411 Author: Daniel Markstedt <markstedt@gmail.com> Date: Sun Dec 19 15:47:03 2021 -0800 Add a warning notice when ejecting removable media (#526) commit 7efa89523905a6985bea261f1dcf078ec76faf27 Author: Daniel Markstedt <markstedt@gmail.com> Date: Sun Dec 19 15:46:22 2021 -0800 Unzip zipfiles before storing to iso (#525) * Unzip zipfiles before storing to iso * Add helptext * Skip unzip for MacZip format * Should not be an fstring commit 39bc485671fa5163c6fc87860eed53b2966637ca Author: Daniel Markstedt <markstedt@gmail.com> Date: Sun Dec 19 15:28:22 2021 -0800 Add pip3 to global dependencies; remove duplicates from monitor_rascs… (#523) * Add pip3 to global dependencies; remove duplicates from monitor_rascsi dependencies * Cleanup * Shutdown functionality is only available if started with root permissions * Only restrict shutdown parameters, not everything if not root * Updated operation count check
165 lines
6.3 KiB
Plaintext
165 lines
6.3 KiB
Plaintext
!! ------ THIS FILE IS AUTO_GENERATED! DO NOT MANUALLY UPDATE!!!
|
||
!! ------ The native file is rasctl.1. Re-run 'make docs' after updating\n\n
|
||
rascsi(1) General Commands Manual rascsi(1)
|
||
|
||
NAME
|
||
rasctl - Sends management commands to the rascsi process
|
||
|
||
SYNOPSIS
|
||
rasctl -e | -l | -m | -o | -s | -v | -D | -I | -L | -O | -P | -T | -V |
|
||
-X | [-C FILENAME:FILESIZE] [-E FILENAME] [-F IMAGE_FOLDER] [-R CUR‐
|
||
RENT_NAME:NEW_NAME] [-c CMD] [-f FILE|PARAM] [-g LOG_LEVEL] [-h HOST]
|
||
[-i ID [-n NAME] [-p PORT] [-r RESERVED_IDS] [-t TYPE] [-u UNIT] [-x
|
||
CURRENT_NAME:NEW_NAME]
|
||
|
||
DESCRIPTION
|
||
rasctl Sends commands to the rascsi process to make configuration ad‐
|
||
justments at runtime or to check the status of the devices.
|
||
|
||
Either the -i or -l option should be specified at one time. Not both.
|
||
|
||
You do NOT need root privileges to use rasctl.
|
||
|
||
Note: The command and type arguments are case insensitive. Only the
|
||
first letter of the command/type is evaluated by the tool.
|
||
|
||
OPTIONS
|
||
-C FILENAME:FILESIZE
|
||
Create an image file in the default image folder with the speci‐
|
||
fied name and size in bytes.
|
||
|
||
-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
|
||
Set the rascsi log level (trace, debug, info, warn, err, criti‐
|
||
cal, off).
|
||
|
||
-h HOST
|
||
The rascsi host to connect to, default is 'localhost'.
|
||
|
||
-e List all images files in the default image folder.
|
||
|
||
-N Lists all available network interfaces provided that they are
|
||
up.
|
||
|
||
-O Display the available rascsi server log levels and the current
|
||
log level.
|
||
|
||
-P Prompt for the access token in case rascsi requires authentica‐
|
||
tion.
|
||
|
||
-l List all of the devices that are currently being emulated by
|
||
RaSCSI, as well as their current status.
|
||
|
||
-m List all file extensions recognized by RaSCSI and the device
|
||
types they map to.
|
||
|
||
-o Display operation meta data information.
|
||
|
||
-R CURRENT_NAME:NEW_NAME
|
||
Rename an image file in the default image folder.
|
||
|
||
-p PORT
|
||
The rascsi port to connect to, default is 6868.
|
||
|
||
-r RESERVED_IDS
|
||
Comma-separated list of IDs to reserve.
|
||
|
||
-s Display server-side settings like available images or supported
|
||
device types.
|
||
|
||
-T Display all device types and their properties.
|
||
|
||
-v Display the rascsi server version.
|
||
|
||
-V Display the rasctl version.
|
||
|
||
-X Shut down the rascsi 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.
|
||
|
||
-i ID ID is the SCSI ID that you want to control. (0-7)
|
||
|
||
-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)
|
||
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
|
||
|
||
eject, protect and unprotect are idempotent.
|
||
|
||
-b BLOCK_SIZE
|
||
The optional block size. For SCSI drives 512, 1024, 2048 or 4096
|
||
bytes, default size is 512 bytes. For SASI drives 256 or 1024
|
||
bytes, default is 256 bytes.
|
||
|
||
-f FILE|PARAM
|
||
Device-specific: Either a path to a disk image file, or a param‐
|
||
eter for a non-disk device. See the rascsi(1) man page for per‐
|
||
mitted file types.
|
||
|
||
-t TYPE
|
||
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
|
||
cd: CD-ROM
|
||
mo: Magneto-Optical disk
|
||
bridge: Bridge device (Only applicable to the Sharp X68000)
|
||
daynaport: DaynaPORT network adapter
|
||
|
||
-n VENDOR:PRODUCT:REVISION
|
||
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.
|
||
|
||
-u UNIT
|
||
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)
|
||
|
||
EXAMPLES
|
||
Show a listing of all of the SCSI devices and their current status.
|
||
rasctl -l
|
||
|
||
Example output:
|
||
+----+-----+------+-------------------------------------
|
||
| ID | LUN | TYPE | IMAGE FILE
|
||
+----+-----+------+-------------------------------------
|
||
| 0 | 1 | SCHD | /home/pi/harddisk.hda
|
||
+----+-----+------+-------------------------------------
|
||
|
||
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
|
||
|
||
SEE ALSO
|
||
rascsi(1), scsimon(1), rasdump(1), sasidump(1)
|
||
|
||
Full documentation is available at:
|
||
<https://www.github.com/akuker/RASCSI/wiki/>
|
||
|
||
rascsi(1)
|