![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Troubleshooting CiscoWorks Problems
This chapter presents troubleshooting information for problems commonly encountered when using CiscoWorks. The following sections provide basic procedures for checking your CiscoWorks installation.
The remaining sections describe specific CiscoWorks symptoms, the problems that are likely to cause each symptom, and the solutions to those problems.
Symptoms, problems, and solutions are not provided for every CiscoWorks application. For information about applications not covered in this chapter, refer to the CiscoWorks Admin and Installation Guide and the CiscoWorks User Guide.
Testing Basic Connectivity and Setup
The following procedure describes how to test the basic connectivity and setup of a CiscoWorks installation. Perform these steps first when presented with a CiscoWorks-related problem.
Testing Basic TFTP Connectivity
The following procedure describes the steps to take to test the connectivity of your TFTP server.
CiscoWorks Environment Variables
Frequently, misconfigured environment variables cause problems in the operation of CiscoWorks. The following sections describe the default values, descriptions, and locations of CiscoWorks environment variables for each platform.
The following sections provide the default values assigned to the CiscoWorks environment variables for each platform.
On SunOS and HP-UX installations, the values assigned to the CiscoWorks environment variables should be similar to the following, provided you chose the defaults during installation of the software. If you did not load your software in the default directories, your values should point to the locations you chose.
Use the printenv UNIX command to see the current environment variable settings.
For descriptions of these variables, see the section "Description of Environment Variables" later in this chapter.
On AIX installations, the values assigned to the CiscoWorks environment variables should be similar to the following, provided you chose the defaults during installation of the software. If you did not load your software in the default directories, your values should point to the locations you chose.
Use the printenv UNIX command to see the current environment variable settings.
For descriptions of these variables, see the section "Description of Environment Variables" later in this chapter.
On Solaris installations, the values assigned to the CiscoWorks environment variables should be similar to the following, provided you chose the defaults during installation of the software. If you did not load your software in the default directories, your values should point to the locations you chose.
Use the printenv UNIX command to see the current environment variable settings.
For descriptions of these variables, see the section "Description of Environment Variables" later in this chapter.
Description of Environment Variables
This section provides descriptions of the CiscoWorks environment variables.
NMSROOT---Default directory for CiscoWorks installation. If the software was installed in a different directory, substitute the appropriate directory path to ensure the correct definition of the NMSROOT environment variable.
SYBASE---Default directory for Sybase installation. If the software was installed in a different directory, substitute the appropriate directory path to ensure the correct definition of the SYBASE environment variable. The SYBASE variable refers to the NMSROOT variable and the Sybase directory following it.
PATH---Directory path for your NMS software and various CiscoWorks directories (including $NMSROOT/bin, $NMSROOT/etc, and $SYBASE/bin). The path should be specified to include SunNetManager, HP OpenView, or Netview; CiscoWorks; and Sybase.
DSQUERY---Sybase server name. The default is CW_SYBASE.
Environment Variable Locations
The location of environment variable definitions differs depending on the UNIX shell you are using. This will typically be the Korn shell (ksh), the C shell (csh), or the Bourne shell (sh). The default UNIX shell for a user ID is set up in the /etc/passwd file. Use the set command to find out which shell you are using.
C shell---At login, the system reads the .cshrc file in the user's home directory. Ciscoworks creates an install.cshrc file which is found in $NMSROOT/etc under HPUX, Solaris, and SunOS, and under $NMSROOT/install under AIX. The variables in this file can be cut and pasted into the .cshrc file in the user's home directory. An example of variable definition in the .cshrc file is:
Korn shell---At login, the system reads the .kshrc file in the user's home directory. CiscoWorks creates an install.kshrc file which is found in $NMSROOT/etc under HPUX, Solaris, and SunOS, and under $NMSROOT/install under AIX. The variables in this file can be cut and pasted into the .kshrc file in the user's home directory. An example of variable definition in the .kshrc file is:
CiscoWorks: No Devices in Application Window
Symptom: No devices appear in the windows of CiscoWorks applications (such as Configuration Management or Configuration Snap-In Manager).
Table 21-1 outlines the problems that might cause this symptom and describes solutions to those problems.
Table 21-1 : CiscoWorks: No Devices in Application Window
CiscoWorks: Sync w/Sybase Fails
Symptom: Attempts to run Sync w/Sybase in CiscoWorks fail.
Table 21-2 outlines the problems that might cause this symptom and describes solutions to those problems.
Table 21-2 : CiscoWorks: Sync w/Sybase Fails
CiscoWorks: Sybase Login Fails
Symptom: When attempting to use CiscoWorks applications that involve the use of Sybase, you receive a "Sybase login failed" error message.
Table 21-3 outlines the problems that might cause this symptom and describes solutions to those problems.
Table 21-3 : CiscoWorks: Sybase Login Fails
$SYBASE Interfaces File Format
If the $SYBASE interfaces file has been modified, Sybase logins can fail. The $SYBASE interfaces file should always be found in the $SYBASE directory. The following sections describe the format for the interfaces file for different platforms.
AIX, HP-UX, and SunOS $SYBASE Interfaces File Format
On AIX, HP-UX, and SunOS, the $SYBASE interfaces file should resemble the following:
On the AIX, HP-UX, and SunOS platforms, the entries in the $SYBASE interfaces file take the following generic format:
Solaris $SYBASE Interfaces File Format
On Solaris, the $SYBASE interfaces file should resemble the following:
On the Solaris platform, the entries in the $SYBASE interfaces file take the following generic format, where P is the 5-digit port address converted to hex and the I is the IP address converted to hex on an octet-by-octet basis.
If you are using Solaris and the IP address of the management station has changed, you must recalculate the decimal-to-hexadecimal IP address specification, as shown in the following example.
CiscoWorks: Locked Out of Security Manager
Symptom: When you try to use the Administer, CW-Security menu selection, regardless of the name and password you enter on the User Identification screen you receive a "Sybase login failed" error. When you try entering the "sa" user ID and password, the message returned is "Sorry, the username [sa] is reserved to the CiscoWorks system."
Table 21-4 outlines the problems that might cause this symptom and describes solutions to those problems.
Table 21-4 : CiscoWorks: Locked Out of Security Manager
Configuration Management: Device-to-Database or Database-to-Device Does Not Run
Symptom: The device-to-database or the database-to-device operation in the Configuration Management application does not work.
Table 21-5 outlines the problems that might cause this symptom and describes solutions to those problems.
Table 21-5 : Configuration Management: Device-to-Database or Database-to-Device Does Not Run
Configuration Snap-In Manager: Cannot Modify DoItNow
Symptom: The DoItNow operation in the Configuration Snap-In Manager application does not work.
Table 21-6 outlines the problems that might cause this symptom and describes solutions to those problems.
Table 21-6 : Configuration Snap-In Manager: Cannot Modify DoItNow
CiscoView: Timeout Error Messages
Symptom: When attempting to use the CiscoView application you receive timeout messages and cannot view a device.
Table 21-7 outlines the problems that might cause this symptom and describes solutions to those problems.
Table 21-7 : CiscoView: Timeout Error Messages
Copyright 1988-1996 © Cisco Systems Inc.
setenv NMSROOT /usr/nms
export NMSROOT=/usr/nms
Possible Problem
Solution
Sync w/Sybase has not been run
You must run Sync w/Sybase to populate the CiscoWorks application windows. With Netview/6000 and HP OpenView, choose a Sync entry under Misc. On SunNetManager, choose a Sync entry under Tools. For more information on running Sync w/Sybase, refer to the CiscoWorks User Guide.
Possible Problem
Solution
Basic connectivity or setup problem
Follow the steps outlined in the section "Testing Basic Connectivity and Setup" earlier in this chapter.
Community string, name resolution, or timeout problem
Run nmadd from the command line to determine if the problem is related to community string, name resolution, or timing out. The nmadd syntax is:
nmadd [-n
device
] [-r
commstring
] [-w
rw_commstring
] [-t
timeout
]
Use a process of elimination to isolate the specific problem.
Possible Problem
Solution
Misconfigured environment
For more information about the default values, descriptions, or locations of the CiscoWorks environment variables, see the section "CiscoWorks Environment Variables" earlier in this chapter.
Dataserver is not running
Check to see if the dataserver is running. On HP-UX, Solaris, and AIX use the command ps -ef | grep dataserver. On SunOS, use the command ps -auxww | grep dataserver. On any of these systems, executing $NMSROOT/etc/isalive will also return status.
nscpwd file is corrupted
4 (date) (year) (time) ncspwd
$NMSROOT/bin/nmsanms
Name:
sa
Password:
sybasesa
Key:
beta
$SYBASE interfaces file has been modified
To find out the proper format for the $SYBASE interfaces file on your platform, see the section "$SYBASE Interfaces File Format" later in this chapter.
## CW_BACKUP_SERVER on oak
## Services:
## query tcp (3001)
## master tcp (3001)
CW_BACKUP_SERVER 5 5
query tcp ether oak 3001
master tcp ether oak 3001
## CW_SYBASE on oak
## Services:
## query tcp (10000)
## master tcp (10000)
CW_SYBASE 0 0
query tcp ether oak 10000
master tcp ether oak 10000
CW_BACKUP_SERVER # #
query tcp interface machine port
master tcp interface machine port
CW_SYBASE # #
query tcp interface machine port
master tcp interface machine port
## CW_BACKUP_SERVER on Bamboo
## Services:
## query tcp (3000)
## master tcp (3000)
CW_BACKUP_SERVER 5 5
query tli tcp /dev/tcp \x00020bb8ab44766a0000000000000000
master tli tcp /dev/tcp \x00020bb8ab44766a0000000000000000
## CW_SYBASE on Bamboo
## Services:
## query tcp (2002)
## master tcp (2002)
CW_SYBASE 0 0
query tli tcp /dev/tcp \x000207d2ab44766a0000000000000000
master tli tcp /dev/tcp \x000207d2ab44766a0000000000000000
CW_BACKUP_SERVER 5 5
query tli tcp /dev/tcp \x00020PPPPPIIIIIIII0000000000000000
master tli tcp /dev/tcp \x00020PPPPPIIIIIIII0000000000000000
CW_SYBASE 0 0
query tli tcp /dev/tcp \x00020PPPPPIIIIIIII0000000000000000
master tli tcp /dev/tcp \x00020PPPPPIIIIIIII0000000000000000
CW_SYBASE 0 0
query tli tcp /dev/tcp \x000207d0ab44766a0000000000000000
master tli tcp /dev/tcp \x000207d0ab44766a0000000000000000
## 7d0 = 2000 port number
## ab = 171
## 44 = 68
## 76 = 118
## 6a = 106
## IP address = 171.68.118.106
Possible Problem
Solution
Security Manager on without an enabled group
If Security Manager is on without having a group enabled to use it, all users can be locked out of Security Manager.
$SYBASE/bin/isql -Usa -Psybasesa
1>
use nms
2>
go
1>
setuser "SAnms"
2>
go
1>
update applications set authority_ck = 0
2>
where app_name = "nmadmin"
3>
go
1>
quit
Possible Problem
Solution
Basic connectivity or setup problem
Perform the steps outlined in the section "Testing Basic Connectivity and Setup" earlier in this chapter.
TFTP problem
Perform the steps outlined in the section "Testing Basic TFTP Connectivity" earlier in this chapter.
Possible Problem
Solution
Basic connectivity or setup problem
Perform the steps outlined in the section "Testing Basic Connectivity and Setup" earlier in this chapter.
TFTP problem
Perform the steps outlined in the section "Testing Basic TFTP Connectivity" earlier in this chapter.
Possible Problem
Solution
Basic connectivity or setup problem
Perform the steps outlined in the section "Testing Basic Connectivity and Setup".
Polling interval too low
Try increasing the polling interval. To increase the polling interval, select Options, then Properties, and increase the value in the "Timeout (secs):" field. If the polling interval is too low, CiscoView will time out.
Community string, name resolution, or timeout problem
If CiscoView still fails, trying running nmcview from the command line to determine if the problem is related to community string, name resolution, or timing out. The nmcview command syntax is:
nmcview [-h
host
] [-c | -rd
read community
] [-C | -rw
write community
] [-t
timeout
] [-r
retries
] [-P
poll frequency
]
Use a process of elimination to isolate the specific problem.