C H A P T E R 2 |
Initial Configuration |
This chapter describes how to set up and boot the switch and how to access the command-line interfaces (CLI).
This chapter contains the following sections:
The Sun IB switch is initialized with a default IP address (10.0.0.1), a default IP mask (255.255.255.0) and a default IP router (10.0.0.5) when shipped, so that the switch could be used with no pre-configurations. However, without the configuration described in the following procedure, access to the switch could be limited, and the use of the System Log proxy would be impossible.
The IP address, IP mask, and IP router values can be changed either by using the setupsc command (see setupsc) in ALOM CLI accessed through the default IP address or through the serial line or by connecting a serial cable between your host and the switch and following the steps below. If you are replacing a switch in a running cluster, read Appendix D before setting the IP address.
1. To connect to the switch, enter the following command on the host:
When the switch boots, press CTRL-X on the keyboard to stop the boot at the boot monitor with the > prompt.
3. Issue the following commands:
Note - Ensure that you use your own IP addresses instead of those shown in the example. Use only numerical IP addresses. Symbolic host names are not supported. |
Note - If you need to get back to the boot monitor to change any addresses, do the following:
|
4. To continue booting the switch, issue the boot command:
The system boots. When the system is booted, it asks for a username.
5. Log in with the username admin:
Sun Advanced Lights Out Manager for Sun IB Switch 9P Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved. username: admin Password: sc> |
No default password is set. Press the Return key.
6. To access all the ALOM commands, set the password for the admin user:
sc> password Enter new password: type your password Enter new password again: type your password again New password set for user admin successfully sc> |
The Sun IB switch uses the ALOM command-line interface (CLI).
To Access the CLI |
1. Log in as admin and enter in the password you just set up:
Sun Advanced Lights Out Manager for Sun IB Switch 9P Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved. ALOM-B 1.2 username: admin password: |
2. Use the setdate command to synchronize the switch with the time at your site:
Note - ALOM uses Coordinated Universal Time (UTC). ALOM does not accept time zone conversions or daylight time changes. |
You can use all the setdate command options or just set the time:
3. Type help at the sc> prompt to get a list of the valid CLI commands.
See Chapter 3 for a full description of the CLI commands.
4. Install and set up the system log (syslog) proxy.
See Installing and Setting Up the System Log Proxy for instructions.
The Sun IB switch provides the following types of logs and related messages:
Events occurring at or detected by software running at the switch are reported through system log (syslog) messages. The syslog messages are transferred to a Solaris host through a syslog proxy mechanism. The SUNWsibs9p Solaris package contains the necessary Solaris software and must be installed on a Solaris host in order to retrieve these messages from the switch.
Note - The switch will function fine without the syslog proxy installed, but the messages will be lost. |
If you already have the syslog proxy installed or running, please stop it and remove the proxy first. See Removing the System Log Proxy.
The SUNWsibs9p Solaris package is available from the following web site:
2. Install the package on a Solaris host that connects to the switch:
# cd /tmp # cp path_of_SUNWsibs9p_tarfile . # gunzip SUNWsibs9p.tar.gz # tar xvf SUNWsibs9p.tar # pkgadd -d . |
The package is now installed and the binaries and start scripts reside in the /opt/SUNWsibs9p/bin directory.
Before you can start the syslog proxy, you must update the config file with the IP address(es) of the IB switch(es) you want to access. Update two columns in each line of the config file (see format inside the config file). The config file is named /opt/SUNWsibs9p/bin/start_syslog.config
1. You can start the proxy in either of the following two ways:
Multiple hosts can have a syslog proxy for the same IB switch running, but only one host actually receives and logs the messages.
2. Check to see which proxy is currently the selected proxy for the cluster:
The proxy receives messages from the switch and transfers them to the Solaris host syslog API for further processing, depending on the configuration of
/etc/syslog.conf file. Then the proxy logs the message in an appropriate system log, writes it to the system console, forwards it to a list of users, or forwards it to syslogd on another host over the network. Default user LOG_ALERT is used to add the syslog messages in the /var/adm/messages file on the host.
3. You can use the tail command to watch the messages:
4. Verify that you have started the proxy:
You should see output similar to the following:
You have now completed the initial configuration of the Sun IB switch.
If you need to remove the syslog proxy, use the following procedure.
1. Check to ensure that the proxy is running:
Copyright © 2004, Sun Microsystems, Inc. All Rights Reserved.