|
|
Installing and Configuring CiscoWorks
This chapter describes how to install and configure CiscoWorks software on Sun workstations and HP systems.
Before installing CiscoWorks you must complete the preparatory 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 into your system as the superuser (root). Superusers can perform functions that normal users cannot.
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:
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:
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 upgrading from a previous version of CiscoWorks, perform the steps outlined in the "Shutting Down the Sybase Database," "Backing Up Your Existing CiscoWorks Software," and "Backing Up Your Existing CiscoWorks Software" sections.
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:
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).
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, enter the following:
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 SunOS, follow the instructions in the Sun documentation to upgrade your version of SunOS to Version 4.1.3 or 4.1.4 (Solaris 1.X). 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 SunNet Manager Version 2.2.2 or HP OpenView Version 3.3, if it is not already installed.
CiscoWorks software is distributed on a CD-ROM. For HP-UX installations, the CD-ROM contains a number of partitions that store the software; some of the partitions are divided into filesets. A partition is a portion of a disk. A fileset is group of related files. Each partition or fileset contains a specific set of files, as described in Table 4-1.
Table 4-1 : Parts of the CiscoWorks Software
Before you install CiscoWorks from a CD-ROM drive attached to your system or a remote system, perform the following steps:
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.
If you are using a CD-ROM drive that is connected to your workstation, refer to the following section, "Installing from a Local CD-ROM Drive." If you are using a CD-ROM drive that is connected to a remote workstation, refer to "Installing from a Remote CD-ROM Drive." These instructions are also provided in the CiscoWorks CD-ROM insert booklet shipped with the product.
If you are installing CiscoWorks from a local CD-ROM drive, complete the steps in this section. Use the Installation Worksheet Items and the Configuration Worksheet Items in the "Preparing to Install CiscoWorks" chapter as a reference.
To install CiscoWorks from a local CD-ROM drive, perform the following steps:
To continue with CiscoWorks installation, refer to the appropriate section in this chapter for your operating system/platform. For SunOS, refer to "Installing CiscoWorks on a Sun Workstation." For HP-UX, refer to "Installing CiscoWorks on an HP System."
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.
If you are installing CiscoWorks from a remote CD-ROM drive, complete the steps in this section. Use the Installation Worksheet Items and the Configuration Worksheet Items in the "Preparing to Install CiscoWorks" chapter as a reference.
To install CiscoWorks from a remote CD-ROM drive, perform the following steps on the remote system:
To continue with your CiscoWorks installation, refer to the appropriate section for your operating system/platform.
The installation process on a Sun workstation requires you to run the installation script, modify the kernel configuration file, and run the configuration script. If you want to modify the kernel manually instead of letting the script update it automatically, perform the steps in the "Manually Entered Sybase Modifications to the Kernel Configuration File" section later in this chapter.
To complete the installation process on your Sun workstation, perform the following steps:
Your installation and configuration is complete.
If you need to create additional space for the databases and transaction log, enter the following command:
All Sun workstations contain a kernel. The kernel is the heart of the UNIX system that is read when your system is started; it is the part of the operating system that allocates resources and controls processing.
If you are using an HP-UX system, you can skip this section. HP-UX recommends you use the system administrator manager, or SAM, to update your configuration.
If you are using a Sun workstation and selected to manually update the kernel instead of having the installation script perform the changes, perform the following procedure. In order for Sybase Version 10.0.1 software to work on your Sun system, you must modify the kernel. The kernel is built from a configuration file in either the /usr/share/$ARCH/conf directory (where $ARCH could be defined as sun4c, sun4m, or sun4n) or the /usr/sys/$ARCH /conf directory.
Kernel modifications must be completed after you run your installation and before you run your configuration scripts.
Most systems use a generic kernel stored in a configuration file called GENERIC. If the kernel is customized for your system, it may be stored in a configuration file with a different name.
If you choose to allow the installation script to build the new kernel, it uses your current system configuration and automatically saves the old kernel configuration file as vmunix.syb_inst.
To modify the kernel manually (as the superuser), perform the following steps:
For more information on modifying the kernel, refer to the Sun Workstation and Network Administration publication.
To complete the installation process on your HP system, perform the following steps:
Your installation and configuration is complete.
To ensure that CiscoWorks run successfully, you may need to perform several post-installation tasks. The following sections contain instructions for these tasks:
TFTP setup is required. Other tasks are optional.
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 SunOS:
On HP-UX:
The log files are described in Table 4-2.
Table 4-2 : CiscoWorks Log Files
CiscoWorks is based on the OSF/Motif windowing system and therefore requires Motif key mapping. During installation, you are alerted that you need Motif key mapping. The installation script then offers to update the XKeysymDB (key mapping) file for you in case you are using a different platform, such as OPEN LOOK. If necessary, you can also manually update the XKeysymDB file by appending $NMSROOT/etc/XKeysymDB to your XKeysymDB file.
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 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:
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:
To define the look of your text editor window, perform the following steps, substituting the appropriate options:
To enable boot file generation, edit the .Xdefaults file to specify the on state by performing the following steps:
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 is appropriate.
Copyright 1988-1996 © Cisco Systems Inc.
login: root
Password:<rootpassword>
#
% su
Password:<rootpassword>
#
Upgrading from a Previous Version of CiscoWorks
Shutting Down the Sybase Database
# setenv SYBASE $NMSROOT/sybase
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.
1> shutdown
2> go
The database shuts down, and the root prompt reappears.
Backing Up Your Existing CiscoWorks Software
Verifying Installation of Your Operating System and Network Management Platform Software
CiscoWorks Software Structure for HP-UX
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
Installing from a Local or Remote CD-ROM
Installing from a Local CD-ROM Drive
# mkdir /cdrom
# mount -rt hsfs /dev/device_filename /cdrom
On HP-UX:
# /etc/mount -o ro -t cdfs /dev/device_filename /cdrom
In the Sun command, the -r option mounts the CD-ROM in Read Only mode. In the HP-UX command, the -o ro option mounts the CD-ROM in Read Only mode. The -t indicates the type of file system where hsfs and cdfs specify a file system with an ISO 9660 standard or High Sierra standard with Rock Ridge extensions. If you do not use these options, media error messages may display on the console. Replace the device_filename option (/dev/device_filename) with /dev/sr0
for
Sun workstations or /dev/dsk/c201d2s0
for HP systems. On HP systems, if /dev/dsk/c201d2s0 is not the correct device number for the CD-ROM, run the ioscan program to determine the disk number.
Installing from a Remote CD-ROM Drive
# mkdir /cdrom
/cdrom -ro
# nfsd 8 &
#
/usr/etc/rpc.mountd -n
Mount the CD-ROM by entering the following command:
# /etc/mount -rt hsfs /dev/device_filename /cdrom
# /etc/mount -o ro -t cdfs /dev/device_filename /cdrom
/dev/device_filename
) to
/dev/sr0
for
Sun workstations or
/dev/dsk/c201d2s0
for HP systems. On HP systems, if
/dev/dsk/c201d2s0
is not the correct device number for the CD-ROM, run the ioscan program to determine the disk number.
# exportfs -va
# mkdir /cdrom
# mount remote-hostname:/cdrom /cdrom
# mkdir /usr/nms
Installing CiscoWorks on a Sun Workstation
# cd /cdrom
# ./extract_unbundled -c /cdrom_install_directory
If you do not specify the
-c
option, the /cdrom directory is used as the default.
# reboot
login: root
password:
rootpassword
#
Begin the CiscoWorks configuration process by entering the following command:
# /usr/tmp/unbundled/cwconfigure
While the cwconfigure script runs, answer the questions it displays according to the information you entered on the CiscoWorks Configuration Worksheet.
# cd /
# umount /cdrom
# eject /dev/device_filename
Remove the CD-ROM caddy from the drive and put the CD-ROM away.
# /usr/nms/etc/cw_enlarge
While the cw_enlarge script runs, answer the questions it displays. This script sets database thresholds for disk space based on your database size.
Manually Entered Sybase Modifications to the Kernel Configuration File
# cp /vmunix /vmunix.bak
Change directories by entering the following command:
# cd /usr/share/$ARCH/conf
OR
cd /usr/sys/$ARCH/conf
Copy the base kernel configuration file (usually called GENERIC) to filename by entering the following command, where filename is the new name you assign to the kernel configuration file:
# cp GENERIC
filename
Add the following lines anywhere in the /usr/share/$ARCH/conf/filename file or /usr/sys/$ARCH/conf/filename file:
options "SHMSIZE=0x20000"
options "SEMMNS=640"
options "SHMMNI=256"
Start the configuration process by entering the following command:
# config directoryname
This command executes the configuration process and builds a directory called /usr/share/$ARCH/conf//directoryname or /usr/sys/$ARCH/conf/directoryname.
# cd ../directoryname
# make
Copy the vmunix or vmunix_small file, created in the previous step, by entering the following command:
# cp ./vmunix /vmunix
OR
# cp ./vmunix_small /vmunix
Restart your system.
Installing CiscoWorks on an HP System
# /etc/update -s /cdrom/cw.tar -d /usr/nms CWIC
# /usr/nms/install/bin/cwinstall -s /cdrom/cw.tar -d /usr/nms
-s
Source
-d
Destination
-help
Print the usage
-f
filesets
CiscoWorks software to install
# /usr/nms/install/bin/cwconfigure
# $NMSROOT/etc/cw_enlarge
While the cw_enlarge script runs, answer the questions it displays. This script sets database thresholds for disk space based on your database size.
# cd /
#
umount /cdrom
Performing Post-Installation Tasks
Removing Log Files
# rm /usr/tmp/unbundled/log/filename.log
# rm /usr/nms/install/bin/log/filename.log
rm *.log
to remove the CiscoWorks log files as other applications can put log files in these directories and you may need to keep those application's log files.
Log File Name
Contents of the Log File
cwconfigure.defs
Your responses to the questions asked 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
Updating the SunOS XKeysymDB File
Modifying Your .Xdefaults File or X Resources
Customizing CiscoWorks X Resources
-font 9x15bold).
Resetting the Default Window Size of CiscoWorks Applications
XCiscoWorks*geometry:500x400+0+0
xrdb -merge ~/XCiscoWorks
Modifying Default Color Settings in Your Help Files
%
xrdb -merge /usr/lib/X11/app-defaults/HyperHelp
% 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.
Hyperhelp*fontList: 9x15bold
HyperHelp*ScrolledWindow*background: grey
HyperHelp*NonScrollableWindow.background: gray80
HyperHelp*LinkColor: pink
Save the HyperHelp file and exit.
Editing the .Xdefaults File Entry to Specify the Text Editor
EditorFormat:command_string
%s
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
EditorFormat:/usr/vue/bin/vuepad %s
Save the .Xdefaults file and quit the text editor.
Enabling Boot File Generation
Bootfile:on
Save the .Xdefaults file and quit the text editor.
Reinstalling CiscoWorks
![]()
![]()
![]()
![]()
![]()
![]()
![]()