C H A P T E R 6 |
Remote Command-Line Interface |
This chapter describes the remote command-line-interface (CLI). Topics include:
The remote command-line interface (CLI) provides you remote access to commands for you to configure and gather the Netra DPS runtime system information (for example, platform). The CLI also provides you remote access to the Netra DPS runtime interactive debugger and a core dump facility.
To access the CLI remotely, you must have the interprocess communication (IPC) mechanism set up on your system (see Chapter 5 for IPC information). In the same way that the IPC channel with ID 4 was set up to be used by the IP forward reference application, a channel with ID 1 must be set up for the remote CLI. SUNWndpsd must be installed on the Solaris system that will host the remote CLI.
Note - The remote CLI communicates over IPC channel number 1 (one), therefore, IPC channel number 1 should not be used for any other purpose. |
The applications that use the remote command-line interface must have the following:
Once IPC channel number 1 is set up between the LWRTE and the remote CLI Solaris host system, you are ready to access the remote CLI.
|
1. Connect to the Solaris CLI host system.
Use telnet to the hosting Solaris system at the default port number 30001.
# telnet solarisdomain 30001 Trying 192.168.1.6... Connected to solarisdomain. Escape character is ’^]’. ndps> |
2. Enter help at the prompt, as shown in this example, to list options.
3. To connect to the remote CLI, type connect at the prompt:
Type disconnect, as shown, to close the channel to the remote CLI.
4. To close the connection, type exit at the prompt.
ndps> exit the IPC link is DOWN or CLOSED, please type connect to bring it up again! Connection to sol closed by foreign host. # |
Once connected to the Netra DPS runtime, you can access the Netra DPS debugger.
|
Type the send break dbg command:
Type help or ? for help options.
Type c or cont to quit the debugger program:
Coredump is supported under the Debugger program (see Debugging Remotely). From the dbg mode, use the coredump command to dump the LWRTE system core. The coredump command has the following format:
dump_dir is the directory where the core is saved on the CLI hosting Solaris system. By default, the core is saved in /var/lwrtedump.
corename is the core file name. The next available numeric is appended to this core file name, followed by .gz.
dbg> coredump core Using dump directory “/var/lwrtedump” Total dumped: 74024954 bytes, compressed to: 456741 bytes finished coredump successfully! dbg> |
The preceding core file is created at /var/lwrtedump/core-1.gz on the remote CLI host system (solarisdomain).
You can collect system information and, if desired, change the configuration from the system (sys) mode.
|
2. To connect to sys mode, use the send break sys command.
sys> help set - set commands clr - clear commands show - show commands help - help commands version - version command quit - quit sys cli command sys> |
4. To disconnect from sys mode, type quit.
Copyright © 2008, Sun Microsystems, Inc. All Rights Reserved.