Operating the CD Jukebox on breath

0. Where do these CDs appear on the network?

Any CDs inserted in the jukebox and mounted + exported by breath can be seen at:
/share/spandh.pc-jukebox
/share/spandh.rr-jukebox

These are visible from any machine on the network. You do not have to be logged in
to breath to see these shared directories; breath is only needed for mounting and
dismounting the CDs. The following paragraphs describe operations on breath to
control the mount/dismount operations.
 

1. Loading CDs into the magazine

The magazine holds up to six CDs but can be used with less. Any CD slots can be left empty.
Insert the CDs into the magazine trays label side down and the magazine into the Jukebox with
the 'This Way Up' label on top. The Solaris automounter does not mount this drive.

2. Control the jukebox using the 'cdadm' command

The jukebox is controlled using special software located in the /usr/jukeman directory and only
visible on breath. The command to control the jukebox is:
$ /usr/jukeman/cdadm [options]
You might like to add some lines like the following to your .cshrc or .login.local

 if (! $?HOST) then
   setenv HOST `hostname | sed 's/\..//'`
 endif

 if ( $HOST == breath ) then
     alias cdadm '/usr/jukeman/cdadm'
 endif

This should ensure that you can type the command 'cdadm' when logged in to breath but not when
logged in to other machines. Note this only applies to controlling the jukebox; you can see the contents
of the jukebox from any machine in the dept via the /share/spandh.[pc/rr]-jukebox directories.
 

3. Make a magazine of CDs available

Assuming you now have access to the 'cdadm' command, and have a magazine of CDs inserted,
attach the jukebox to the system:

$ cdadm attatch pioneer
tested 6 slots
$

You should now be able to see in /share/spandh.pc-jukebox and/or /share/spandh.rr-jukebox
on any machine a list of the top-level directories for each of the CDs inserted. The two paths,
spandh.pc-jukebox and spandh.rr-jukebox represent two different views of the same jukebox
when using pc extensions and rock ridge extensions respectively. The data on the CDs is the same,
only the way it looks is different.

4. Changing CDs

If we want to change one or all of the CDs in the jukebox, we must first detach the jukebox from
the system:

$ cdadm detatch pioneer
$

Eject the magazine, change the CDs you want to change, and either issue the command:

$ cdadm testcd pioneer <list> where <list> represents the numbers of the CD's you have
changed. So for exaple if you change CDs 2,3 and 5

$ cdadm testcd pioneer 2-3,5

or you can use the cdadm attatch pioneer command again.

5. What about when the jukebox is in use and detach won't work?

Then you can use the command:

$ cdadm insert pioneer

to tell the jukebox you wish to insert a new CD (say in slot number 2), eject the magazine, change
the CD, reinsert the magazine and type:

$ cdadm testcd pioneer 2