Home | History | Annotate | Download | only in man1m
 te
CDDL HEADER START

The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.

You can obtain a copy of the license at CDDL.txt
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.

When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at CDDL.txt.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]

CDDL HEADER END
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
cports 1M "8 Sep 2007" "Sun Cluster 3.2" "System Administration Commands"
NAME
cports - expand host names into <host, server, port> triples
SYNOPSIS

$CLUSTER_HOME/bin/cports hostname [hostname.\|.\|.]
DESCRIPTION

The cports utility expands the hostname arguments into a list of <host, server, port> triples. The returned information is used to access the serial port consoles of the named hosts by way of the terminal server returned in the triples.

If an entry for serialports has been made in the /etc/nisswitch.conf file, then the order of lookups is controlled by that entry. If there is no such file or no such entry, then the nameservice look up order is implicitly nis files.

EXAMPLES

Example 1 Using the cports Command

If the /etc/serialports file contains the entry:

blue colors-tc 5002

the following command:

% cports blue

prints the following string:

blue colors-tc 5002

This information can be used by the telnet(1) command to remotely access blue's console:

% telnet colors-tc 5002
ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWccon
Interface StabilityEvolving
SEE ALSO

telnet(1), cconsole(1M), ccp(1M), chosts(1M), crlogin(1M), cssh(1M), ctelnet(1M), serialports(4), attributes(5)