Solaris Smartcard Administration Guide

ProcedureTo Add Internal Card Reader (Command Line)

Solaris Smartcard supports an internal card reader, using the IFD handler to configure the reader. Do the following to add an internal card reader from the command line.

  1. Verify that the ocfserv daemon is enabled.

    The following command provides the status of the service.

    % svcs network/rpc/ocfserv

    Note –

    Before you make any changes to Smartcard, you must make sure that the ocfserv daemon is enabled.

  2. (Optional) If necessary, as root, enable the ocfserv daemon.

    # svcadm enable network/rpc/ocfserv
  3. Add the Sun Internal Card Reader by typing, for example, the following command on one line:

    # smartcard -c admin -t terminal 
    -H /usr/lib/smartcard/ 
    -x add -d /dev/scmi2c0 -r MyInternalReader -n SunISCRI
    -c admin

    Indicates that you are viewing or are modifying OCF properties.

    -t terminal

    Indicates you are configuring a card reader.

    -H /usr/lib/smartcard/

    Specifies the location of the IFD handler.

    -x add

    Indicates that you are adding a card reader.

    -d /dev/scmi2cn

    Defines the device port where the card reader is attached. For example, /dev/scmi2cn, where n is the nth Sun Internal Card Reader on the system. Note that no current systems have more than one internal reader, so /dev/scmi2c0 is the only choice now.

    -r MyInternalReader

    Specifies a unique name for the Sun Internal Card Reader.

    -n SunISCRI

    Indicates the model name for the Sun Internal Card Reader.

  4. Restart ocfserv.

    # svcadm restart network/rpc/ocfserv

    The ocfserv process is restarted the next time you use the Smartcard Console or execute the smartcard command.