|
|
This chapter describes how to install and configure CiscoWorks software on HP systems.
Before installing CiscoWorks, you must complete the prerequisite steps described in the "Preparing to Install CiscoWorks" chapter. To install and configure CiscoWorks, you need to perform the following general tasks:
To perform the tasks associated with installing and configuring CiscoWorks, you must log in to your system as the superuser (root). Superusers can perform functions that normal users cannot.
![]() | Caution If you are a relatively inexperienced UNIX user, limit your activities as the superuser to the tasks described in this publication. As the superuser, you can adversely affect your operating environment if you are unaware of the effects of the commands you use. |
To become the superuser, you must know the root password. In the following examples, the root password is rootpassword.
If you are not logged in, enter the following commands to log in as the superuser:
login:rootPassword:rootpassword#
Make sure that you start an X Window Manager session.
The UNIX prompt is a pound sign (#), indicating that you are logged in as the superuser.
If you are already logged in, but not as root, enter the following commands to change your login:
%suPassword:rootpassword#
The C shell prompt changes from a percent sign (%) to a pound sign (#), indicating that you are logged in as the superuser.
If you are not upgrading, skip this section and go to "Installing CiscoWorks".
Before you upgrade, you must perform the following tasks:
Since CiscoWorks uses the Sybase database, you must close all database files and shut down your database before starting the backup process.
To shut down the database, perform the following steps:
Step 1 Log in to your system as the superuser.
For information on how to become the superuser, refer to the section "Becoming the Superuser," earlier in this chapter.
Step 2 To ensure that your Sybase environment variable is set, enter the following:
setenv SYBASE $NMSROOT/sybase
Step 3 Execute the isql binary by entering the following:
$SYBASE/bin/isql -Usa -P sa_password
Enter the password, if you created one, for the Sybase SA account at your site. If you do not supply a password, the script assumes the value for password is null.
After starting isql, the prompt 1> appears.
Step 4 Enter the shutdown command as follows:
shutdown
go
The database shuts down, and the root prompt reappears.
Back up your entire CiscoWorks system, including the $NMSROOT directory, current database(s) and map files, as well as any additional Sybase data files. For information on backing up UNIX files, refer to the UNIX manual pages on tar(1) or cpio(1).
![]() | Caution To prevent possible data loss, back up your system and database before installing CiscoWorks. |
After you shut down the Sybase database and back up your existing CiscoWorks software, verify that you are running the supported operating systems and network management software versions.
To verify your current operating system, enter uname -r.
To verify your current network management platform versions, start HP OpenView and then select Help>About Open View to view the version number.
If you are not running the supported versions, follow the instructions to upgrade your operating system and the network management platform software. If you are using HP-UX, follow the instructions in the HP documentation to upgrade your version of HP-UX to the appropriate version. After you install your operating system, follow the instructions in your NMS documentation to install HP OpenView, if it is not already installed.
Before you install CiscoWorks from a CD-ROM drive attached to your system or a remote system, connect a CD-ROM drive either to your workstation or to the remote workstation.
Retain the device number used by the CD-ROM drive for later use in installing CiscoWorks. After you log in as the superuser, the installation script prompts you to supply the device name of the local or the remote CD-ROM drive, or the name of the remote system and the device name of the remote drive.
The installation and configuration process takes a minimum of 20 to 30 minutes. Depending on your system performance and installation method, installation from a remote CD-ROM drive may take longer than 30 minutes.
![]() | Caution Avoid exposing the CiscoWorks CD-ROM to direct sunlight because it might harm the contents. |
CiscoWorks software is distributed on a CD-ROM. The CD-ROM contains a number of filesets. A fileset is group of related files. Each partition or fileset contains a specific set of files, as described in Table 2-1 for HPUX 9.x and Table 2-2 for HPUX 10.x.
| Partition Name | Fileset Name | Contents |
|---|---|---|
| CWIC | cwinstall and cwconfigure scripts, which install and configure CiscoWorks | |
| CISCO-WORKS | CW-BIN | Actual CiscoWorks applications |
| CW-DOC | CiscoWorks help and UNIX manual (man) page files | |
| CW-ETC | Daemons and utilities that support CiscoWorks applications | |
| CW-MISC | Software you can use with CiscoWorks, such as tcl (a scripting language) | |
| CW-OV-REGISTER | CiscoWorks files that support HP OpenView | |
| CW-WGD | WorkGroup Director application | |
| HYPERHELP | HyperHelp text files | |
| SYBASE | Sybase relational database | |
| SHARE-LIBS | LIBXMU | X11 standard libraries |
| SHARE-LIBS | C++ runtime libraries |
| Partition Name | Fileset Name | Contents |
|---|---|---|
| CISCO-WORKS | CISCOWORKS | Scripts, applications, and help files |
| SYBASE | Sybase relational database version 10.02 | |
| SHARE-LIBS | LIBXMU | X11 standard libraries |
| LIBXAW | X11 standard libraries |
If you are using a CD-ROM drive that is connected to your workstation, refer to the following section, "Mounting from a Local Drive." If you are using a CD-ROM drive that is connected to a remote workstation, refer to the section "Mounting from a Remote Drive." These instructions are also provided in the CiscoWorks CD-ROM insert booklet shipped with the product.
To install the CD-ROM from a local CD-ROM drive, perform the following steps:
Step 1 Log in as the superuser by entering su and the root password.
Step 2 If a /cdrom directory does not already exist, enter:
mkdir /cdrom
Step 3 Insert the CD-ROM in the drive.
Step 4 To mount the CD-ROM, enter:
/etc/mount -rt cdfs /dev/device_name /cdrom
-r mounts the CD-ROM in read-only mode.
-t indicates the type of filesystem, where cdfs specifies a filesystem with an ISO 9660 standard or High Sierra standard with Rock Ridge extensions and a CDFS filesystem.
device_name is the device that you mount, usually /dev/dsk/c201d2s0 on HP-UX 9.x, or /dev/dsk/c0t2d0 on HP-UX 10.x.
If you do not use these options, media error messages may display on the console.
Proceed to "Installing CiscoWorks on HP-UX 9.x", or "Installing CiscoWorks on HP-UX 10.x".
If you use a CD-ROM drive attached to a remote system, CiscoWorks does not consume disk space on the remote system because the software is copied across the network to the local workstation.
The root .rhosts file on the remote system must contain the host name of your local system and an entry for the user root. Otherwise, you cannot access the remote system to download software from its CD-ROM drive. For more information, refer to the rhosts UNIX manual page.
To install CiscoWorks from a remote host, acquire the appropriate login account to mount the CD-ROM remotely.
To install the CD-ROM from a remote CD-ROM drive, perform the following steps on the remote machine:
Step 1 Log in as the superuser by entering su and the root password.
Step 2 If a /cdrom directory does not already exist, enter:
mkdir /cdrom
Step 3 Insert the CD-ROM in the drive.
Step 4 Use a text editor to create an /etc/exports file, if one does not exist.
Step 5 Add the following line to the /etc/exports file:
/cdrom -ro
Step 6 Make sure that your workstation is enabled as an NFS server.
Check rpc.mountd daemon status by entering the following command:
ps -ef | grep rpc.mountd
On HP-UX 9.x:
If no rpc.mountd daemon is running, start one by entering:
/usr/etc/rpc.mountd -n
If your machine is enabled as an NFS server, the following daemons should be running: /usr/lib/nfs/nfsd and /usr/lib/nfs/mountd.
Step 7 If these daemons are not running, enable your machine as an NFS server as follows.
On HP-UX 9.x, start the System Administration Manager by entering:
sam
Select Services> Enable/Disable from the menu. On the Services: Enable/Disable menu, check the status of the NFS server against the Status column. If the status is disabled, select Actions>Enable from the menu to enable it. Exit sam.
On HP-UX 10.x, enter:
/sbin/init.d/nfs.server start
Step 8 Mount the CD-ROM as follows:
On HP-UX 9.x, enter:
/etc/mount -rt cdfs /dev/device_name /cdrom
On HP-UX 10.x, enter:
/usr/sbin/mount -rt cdfs /dev/device_name /cdrom
-r mounts the CD-ROM in read-only mode.
-t indicates the type of filesystem, where cdfs specifies a filesystem with an ISO 9660 standard or High Sierra standard with Rock Ridge extensions and a CDFS filesystem.
device_name is the device that you mount, usually, /dev/dsk/c201d2s0 on HP-UX 9.x, or /dev/dsk/c0t2d0 on HP-UX 10.x.
If you do not use these options, media error messages may appear on the console.
Step 9 On HP-UX 9.x only, enter:
exportfs -a
On HP-UX 10.x, this step is not necessary.
Step 10 Go to the local machine and become the superuser by entering su and the root password.
Step 11 If a /cdrom directory does not already exist, enter:
mkdir /cdrom
Step 12 Mount the CD-ROM as follows.
On HP-UX 9.x, enter:
/etc/mount remote_machinename:/cdrom /cdrom
On HP-UX 10.x, enter:
/usr/sbin/mount remote_machinename:/cdrom /cdrom
Step 13 If you are installing CiscoWorks for the first time on HP-UX 9.x, create a directory for the CiscoWorks files by entering:
mkdir /usr/nmscw
On HP-UX 10.x, you do not need to create a directory for the CiscoWorks files. By default, CiscoWorks is installed in the following directories:
/opt/CSCOcwh HP OpenView version
/opt/CSCOsyb All Sybase modules
Proceed to "Installing CiscoWorks on HP-UX 9.x", or "Installing CiscoWorks on HP-UX 10.x."
If you are installing CiscoWorks on HP-UX 9.x, following the directions in "Installing CiscoWorks on HP-UX 9.x". If you are installing CiscoWorks on HPUX 10.x, follow the directions in "Installing CiscoWorks on HP-UX 10.x".
To install the CiscoWorks files on an HP-UX 9.x platform, perform the following steps.
Step 1 Create the directory in which you will install CiscoWorks files:
mkdir /usr/nmscw
Step 2 Copy the installation and configuration scripts to the new CiscoWorks directory as follows.
On HP OpenView 3.3, enter:
/etc/update -s /cdrom/HP9_OV3/cw.tar -d /usr/nmscw CWIC
On HP OpenView 4.x, enter:
/etc/update -s /cdrom/HP9_OV4/cw.tar -d /usr/nmscw CWIC
-s specifies where the CiscoWorks software is located on the CD-ROM.
-d indicates the destination where the scripts are stored. For example, if you enter the pathname /usr/nms, the scripts are stored in /usr/nms.
Step 3 Enter the cwinstall command to install the CiscoWorks software:
cd /usr/nmscw/install/bin
On HP OpenView 3.3, enter:
./cwinstall -s /cdrom/HP9_OV3/cw.tar -d /usr/nmscw
On HP OpenView 4.x, enter:
./cwinstall -s /cdrom/HP9_OV4/cw.tar -d /usr/nmscw
If you do not enter any options, cwinstall prompts you for them. Command options for cwinstall include:
-s--source. The pathname you enter after -s is the same as the source pathname you entered in Step 2.
-d--destination. This specifies where the CiscoWorks software will be installed.
-f-- filesets. This specifies the filesets that must be loaded. To install only CiscoWorks, specify CISCO-WORKS after the -f option. If you do not specify the -f option, cwinstall loads CiscoWorks, Sybase, and HyperHelp.
-help--Prints command usage.
Step 4 After installing the CiscoWorks files, enter the following to configure CiscoWorks:
/usr/nmscw/install/bin/cwconfigure
Answer the system prompt questions.
Step 5 To unmount and eject the CD-ROM from your local and/or a remote machine, enter the following commands:
cd /
# umount /cdrom
Remove the CD-ROM from the drive and store it in a safe place.
Refer to the chapter "Validating CiscoWorks Installation" for installation verification procedures and customizing information.
The installation process on HP-UX requires you to install the CiscoWorks packages, modify the kernel configuration file, and run the configuration scripts.
All root file systems, software depots, and products in software depots are protected by Access Control Lists (ACLs). The HP-UX 10.x installation commands (SD-UX) permit or prevent specific operations based on whether the ACLs on these objects permit the operation. Use the swacl command to view, edit, and manage these ACLs. The ACL must exist and you must have the appropriate permission (granted by the ACL itself) in order to modify it.
To view the current access list for the product:
swac1 -l product -x target_directory=/cdrom/HP10_OV4 CISCOWORKS 32
To view the current access list for the host:
swacl -l host
To modify or for more information on the access control list, refer to man swacl.
To install CiscoWorks on an HP-UX 10.x platform, perform the following steps:
Step 1 Extract the files from the CD-ROM by entering:
cd /cdrom/HP10_OV4
./cwinstall -s /cdrom/HP10_OV4
Step 2 Answer yes each time cwinstall prompts whether you want to install a package.
Step 3 Begin the CiscoWorks configuration process by entering:
cd /opt/CSCOcwh/install
./cwconfigure
Answer the cwconfigure script questions according to the information you entered on the CiscoWorks Configuration Worksheet in Chapter 1.
Step 4 To unmount and eject the CD-ROM from your local and/or a remote machine, enter:
cd /
# umount /cdrom
Remove the CD-ROM from the drive and store it in a safe place.
Refer to the chapter "Validating CiscoWorks Installation" for installation verification procedures and customizing information.
To ensure that CiscoWorks runs successfully, you may need to perform several post-installation tasks. The following sections contain instructions for these tasks:
During installation, several log files are created to track the installation process and provide diagnostic information if a problem arises.
When you are satisfied that CiscoWorks is properly installed and operating, you can remove each log file by entering the following command.
On HP-UX 9.x:
#rm $usr/rms/install/bin/log/filename.log
On HP-UX 10.x:
#rm /opt/CSCOcwh/install/filename.log
rm *.log to remove the CiscoWorks log files because other applications can put log files in these directories, and you may need to keep those application's log files.
The log files are described in Table 2-3.
| Log Filename | Contents |
|---|---|
| cwconfigure.defs | Your responses to the prompts during the configuration. (This file is not removed because you may want to use the same answers if you need to reinstall CiscoWorks. The software will use these answers as the defaults when you next install CiscoWorks.) |
| cwconfigure.log | Configuration log messages. |
| cwinstall.log | Installation log messages. |
| update.log | Messages logged while extracting files from CD-ROM. |
| swagent.log | Installation log for software tools (HP-UX 10.x only). |
You can customize certain features of your CiscoWorks and NMS environments by modifying the X Windows resource files. X resources are listed in each user's .Xdefaults file or in the system X resource files located in the /usr/lib/X11/app-defaults directory. For example, you can change the window display colors, fonts, or sizes, or specify certain ways for CiscoWorks to run in your X Windows environment.
This section provides information on the following topics:
You can customize any X resource that CiscoWorks applications use, including colors, fonts, and sizes in CiscoWorks windows. To use your own colors, fonts, and sizes for CiscoWorks, perform one of the following procedures:
When working with CiscoWorks applications, you may notice that the window sizes vary from application to application. The layout of the window and the size of its text and graphics is preset to be large enough to contain all the elements that define the window. However, you can resize the window without obscuring the text.
To save the default CiscoWorks window size, perform the following steps:
Step 1 Use a text editor such as vi to open the $HOME/XCiscoWorks file.
Step 2 Add the following line to your $HOME/XCiscoWorks file:
XCiscoWorks*geometry:500x400+0+0
Step 3 Save the $HOME/XCiscoWorks file and quit the text editor.
Step 4 Enter the following command at the UNIX prompt:
# xrdb -merge ~/XCiscoWorks
CiscoWorks features an expanded Help system with hyperlinks (jumps to other help windows) to help you learn more about your CiscoWorks applications.
By default, hyperlinks display link text in forest green. To change the color, you can modify the X resource HyperHelp*LinkColor.
The current default help settings are modeled after Microsoft Help's color scheme. To change the default setting for windows, fonts, and other options, modify lines in your X resource HyperHelp file.
To modify the X resources for your Help windows, perform the following steps:
Step 1 Change to the directory where the HyperHelp X resource file is located:
cd /usr/lib/X11/app-defaults
You may have put the HyperHelp file in a different directory; if so, change to the appropriate directory path.
Step 2 Use a text editor such as vi to alter any of the following X resources in the HyperHelp file:
Step 3 Save the HyperHelp file and exit.
Step 4 Restart the online help system to allow the new HyperHelp system changes to take effect.
To define the look of your text editor window, perform the following steps, substituting the appropriate options:
Step 1 Confirm that X Windows is running.
To start an X window session, enter x11start or xinit at the UNIX command line.
Step 2 Use a text editor such as vi to open the .Xdefaults file.
Step 3 Add a line with the following format to the .Xdefaults file:
EditorFormat:command_string %s
Where command_string is the value or name of the X resource. For example, to specify the vi editor located in /usr/local/bin, add the following line to the .Xdefaults file:
EditorFormat:/usr/local/bin/vi %s
For example, to specify the vuepad editor located in /usr/vue/bin, add the following line to the .Xdefaults file:
EditorFormat:/usr/vue/bin/vuepad %s
Step 4 Save the .Xdefaults file and quit the text editor.
To enable boot file generation, edit the .Xdefaults file to specify the on state by performing the following steps:
Step 1 Confirm that X Windows is running.
To start an X window enter x11start or xinit at the UNIX command line.
Step 2 Use a text editor such as vi to open the .Xdefaults file.
Step 3 Add the following line to the .Xdefaults file:
Bootfile:on
Step 4 Save the .Xdefaults file and quit the text editor.
After you install CiscoWorks for the first time, you may need to reinstall it. For example, some files on your workstation might become damaged or corrupted. Reinstalling means that you delete all of the existing CiscoWorks files and reinstall them from the same version of CiscoWorks. When you reinstall CiscoWorks, you can do a new or upgrade install, as appropriate.
|
|