previous - next - up - title - contents - index

6.1 Introduction


The following pages contain brief descriptions of the commands that can be passed to the program cdadm.

Note: For reasons of clarity the optional paramter "-h <hostname>" is left out on the following pages. Using this parameter, the iXOS-JUKEMAN server can be administered from any host where the administration client cdadm is installed. See section "Network administration" on page 100.

If you want to...

use this command:


page

attach a device to the server

cdadm attach

225

detach a device from the server

cdadm detach

228

query server parameters

cdadm getpar

229

set server parameters

cdadm setpar

237

insert disks into a device

cdadm insert

230

move disks to a drive

cdadm movecd

232

print out surveys

cdadm survey

238

remove disks from a device

cdadm remove

235

rename disks

cdadm rename

234

test, if the server is running

cdadm null

233

test certain slots for disks

cdadm testcd

242

use the incremental file system

cdadm writer

243

log messages

cdadm logmsg

231

cdadm attach <device> [-d <drive> ]

attach

Function:
Attach the specified device (or drive) to the server. The effect of this command is that the device and its volumes are controlled by iXOS-JUKEMAN. The device (or drive) cannot be accessed unless it is attached.
The parameter <device> represents a valid device description file in the JUKEMAN directory. These files have the extension .dev. The extension may be omitted in the command.
If the optional parameter -d <drive> is specified, a drive locked dynamically with cdadm detach -d... will be attached again. <drive> is the logical drive number.
To attach a device automatically when the server starts up, add it to the file server.cfg (see "Configuration file server.cfg" on page 245).
Example:
cdadm attach p18.dev
cdadm attach p18 (equivalent)
Error messages:

Error message

Meaning

attach p18: No device description file
*error* -1

Device description file not found.

attach p18: name in use
*error* -1

Device already attached.

cdadm byebye

byebye

Function:
Terminate the iXOS-JUKEMAN daemon cdnfsd. The server will stop and accept no further requests. The server can be restarted by running cdstart.bat (under NT) or cdnfsd (under UNIX) (see "Starting iXOS-JUKEMAN" on page 91).
Example:
cdadm byebye
cdadm down (Synonym)
Error messages:

Error message

Meaning

RPC failed: cannot connect to server
*error* -3

Service not running

cdadm cvtree

cvtree

Function:
Rescan the configurable volume tree (views). This can be useful when views are changed in the server.cfg configuration file (see "Configuration file server.cfg" on page 245). The server does not need to be restarted, to reflect changes to the views configuration.
Example:
cdadm cvtree
Error messages:
-

cdadm detach <device> [-d <drive> ]

detach

Function:
Detach the specified device (or drive) from the server. The device and its volumes are no longer controlled by iXOS-JUKEMAN. The device (or drive) cannot be accessed until it is attached again.
The parameter <device> represents a valid device description file in the JUKEMAN directory. These files have the extension .dev. The extension may be omitted in the command.
If the optional parameter -d <drive> is specified, the drive with the logical number <drive> will be locked dynamically, while the server is running. This locked drive will not be used for any further file requests to the server. However, it is possible to move disks into this drive with cdadm movecd... and to remove disks from this drive (e. g., to use the drive for writing disks).
Example:
cdadm detach p18.dev
cdadm detach p18 (equivalent)
Error messages:

Error message

Meaning

No such device
*error* 19

Device is not attached or does not exist.

cdadm getpar <key>

getpar

Function:
Get the value of the server parameter <key>. Refer to the section "Server parameters" on page 253 for a list of all parameters. Server parameters may be set in the configuration file server.cfg or with the cdadm setpar command. Note that some parameters cannot be changed while the server is running. See "Static parameters" on page 129.
Example:
cdadm getpar loglev
Error messages:

Error message

Meaning

No parameter "xyz" available
*error* -1

No or wrong <key> parameter given.

cdadm insert [-f] <device> [<list>]
cdadm import [-f] <device> [<list>]

insert
import

Function:
Insert a disk into the specified device.
The parameter <device> represents a valid device description file in the JUKEMAN directory. These files have the extension .dev. The extension may be omitted in the command.
The optional <list> parameter may be used to specify any number and selection of slots. The following syntax is used to specify a variety of slots:

7

slot 7

3,6,40

slots 3, 6 and 40

3-7

slots 3 through 7

2,20-45

slots 2 and slots 20 through 45


(no specification): all slots available.


