System information

CiscoWorks Environment Variables
Book Title
23-464
SYBASE—/opt/CSCOcw/sybase
PATH—$NMSROOT/bin, /$NMSROOT/etc, $SYBASE/bin
DSQUERY—CW_SYBASE
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 “Descriptions of Environment Variables” later in
this chapter.
Descriptions of Environment Variables
The following are 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.
The following section provides information on files that are reviewed by the C shell and the Korn
shell during login:
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 in $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
setenv NMSROOT /usr/nms
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 in $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
export NMSROOT=/usr/nms