Use the following command instead:
# eject cdrom0 |
# eject /dev/rdsk/c1t6d0s2 |
Make sure that the front panel of the system is unobstructed so the CD-ROM tray is not blocked. Otherwise, the eject(1) command appears to hang since the tray is trying to open, but is physically blocked.