The specified slots will be scanned for empty slots and a single volume can be inserted into the first found empty slot. If there are no free slots, you will get an error message.
Note that for some devices like single drives and towers there is a dynamic drive check to detect disk changes (see server parameter dcheck in section "Server parameters" on page 125). You do not need to issue this command if you want to insert disks into these devices.
The optional -f switch can be used with the Pioneer DRM-500 and the Grundig GMS 1035. Using this switch, the command will return as soon as the door may be opened for a disk to be inserted. This is to prevent you from opening the jukebox door too early. If the switch is not specified, the command will wait, until the disk changes is finished.
Example:
cdadm insert merc 4-12
Error messages:

Error message

Meaning

No such device
*error* 19

Specified device does not exist or is not attached.

No good slot found
*error* -1

No empty slot in specified range.

cdadm logmsg <level> <message>

logmsg

Function:
Add <message> to the file logfile.txt. The <level> parameter is the log level of the message. The log file is described in "Log file logfile.txt" on page 257. If <level> goes beyond the parameter loglev, the message will not be logged.
Example:
cdadm logmsg 5 This goes to logfile.txt
Error messages:
-

cdadm movecd <device> <drive> [<slot>]

movecd

Function:
Move a disk from <slot> to <drive> or remove a disk from <drive>. This command will especially be useful, if you want to move a certain (writable) disk into a recorder drive to burn data on it.
The parameter <device> represents a valid device description file in the JUKEMAN directory. These files have the extension .dev. The extension may be omitted in the command.
The <drive> parameter is a number between 1 and the total number of drives in a jukebox (e.g., 4 in a Mercury jukebox).
If the <slot> parameter is specified, the disk from that slot will be moved into the specified drive. If <slot> is omitted or specified as 0, the disk currently placed in drive <drive> will be removed from that drive (to its previous slot).

Example:
cdadm movecd merc.dev 2 8
Error messages:

Error message

Meaning

No such device
*error* 19

Specified device does not exist or is not attached.

testing.dev no slot 55
*error* -1

Specified slot number is not valid.

Not that many drives
*error* -1

Specified drive number is not valid.

cdadm null

null

Function:
Check if the server is active. If the server is active, there is no result. An error message will be produced if the server is not running.
Example:
cdadm null
Error messages:

Error message

Meaning

RPC failed: cannot connect to server
*error* -3

Server not running.

cdadm rename [[-<nf>] <old> [<new>]]

rename

Function:
Rename a disk in the name format <nf>. There are three possible name formats (see also "Setting up views" on page 69):

pc

PC format (8.3)

rr

Rock Ridge extensions

hs

High Sierra format


If no name format is supplied, the disk name will be changed for all name formats that match the old name specified.
A single disk may have a different name for each name format. The name format that is visible to the client is set in the server.cfg configuration file (see "Configuration file server.cfg" on page 245).
The <old> parameter is the current name of the disk in the given name format.
The <new> parameter is the new name of the disk. This parameter must not be an already existing name from the volumes database. If it is omitted, the <old> name will be removed from the database, provided that the disk is not in use.
If cdadm rename is called without any parameters, all unused volume names will be removed from the database. These names can then be assigned to other volumes (see also "Rename disks" on page 121).
Example:
cdadm rename -pc demo.cd1 office.cd1
cdadm rename (removes unused volume names from the database)
Error messages:

Error message

Meaning

Volume is active
*error* -1

You tried to remove a name of a disk that is in use.

No such name
*error* -1

<old> name not known to iXOS-JUKEMAN.

cdadm remove [-f] <device> [<list>]
cdadm export [-f] <device> [<list>]

remove
export

Function:
Remove a volume from the specified device.
The parameter <device> represents a valid device description file in the JUKEMAN directory. These files have the extension .dev. The extension may be omitted in the command.
The optional <list> parameter may be used to specify any number and selection of slots. The following syntax is used to specify a variety of slots:

7

slot 7

3,6,40

slots 3, 6 and 40

3-7

slots 3 through 7

2,20-45

slots 2 and slots 20 through 45


(no specification): all slots available.


(As an alternative for the slot number, a disk name may be specified.)
The slot range will be scanned for occupied slots and a single volume will be removed from the first found occupied slot. If there are no occupied slots, you will get an error message.
Note that for some devices like single drives and towers there is a dynamic drive check to detect disk changes (see server parameter dcheck in section "Server parameters" on page 125). You do not need to issue this command if you want to remove disks from these devices.
The optional -f switch can be used with the Pioneer DRM-500 and the Grundig GMS 1035. Using this switch, the command will return as soon as the door may be opened for a disk to be removed. This is to prevent you from opening the jukebox door too early. If the switch is not specified, the command will wait, until the disk change is finished.
Example:
cdadm remove merc 2,5,6
Error messages:

Error message

Meaning

No such device
*error* 19

Specified device does not exist or is not attached.

cdadm rescan <device>

