Go to main content

Troubleshooting System Administration Issues in Oracle® Solaris 11.3

Exit Print View

Updated: October 2017
 
 

Guidelines for Using the consadm Command During an Interactive Login Session

    You can run an interactive login session by logging in to a system using a terminal that is connected to a serial port and then using the consadm command to see the console messages from the terminal. Note the following behavior:

  • If you use the terminal for an interactive login session while the auxiliary console is active, the console messages are sent to the /dev/sysmsg or /dev/msglog devices.

  • While you issue commands on the terminal, input goes to your interactive session and not to the default console (/dev/console).

  • If you run the init command to change run levels, the remote console software kills your interactive session and runs the sulogin program. At this point, input is accepted only from the terminal and is treated as if it is coming from a console device. This process allows you to enter your password to the sulogin program as described in Using Auxiliary Console Messaging During Run Level Transitions.

    If you enter the correct password on the auxiliary terminal, the auxiliary console runs an interactive sulogin session and locks out the default console and any competing auxiliary console. This behavior means that the terminal essentially functions as the system console.

  • From here you can change to run level 3 or go to another run level. If you change run levels, sulogin runs again on all console devices. If you exit or specify that the system should come up to run level 3, then all auxiliary consoles lose their ability to provide input. They revert to being display devices for console messages.

    As the system is coming up, you must provide information to rc scripts on the default console device. After the system comes back up, the login program runs on the serial ports and you can log back into another interactive session. If you've designated the device to be an auxiliary console, you will continue to get console messages on your terminal, but all input from the terminal goes to your interactive session.

How to Display a List of Auxiliary Consoles

  1. Issue the consadm command as root, with no arguments.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Select one of the following steps:
    1. Displays a list of auxiliary consoles.
      # consadm
      /dev/term/a
    2. To display a list of persistent auxiliary consoles, use the -p option.
      # consadm -p
      /dev/term/b

How to Enable an Auxiliary (Remote) Console

  1. Log in to the system and assume the root role.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Enable the auxiliary console.
    # consadm -a device name
  3. Verify that the current connection is the auxiliary console.
    # consadm
Example 8  Enabling an Auxiliary (Remote) Console
# consadm -a /dev/term/a
# consadm
 /dev/term/a

How to Enable an Auxiliary (Remote) Console Across System Reboots

  1. Log in to the system and assume the root role.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Enable the auxiliary console across system reboots.
    # consadm -a -p device name     

    This command adds the device to the list of persistent auxiliary consoles.

  3. Verify that the device has been added to the list of persistent auxiliary consoles.
    # consadm
Example 9  Enabling an Auxiliary (Remote) Console Across System Reboots
# consadm -a -p /dev/term/a 
# consadm
/dev/term/a

How to Disable an Auxiliary (Remote) Console

  1. Log in to the system and assume the root role.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Disable the auxiliary console.
    # consadm -d devicename

    To also remove the auxiliary console from the list of persistent auxiliary consoles, add the -p option.

    # consadm -p -d devicename
  3. Verify that the auxiliary console has been disabled.
    # consadm
Example 10  Disabling an Auxiliary (Remote) Console
# consadm -d /dev/term/a
# consadm