On a TCP/IP network, terminals can be reset remotely using SNMP and the ncdreset(1) command. The host from which terminals are reset must be an SNMP manager host. ncdreset (1) provides the following choices:
The following sections describe the host and terminal configuration required before you can reset a terminal remotely.
Configuring a Host for SNMP Remote Reset
Complete the following steps to set up the host from which the remote reset command is issued:
Complete the following steps to configure a terminal for remote reset:
You can use the ncdreset utility or the unit-administrative-status remote configuration parameter to reset terminals remotely.
Using the ncdreset Utility for Remote Reset
To use ncdreset to remotely reset a terminal or restart the X session, enter an ncdreset command from a host designated as an SNMP manager. The default action of this command is to reset the terminal after the last client closes.
The syntax of ncdreset is:
ncdreset [ -V -v -c community -r reset_level ] hostname
Prints version information for the program on the standard output.
Prints a message on the standard output when the terminal is actually reset.
Is the community name. If the community name is not the default (manager), you must supply the community name.
Is the hostname of the terminal being reset.
Is the reset level. The values are:
Establishes an SNMP connection without resetting the terminal.
Restarts the X session.
Reboots the terminal when the last client closes. This is the default reset level.
Reboots the terminal immediately.
For example, the following command reboots the terminal when the last client closes and prints a message on the standard output when the terminal resets:
# ncdreset -v -r3 ncdu203
The unit-administrative-status remote configuration parameter (Setup -> Change Setup Parameters -> Unit -> Administrative Status) both displays the SNMP administrative status of terminals and provides for immediate or delayed resetting of terminals from a remote location.
Use of unit-administrative-status for remote reset requires that the snmp-allow-reset parameter be set to "true." The possible values for this parameter are described in Table 16-5. The parameter is not saved in NVRAM.
Table 16-5 unit-administrative-status Parameter Values
The terminal is running; no reset commands are pending.
The terminal restarts the session. This option is the same as logging out of the current session (in the Console, select Login -> Logout).
The terminal reboots when the last client closes.
The terminal reboots immediately. This option is the same as rebooting the terminal (in the Console, select Console -> Reboot).