rescan

Function:
Reinitializes the internal memory of the jukebox, which stores information about which slot or drive contains which disk. This command is needed for some jukeboxes, if disks were changed manually. The jukebox would not know about these changes and could damage itself as it tries to move a disk in a slot which is presumed empty. The other way around the jukebox will not move disks into a drive if the slot is presumed empty according to the internal memory.
Execution of this command can take quite some time, since by default all slots are tested (e. g., about one hour for the Pioneer 5004 X), Alternatively, iXOS-JUKEMAN version 2.3 allows a partial rescan for the Pioneer 1004 X and 5004 X as well as the JVC MC-* and DISK CD CHG-* jukeboxes with the command "cdadm testcd", e. g., cdadm testcd pi500.dev 1-20. Please note, that the server parameter blanks (see page 125) must be set to 0 to guarantee that these tests are actually done.
However, the command "cdadm testcd" applied to all slots of the jukebox should not be mistaken as a substitute for cdadm rescan: A rescan refers to the internal memory of the jukebox, whereas a testcd refers to the internal volumes database of the server.
The parameter <device> represents a valid device description file in the JUKEMAN directory. These files have the extension .dev. The extension may be omitted in the command.
Example:
cdadm rescan jb.dev
Error messages:

Error message

Meaning

No such device
*error* 19

Specified device does not exist or is not attached.

cdadm setpar <key> <value>

setpar

Function:
Set the server parameter <key> to <value>. Refer to the section "Server parameters" on page 253 for a list of all parameters. Server parameters can also be set in the configuration file server.cfg. Note that some parameters cannot be changed while the server is running. See "Static parameters" on page 129.
Example:
cdadm setpar loglev 2
Error messages:

Error message

Meaning

No parameter "xyz" available
*error* -1

Wrong <key> parameter given.

cdadm survey <surveytype> <columns> [<restrict>] [<sortby>]

survey

Function:
Print a survey based on devices, disks, or drives, depending on several parameters, which specify the columns, restrictions and sort criterion.
The following options may be specified:

<surveytype>

Meaning

-d

Survey based on devices

-v

Survey based on disks

-n

Survey based on the volumes database

-s

Survey based on the slots

-r

Survey based on the drives

<columns>

Print out...

General:


+d

device names of attached devices

+n

Total number of slots of a device

+s

Slot number

+i

inode number in volumes database

Disks:


+m

type of disk media (CD-ROM, HD image...)

+R

`r', if a recorder is necessary to read, `a' otherwise

+a

`@', if the disk is in a drive, `-` otherwise

+u

`+', if the disk can be accessed, `-` otherwise

+U

time of last access to disk in seconds since 1970

+S

size of the disk, including free space (in kBytes)

+I

file system implementation (e. g., iso, hfs, ifs, ixw, raw)

+v

file system specific informationen

+Y

`rw', if the disk is writable, `r' otherwise

Names:


+o

original disk name

+r

disk name in Rock Ridge format (rr)

+p

disk name in PC format (pc)

+h

disk name in High Sierra format (hs)

IFS*:


+B

amount of buffered data for a volume

+W

amount of data (physically) written to the disk

+w

W+B (total amount of data for a disk)

+F

S-W (free space on physical disk)

+f

S-w (free space for further data)

+T

number of written tracks for a disk

Statistics:


+D

amount of data (MBytes) read from a disk

+-D

like +D, but set all values to zero afterwards

+P

number of operations on a disk, i. e. read accesses with max. block size of 64kB

+-P

like +P, but set all values to zero afterwards

+M

number of movements of a volume into a drive

+-M

like +M, but set all values to zero afterwards

Drives:


+n

SCSI address (path) of drive or file name for images

+v

vendor string

+p

product ID

+i

logical drive number

+t

drive type (0=hard disk, 4=CD recorder, 5=CD-ROM, 7=opt. drive, 8=jukebox)

+r

`r', if drive is a recorder, `-` otherwise

+f

`f', if drive is defective or missing, `-` otherwise

+u

`u', if drive is locked dynamically, `-` otherwise

* IFS = Incremental File System. Sizes in kBytes (1024 bytes).


Possible combinations:
cdadm survey -d +dnRDPMr
cdadm survey -v +dsimRauUSIvYorphBWwFfTDPMf
cdadm survey -s +dsimRauUSIvYorphBWwFfTDPMf
cdadm survey -n +iuUIorphDPM
cdadm survey -r +dnvpitrfu

Note: Any <column> name may be preceeded with :<char> to get quoted output for that parameter, where <char> is a single character. For instance cdadm survey -d +:'d lists all attached devices, where the device names will be quoted (`dev1.dev', `dev2.dev'...).


<restrict>:
This optional parameter may be used to limit the survey output to entries specified in the format:
<column>=<value> (print all lines where <columns> is <value>)
<column>!<name> (print all lines where <columns> is not <value>)
Example:

cdadm survey -v +do m=HD-image

This command will print a disk-based survey with device names and original disk names for all disks with the type HD-image.
<sortby>:
This optional parameter may be used to sort the output by one or more columns:

s:[-]<columns>

The optional - reverses the sort order.
Example:

cdadm survey -v +do m=HD-image s:dB

´This command will print a list of all hard disk images sorted by name and size of buffered data.
Example:
cdadm survey -d +d print a list of all attached devices
cdadm survey -n +oPDM u=+ s:o print disk names and statistics. Output is limited to accessible disks (u=+) and sorted by original disk names (s:o)
Error messages:

Error message

Meaning

usage: cdadm survey -d|-v|-s +..
*error* -1

Wrong <reporttype>.

illegal column name x
*error* -1

column name x does not exist (see <columns> table) or is not allowed in conjunction with <reporttype>.

cdadm testcd <device> <list>

testcd

Function:
Test one or more slots of an attached device for their contents. Disks inserted manually will not be seen by the server, unless their corresponding slots are tested with this command. Depending on the jukebox type a rescan needs to be accomplished beforehand (see page 236).
The parameter <device> represents a valid device description file in the JUKEMAN directory. These files have the extension .dev. The extension may be omitted in the command.
The optional <list> parameter may be used to specify any number and selection of slots. The following syntax is used to specify a variety of slots:

7

slot 7

3,6,40

slots 3, 6 and 40

3-7

slots 3 through 7

2,20-45

slots 2 and slots 20 through 45


Example:
cdadm testcd merc.dev 4,5,10-20
Error messages:

Error message

Meaning

No such device
*error* 19

Specified device does not exist or is not attached.

cdadm writer ...

writer...

Function:
The "cdadm writer..." commands access the incremental file system. A detailed description can be found in the section "Burning disks incrementally" on page 154.

format

(1) cdadm writer action=format location=<location>
Format a PD/MO disk or a hard disk image. This may take some time.

init

(1) cdadm writer [fsi=ifs] action=init location=<location> vname=<volume>
Initialize a writable disk. This command creates a recordable file system on the specified disk. Two small tracks will be written for initialization. One more track will be written for finalization. Therefore, up to 96 tracks can be written to a CD-R, since it is limited to 99 tracks. For PDs, WORMs, MOs and hard disk images there is no such limitation. The software will currently not check the space needed for the final table of contents track. Enough space must be left for successful finalization.

flush

(1) cdadm writer action=flush vname=<volume>
Actually write all buffered data to the specified disk.

verify

(1) cdadm writer action=verify [track=<number>]
If track=... is not specified, the last written track will be verified, otherwise the track with number <number>. If track=all is specified, all tracks will be verified.

purge

(1) cdadm writer action=purge vname=<volume>
Purge all buffered data for the disk <volume>.

finalize

(1) cdadm writer action=finalize vname=<volume>
Finalize a disk with an incremental file system. All buffered data must be flushed from the buffer to the disk with a cdadm writer flush command before it can be finalized.
<location> is in the format <device>,<slot>, where <device> is the name of a valid device description file and <slot> is the slot number.
In addition the parameter speed=1, speed=2 or speed=3 can be specified to select the writing speed (default: double speed). The parameter ring=<size> selects the ring buffer size used for writing (default: 4 MB).
Example:
cdadm writer action=init location=jb.dev,4 vname=CDR_01
cdadm writer action=flush vname=CDR_01
cdadm writer action=verify vname=CDR_01
cdadm writer action=finalize vname=CDR_01
Error messages:

Error message

Meaning

no vname ?
*error* -1

<volume> name is missing.

illegal action type
*error* -1

Specified action not allowed.

no vname burning
*error* -1

Wrong disk name or missing <location>.

bad location
*error* -1

Invalid <location>. Maybe the slot is missing.

p_wrfs(): bad init track
*error* -1

Disk has not been initialized.

trec_init() fails
*error* -1

Disk could not be initialized.

trec_reserve() fails
*error* -1

Track reservation did not succeed.

cannot flush corrupted volume
*error* -1

Buffered data could not be written to disk.

cannot finish track
*error* -1

Track could not be finished (disk could be corrupt)

incomplete track
*error* -1

Incomplete Track.

cannot read PVD from track 2
*error* -1

Primary Volume Descriptor could not be read.

cannot start track 1
*error* -1

Track could not be started.


previous - next - up - title - contents - index