Table Of Contents
Configuring the Server
Setting up Security
Managing Security in Single Server Mode
Setting up Browser-Server Security
About User Accounts
Understanding Security Levels
Setting up Local Users
Creating Self Signed Certificates
Working With Third Party Security Certificates
Uploading Third Party Security Certificates to CiscoWorks Server
Using the SSL Utility Script to Upload Third Party Security Certificates
Managing Security in Multi-Server Mode
Setting up Peer Server Account
Setting up System Identity Account
Setting up Peer Server Certificate
Enabling Single Sign-On
Navigating Through the SSO Domain
Changing the Single Sign-On Mode
Setting up the AAA Mode
About Common Services Authentication
Cisco Secure ACS Support for Common Services Client Applications
Setting the Login Module to Non-ACS
Setting the Login Module to ACS
Resetting Login Module
Understanding Fallback Options for ACS Mode
Managing Cisco.com Connection
Setting up Cisco.com User Account
Setting Up the Proxy Server
Generating Reports
Log File Status Report
Permissions Report
Users Logged In Report
Process Status Report
Viewing Audit Log Report
Administering Common Services
Using Daemon Manager
Restarting Daemon Manager on Solaris
Restarting Daemon Manager on Windows
Managing Processes
CiscoWorks Server Back-end Processes
Viewing Process Details
Starting a Process
Stopping a Process
Backing Up Data
Backing up Using CLI
Licensing CiscoWorks Applications
Obtaining a License for CiscoWorks Applications
Licensing the Application
Viewing License Information
Updating Licenses
Collecting Server Information
Collecting Self Test Information
Messaging Online Users
Managing Jobs
Managing Resources
Maintaining Log Files
Maintaining Log Files on UNIX
Maintaining Log Files on Windows
Using Logrot
Configuring Logrot
Running Logrot
Modifying System Preferences
Effects of Third Party Backup Utility and Virus Scanner
Configuring TFTP
Configuring CWHP
Registering Applications With CWHP
Registering a New Application
Importing From Other Servers
Viewing Registered Application Information
Unregistering an Application
Registering Links With CWHP
Unregistering a Link
Setting Up CiscoWorks Homepage
Configuring the Server
Common Services includes administrative tools to configure the server, manage security, and data. You can set up security mechanisms, manage processes, jobs, resources, and generate reports that provide troubleshooting information about the status of the server. You can also configure the CiscoWorks application homepage.
This chapter has the following sections which give details on configuring the server, and managing security and data:
•
Setting up Security
•
Generating Reports
•
Administering Common Services
•
Configuring CWHP
Setting up Security
Common Services provides security mechanisms that help to prevent unauthenticated access to the CiscoWorks Server, CiscoWorks applications, and data. Common Services provides features for managing security while operating in single-server and multi-server modes.
You can specify the user authentication mode using the AAA Mode Setup. You can create user accounts on Cisco.com using the Cisco.com Connection Management UI.
This section contains the following information:
•
Managing Security in Single Server Mode
•
Managing Security in Multi-Server Mode
•
Setting up the AAA Mode
•
Managing Cisco.com Connection
Managing Security in Single Server Mode
You can set up browser-server security, add and modify users, and create self signed certificate using the features that come under Single-Server Management link in the Security Settings UI.
This section has the following subsections:
•
Setting up Browser-Server Security
•
About User Accounts
•
Understanding Security Levels
•
Setting up Local Users
•
Creating Self Signed Certificates
•
Working With Third Party Security Certificates
•
Uploading Third Party Security Certificates to CiscoWorks Server
•
Using the SSL Utility Script to Upload Third Party Security Certificates
Setting up Browser-Server Security
Common Services provides secure access between the client browser and management server. It does this using SSL (Secure Socket Layer).
SSL encrypts the transmission channel between the client, and server. Common Services provides secure access between the client browser, and management server.
SSL is an application-level protocol that enables secure transactions of data through privacy, authentication, and data integrity. It relies upon certificates, public keys, and private keys.
You can enable SSL if you want to open the CiscoWorks application in secure mode. If you want to open the CiscoWorks application in non-secure mode (http), you can disable SSL. The login pages always open in SSL mode, irrespective of the Browser-Server security mode.
CiscoWorks Server uses certificates for authenticating secure access between the client browser and the management server.
You can enable the Browser Server Security by either:
•
Enabling Browser-Server Security From the CiscoWorks Server
or
•
Enabling Browser-Server Security From the Command Line Interface (CLI)
Enabling Browser-Server Security From the CiscoWorks Server
To enable Browser-Server Security:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Browser-Server Security Mode Setup.
The Browser-Server Security Mode Setup dialog box appears.
Step 2
Check the Enable check box.
Step 3
Click Apply.
Step 4
Log out from your CiscoWorks session, and close all browser sessions.
Step 5
Restart the Daemon Manager from the CiscoWorks Server CLI:
On Windows:
a.
Enter net stop crmdmgtd
b.
Enter net start crmdmgtd
On Solaris:
a.
Enter /etc/init.d/dmgtd stop
b.
Enter /etc/init.d/dmgtd start
Step 6
Restart the browser, and the CiscoWorks session.
When you restart the CiscoWorks session after enabling SSL, you must enter the URL with the following changes:
•
The URL should begin with https instead of http to indicate secure connection. CiscoWorks will automatically redirect you to HTTPS mode if SSL is enabled.
•
Change the port number suffix from 1741 to 443.
If you do not make the above changes, CiscoWorks Server will automatically redirect you to HTTPS mode with port number 443. The port numbers mentioned above are applicable for CiscoWorks Server running on Windows.
On Solaris, if the default port (1741) is used by another application, you can select a different port during CiscoWorks Server installation. For details, see Installation and Setup Guide for CiscoWorks Common Services on Solaris.
Enabling Browser-Server Security From the Command Line Interface (CLI)
To enable Browser-Server Security from CLI:
Step 1
Go to the command prompt.
Step 2
Navigate to the directory NMSROOT\MDC\Apache.
Step 3
Enter NMSROOT\bin\perl ConfigSSL.pl -enable
Step 4
Press Enter.
About User Accounts
Several CiscoWorks network management and application management operations are potentially disruptive to the network or to the applications themselves, and must be protected.
To prevent such operations from being used accidentally or maliciously, CiscoWorks uses a multi-level security system that only allows access to certain features to users who can authenticate themselves at the appropriate level.
Common Services provides two predefined login IDs:
•
guest—Specify a password during installation. User role is Help Desk.
•
admin—Specify the password during installation. The user role is a combination of System Administrator, Network Administrator, Network Operator, Approver, and Help Desk.
The login named admin is the equivalent of a superuser (in UNIX) or an administrator (in Windows). This login provides access to all CiscoWorks tasks.
However, as an administrator, you can create additional unique login IDs for users at your company.
Note
The CiscoWorks Server administrator can set the passwords for admin and guest users during installation. Contact the CiscoWorks Server administrator if you do not know the password for admin.
Understanding Security Levels
System administrators determine user security levels when users are granted access to CiscoWorks. When users are granted logins to the CiscoWorks application, they are assigned one or more roles.
A role is a collection of privileges that dictate the type of system access you have. A privilege is a task or operation defined within the application. The set of privileges assigned to you, defines your role and dictates how much and what type of system access you have.
The user role or combination of roles, dictates which tasks are presented to the users. Table 4-1 shows the security levels.
Table 4-1 Security Levels
Level
|
Description
|
0
|
Help Desk
|
1
|
Approver
|
2
|
Network Operator
|
4
|
Network Administrator
|
8
|
System Administrator
|
16
|
Export Data
|
For information on tasks that can be performed with each role, see Permissions Report.
See also About Common Services Authentication.
Other roles are displayed, depending on your applications.
Setting up Local Users
Local User Setup feature helps you in:
•
Modifying Your Profile
•
Adding a User
•
Editing User Profiles
•
Deleting a User
For information on tasks that can be performed with each role, see Permissions Report.
Modifying Your Profile
To edit your profile:
Step 1
Go the CiscoWorks Homepage and select Common Services > Server > Security > Local User Setup.
The Local User Setup page appears.
Step 2
Click Modify My Profile to modify the logged in user credentials.
Step 3
Enter the password in the Password field.
Step 4
Re-enter the password in the Verify field.
Step 5
Enter the e-mail ID in the E-mail field.
Step 6
Click OK.
Adding a User
You can add further users into CiscoWorks as required. To add a user:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Local User Setup.
The Local User Setup page appears.
Step 2
Click Add.
The User Information dialog box appears.
Step 3
Enter the username in the Username field.
By default, the minimum character limit for CiscoWorks local username is 5 characters. To add a local username with less than five characters, change the entry for "validateUser" to "false" in NMSROOT/lib/classpath/ss.properties file.
Step 4
Enter the password in the Password field.
Step 5
Re-enter the password in the Verify field.
Step 6
Enter the e-mail ID in the E-mail field.
Step 7
In the Roles pane, select the check box corresponding to the role to specify the roles to be assigned to the user.
The following roles are available:
•
Help Desk (available by default)
•
Approver
•
Network Operator
•
Network Administrator
•
System Administrator
•
Export Data
See "About Common Services Authentication" section for more details.
Step 8
Click OK.
Editing User Profiles
You can edit the user profiles to modify the roles assigned to the users.
To edit user profiles:
Step 1
Go to the CiscoWorks Homepage, select Common Services > Server > Security > Local User Setup.
The Local User Setup page appears.
Step 2
Click Edit.
The User Information dialog box appears.
Step 3
Enter the username in the Username field.
Step 4
Enter the password in the Password field.
Step 5
Re-enter the password in the Verify field.
Step 6
Enter the E-mail ID in the E-mail field.
Step 7
In the Roles pane, select or deselect the check box corresponding to the role to change the role to be assigned to the user.
Step 8
Click OK
Deleting a User
To delete a user:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Local User Setup.
The Local User Setup page appears.
Step 2
Select the check box corresponding to the user.
Step 3
Click Delete.
A confirmation dialog box appears.
Step 4
Click OK to confirm.
Creating Self Signed Certificates
CiscoWorks allows you to create security certificates that enable SSL communication between your client browser and management server.
Self signed certificates are valid for five years from the date of creation. When the certificate expires, the browser prompts you to install the certificate again from the server where you have installed CiscoWorks.
Note
If you re-generate the certificate, when you are in multi-server mode, any existing peer relation might break. The peers need to re-import the certificate in this scenario.
To create a certificate:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Certificate Setup.
The Certificate page appears.
Step 2
Enter the values required for the fields described in the following table:
Field
|
Usage Notes
|
Country Name
|
Two character country code.
|
State or Province
|
Two character state or province code or the complete name of the state or province.
|
Locality
|
Two character city or town code or the complete name of the city or town.
|
Organization Name
|
Complete name of your organization or an abbreviation.
|
Organization Unit Name
|
Complete name of your department or an abbreviation.
|
Host Name
|
DNS name of the computer or the IP address of the computer.
Enter the Host Name with a proper domain name. This is displayed on your certificate (whether self-signed or third party issued). Local host or 127.0.0.1 should not be given.
|
Email Address
|
E-mail address to which the mail has to be sent.
|
Step 3
Click Apply to create the certificate.
The process generates the following files:
•
server.key—Server's private key.
•
server.crt—Server's self- signed certificate.
•
server.pk8—Server's private key in PKCS#8 format.
•
server.csr—Certificate Signing Request (CSR) file.
You can use CSR file to request a security certificate, if you want to use a third party security certificate.
If the certificate is not a Self signed certificate, you cannot modify it.
Working With Third Party Security Certificates
CiscoWorks provides an option to use security certificates issued by third party certificate authorities (CAs). You may want to use this option in cases where your organizational policy prevents you from using CiscoWorks self-signed certificates or requires you to use security certificates obtained from a particular CA.
You can use these certificates to enable SSL when you need secure access between CiscoWorks Server and your client browser.
Uploading Third Party Security Certificates to CiscoWorks Server
You can upload Third Party Security Certificates using the SSL Utility Script.
This utility is available at:
•
On Windows: NMSROOT\MDC\Apache
•
On Solaris: NMSROOT/MDC/Apache/bin
This utility has the following options:
Number
|
Option
|
What it Does...
|
1
|
Display CiscoWorks Server certificate information
|
• Displays the Certificate details of the CiscoWorks Server.
For third party issued certificates, this option displays the details of the server certificate, the intermediate certificates, if any, and the Root CA certificate.
• Verifies if the certificate is valid.
|
2
|
Display the input certificate information
|
This option accepts a certificate as an input and:
• Verifies if the certificate is in Base64 Encoded X.509 certificate format.
• Displays subject and issuer details of the certificate.
• Verifies if the certificate is valid on the server.
|
3
|
Display Root CA certificates trusted by CiscoWorks Server
|
Generates a list of all Root CA Certificates.
|
4
|
Verify the input certificate or certificate chain
|
Verifies whether the server certificate issued by third party CAs, can be uploaded.
When you choose this option, the utility:
• Verifies if the certificate is in Base64 Encoded X.509Certificate format.
• Verifies if the certificate is valid on the Server
• Verifies if the server private key and input server certificate match.
• Verifies if the server certificate can be traced to the required Root CA certificate using which it was signed.
• Constructs the certificate chain, if the intermediate chains are also given, and verifies if the chain ends with the proper Root CA certificate.
After the verification is successfully completed, you are prompted to upload the certificates to CiscoWorks Server.
The utility displays an error:
• If the input certificates are not in required format
• If the certificate date is not valid or if the certificate has already expired.
• If the server certificate could not be verified or traced to a root CA certificate.
• If any of the intermediate Certificates were not given as input.
• If the server's private key is missing or if the server certificate that is being uploaded could not be verified with the server's private key.
You must contact the CA who issued the certificates to correct these problems before you upload the certificates to CiscoWorks.
|
5
|
Upload single server certificate to CiscoWorks Server
|
You must verify the certificates using option 4 before you select this option.
Select this option, only if there are no intermediate certificates and there is only the server certificate signed by a prominent Root CA certificate.
If the Root CA is not one trusted by CiscoWorks, do not select this option.
In such cases, you must obtain a Root CA certificate used for signing the certificate from the CA and upload both the certificates using option 6.
|
5
|
|
When you select this option, and provide the location of the certificate, the utility:
• Verifies if the certificate is in Base64 Encoded X.509 certificate format.
• Displays subject and issuer details of the certificate.
• Verifies if the certificate is valid on the server.
• Verifies if the server private key and input server certificate match.
• Verifies if the server certificate can be traced to the required Root CA certificate using which it was signed.
After the verification is successfully completed, the utility uploads the certificate to CiscoWorks Server.
The utility displays an error:
• If the input certificates are not in required format
• If the certificate date is not valid or if the certificate has already expired.
• If the server certificate could not be verified or traced to a root CA certificate.
• If the server's private key is missing or if the server certificate that is being uploaded could not be verified with the server's private key.
You must contact the CA who issued the certificates to correct these problems before you upload the certificates in CiscoWorks again.
|
6
|
Upload a certificate chain to CiscoWorks Server
|
You must verify the certificates using option 4 before you select this option.
Select this option, if you are uploading a certificate chain. If you are uploading the root CA certificate also, you must include it as one of the certificates in the chain.
When you select this option and provide the location of the certificates, the utility:
• Verifies if the certificate is in Base64 Encoded X.509Certificate format.
• Displays subject and issuer details of the certificate.Verifies if the certificate is valid on the Server
• Verifies if server private key and the server certificate match.
• Verifies if the server certificate can be traced to the root CA certificate using which it was signed.
• Constructs the certificate chain, if intermediate chains are given and verifies if the chain ends with the proper root CA certificate.
|
6
|
|
After the verification is successfully completed, the server certificate is uploaded to CiscoWorks Server.
All the intermediate certificates and the Root CA certificate are uploaded and copied to the CiscoWorks TrustStore.
The utility displays an error:
• If the input certificates are not in required format.
• If the certificate date is not valid or if the certificate has already expired.
• If the server certificate could not be verified or traced to a root CA certificate.
• If any of the intermediate certificates were not given as input.
• If the server's private key is missing or if the server certificate that is being uploaded could not be verified with the server's private key.
You must contact the CA who issued the certificates to correct these problems before you upload the certificates in CiscoWorks again.
|
7
|
Modify Common Services Certificate
|
This option allows you to modify the Host Name entry in the Common Services Certificate.
You can enter an alternate Hostname if you wish to change the existing Host Name entry.
|
Using the SSL Utility Script to Upload Third Party Security Certificates
To upload the certificates:
Step 1
Stop the daemon manager from the CiscoWorks CLI:
On Windows:
•
Enter net stop crmdmgtd
On Solaris:
•
Enter /etc/init.d/dmgtd stop
Step 2
Navigate to the directory where the SSL Utility script is located.
On Windows:
a.
Go to NMSROOT\MDC\Apache
b.
Enter NMSROOT\bin\perl SSLUtil.pl
On Solaris:
a.
Go to NMSROOT/MDC/Apache/bin
b.
Enter NMSROOT/bin/perl SSLUtil.pl
Step 3
Select option 4, Verify the input Certificate/Certificate Chain.
Step 4
Enter the location of the certificates (server certificate and intermediate certificate).
The script verifies if the server certificate is valid. After the verification is complete, the utility displays the options.
Note
If the script reports errors during validation and verification, the SSL Utility displays instructions to correct these errors. Follow the instructions to correct those errors.
Step 5
Select option 5, if you have only one certificate to upload, that is if you have a server certificate signed by a Root CA certificate.
Select option 6, if you have a certificate chain to upload, that is if you have a server certificate and intermediate certificates.
Note
CiscoWorks does not allow you to proceed with the upload if you have not stopped the CiscoWorks daemon manager.
Step 6
Enter the required details—location of the certificate, if there are intermediate certificates, and location of intermediate certificates, if any.
SSL Utility uploads the certificates, if all the details are correct and the certificates meet CiscoWorks requirements for security certificates.
Step 7
Restart the daemon manager for the new security certificate take effect.
Note
The utility displays a warning message if there are hostname mismatches detected in the server certificate being uploaded, but you can continue to upload the certificate.
See Understanding CiscoWorks Security, for related information.
Managing Security in Multi-Server Mode
Communication among peer servers that are part of a multi server domain has to be secure. In multi-server mode the server is configured as DCR Master/Slave or SSO Master/Slave. In a multi-server scenario, secure communication between peer CiscoWorks Servers is enabled using certificates and shared secrets.
You must copy certificates between the CiscoWorks Servers. You should also generate a shared secret on one server, and configure it on the other servers that need to communicate with the server. The shared secret is tied to a particular CiscoWorks user (for authorization).
This section has the following information which helps you to understand more about the features that enables secure communication between peer servers part of a multi-server domain:
•
Setting up Peer Server Account
•
Setting up System Identity Account
•
Setting up Peer Server Certificate
•
Enabling Single Sign-On
•
Navigating Through the SSO Domain
•
Changing the Single Sign-On Mode
Setting up Peer Server Account
Peer Server Account Setup helps you create users who can programmatically login to CiscoWorks Servers and perform certain tasks. These users should be set up to enable communication among multiple CiscoWorks Servers. Users created using Peer Server Account Setup can authenticate processes running on remote CiscoWorks Servers.
In ACS mode, the user created with Peer Server Account Setup needs to be configured in ACS, with all the privileges that user has in CiscoWorks.
See "Master-Slave Configuration Prerequisites" section on page 5-42 to know more about the usage of this feature.
You can add a Peer Server user, edit user information and role, and delete a user.
To add a Peer Server user:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Peer Server Account Setup.
Step 2
Click Add.
The Peer Server Account Setup page appears.
Step 3
Enter the username in the Username field.
Step 4
Enter the password in the Password field.
Step 5
Re-enter the password in the Verify field.
Step 6
Click OK.
To edit User information:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Peer Server Account Setup.
Step 2
Click Edit.
The Peer Server Account Setup page appears.
Step 3
Enter the password in the Password field.
Step 4
Re-enter the password in the Verify field.
Step 5
Click OK.
To delete a User:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Peer Server Account Setup.
The Peer Server Account Setup page appears.
Step 2
Select the check box corresponding to the user you want to delete.
Step 3
Click Delete.
The confirmation dialog box appears.
Step 4
Click OK to confirm.
Setting up System Identity Account
Communication between multiple CiscoWorks Servers is enabled by a trust model addressed by certificates and shared secrets. System Identity setup helps you to create a "trust" user on servers that are part of a multi-server setup. This user enables communication among servers that are part of a domain.
There can only be one System Identity User for each machine.
The System Identity User you configure must be a Peer Server User.
In Non-ACS mode, the System Identity User you create must be a Local User, with all privileges. In ACS mode, the System Identity user should be configured in ACS, with all the privileges the user has in CiscoWorks.
CiscoWorks installation program allows you to have the admin user configured as the default System Identity User.
For the admin user to work as a System Identity User, the same password should be configured on all machines that are part of the domain, while Installing CiscoWorks on the machines part of that domain. If this is done, the user admin serves the purpose of System Identity user. See Installation Guide for Common Services 3.0.3, for details.
However, you can create a System Identity User from the Common Services UI as well (Common Services > Server > Security > System Identity Setup).
If you create a System Identity User, the default System Identity User, admin, is replaced by the newly created user.
While you create the System Identity User, Common Services checks whether:
•
The user is a Local User with all privileges. If the user is not present, or if the user does not have all privileges, an error message appears.
•
The System Identity User is also a Peer Server User. If not, the user will automatically be made a Peer Server User too.
For peer to peer communication to work in a multi-server domain, you have to configure the same System Identity User on all the machines that are part of the domain.
For example, if S1, S2, S3, S4 are part of a domain, and you configure a new System Identity User, say Joe, on S1, you have to configure the same user, Joe, with the same password you specified on S1, on all the other servers, S2, S3, and S4, to enable communication between them.
See Master-Slave Configuration Prerequisites and Enabling Single Sign-On to know more on the usage of this features.
To add a System Identity user:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > System Identity Setup
Step 2
Enter the username in the Username field.
Step 3
Enter the password in the Password field.
Step 4
Re-enter the password in the Verify field.
Step 5
Click Apply.
Setting up Peer Server Certificate
You can add the certificate of another CiscoWorks server into it's trusted store. This will allow one CiscoWorks server to communicate to another. If a CiscoWorks server needs to communicate to another CiscoWorks server, it must possess the Certificate of the other server. You can add Certificates of any number of peer CiscoWorks servers to the trusted store.
Ensure that there are no mismatches in the date and time settings between the servers. In case you find any date/time mismatch, you need to correct it before proceeding.
If you change the date/time of the peer server, you must regenerate the self signed certificate of the peer server.
To add peer CiscoWorks Server certificates:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security> Peer Server Certificate Setup.
The Peer Server Certificate page appears with a list of certificates imported from other servers.
Step 2
Click Add.
Step 3
Enter the IP address/hostname of peer CiscoWorks Server in the corresponding fields.
Step 4
Enter the value of the SSL(HTTPS) Port of the peer CiscoWorks Server.
Step 5
Click OK.
The default Non-SSL(HTTPS) Port of the peer CiscoWorks Server is 443.
To delete peer certificates:
Step 1
Select the check box corresponding to the certificate you want to delete.
Step 2
Click Delete.
You can also view the details of the client certificates. For this, select the check box corresponding to the certificate and click View.
Enabling Single Sign-On
With Single Sign-On (SSO), you can use your browser session to transparently navigate to multiple CiscoWorks Servers without authenticating to each of them. Communication among multiple CiscoWorks Servers is enabled by a trust model addressed by Certificates and shared secrets.
The following tasks need to be done initially:
•
One of the CiscoWorks Servers should be set up as the authentication server.
•
Trust should be built between the CiscoWorks Servers, using self signed certificates. A trusted certificate is created by adding it in the trust key store of the server. CiscoWorks TrustStore or KeyStore is maintained by the certificate management framework in Common Services.
•
Each CiscoWorks Server should setup a shared secret with the authentication server. The System Identity user password acts as a secret key for SSO.
The SSO authentication server is called the Master, and the SSO regular server is called the Slave.
You must perform the following tasks if the server is either configured as Master or Slave.
•
Configure the System Identity User and password in both Master and Slave. The System Identity User name and password you specify in Master and Slave should be the same.
•
Configure Master's Self Signed Certificate in Slave.
Single Sign On is used only for authentication and not for authorization. In Single Sign On, authentication always takes place from the SSO Master server. Authorization happens at the server that is being accessed.
The privileges for the logged in user in any server within the SSO domain will depend upon the user's roles configured in that server. If the user is present only in the SSO authentication server and not in the regular server, then that user gets authenticated according the credentials in the authentication server, but has only have HelpDesk privileges in the regular server.
We recommend that you:
•
Add the user across all servers within the SSO domain.
•
Assign appropriate roles to the user, in each of the CiscoWorks servers.
•
Ensure that all the servers within the SSO domain are in ACS mode, if ACS is used as the AAA mode.
To set up System Identity User:
Step 1
Select Common Services > Server > Security > System Identity Setup.
Step 2
Enter the username and password.
Step 3
Click Apply.
SSO uses the System Identity User password as the secret key to provide confidentiality and authenticity between Master and Slave.
The System Identity User password you specify in Master and Slave should be the same.
We recommend that you have the same user name and password across Master and Slave.
To configure Master's Self Signed Certificate in the Slave, select Common Services > Server > Security > Peer Server Certificate Setup > Add.
The Common Name (CN) present in the certificate should match with the Master server name. Otherwise it would not be considered as a valid certificate.
Navigating Through the SSO Domain
The Authentication Server and all Regular Servers that are configured on this Authentication Server forms an SSO domain. If you login to any of the servers that are part of the same SSO domain, you can launch any other server that is part of the domain.
You can navigate through the SSO domain in two ways:
•
Registering Server Links
•
Launching a New Browser Instance
Registering Server Links
You can register the links of servers part of the SSO domain, in any of the servers, using the Link registration feature. See "Registering Links With CWHP" section.
The registered links will appear either under Third Party or Custom tools, depending on what you specify during registration. If you click on the registered link, it launches the page corresponding to the registered link.
You must specify the URL, with the context while registering the server link.
For example, let ABC and XYZ be part of the same SSO domain. You can register the link for ABC on XYZ. While registering server ABC in XYZ, you have to specify the URL as:
http://ABC:1741/cwhp/cwhp.applications.do
If ABC is running in HTTPS mode, you have to specify the URL as:
https://ABC:443/cwhp/cwhp.applications.do
In the above example, clicking on the registered link will launch the CiscoWorks Homepage of server ABC.
Launching a New Browser Instance
After logging in to any of the servers part of the SSO domain, you can open a new browser instance from that server, and provide the URL of any other server part of the SSO domain, to which you need to navigate to.
Note
We recommend that you do not use IP address of the servers that are part of SSO or localhost, while specifying the URL.
Suppose ABC and XYZ are part of an SSO domain.
Step 1
Login to ABC.
Step 2
Launch a new browser instance (File > New > Window, in Internet Explorer) from the same browser window.
Step 3
Enter the URL, with the context (http://XYZ:1741/cwhp/cwhp.applications.do) of XYZ in the new browser instance.
This launches the CiscoWorks Homepage of XYZ, directly.
Changing the Single Sign-On Mode
The Common Services server can be configured for Single Sign-On (SSO). It can also be configured to be in Standalone mode (Normal mode, without SSO).
When the server is configured for SSO, it can either be in:
•
Master mode—The SSO Authentication Server does the authentication and sends the result to the Regular Server.
Change the SSO mode to Master, if log in is required for all SSO regular servers. Login requests for all the SSO regular servers will be served from the Master.
•
Slave mode—SSO Regular server for which authentication is done at the Master.
Only one server is configured to be in the Master mode. All other servers are configured as Slaves. If the server is configured as an SSO Regular server (Slave), you should provide the following details:
•
Master server name
•
Login Port of the Master (443)
If you change the name of the server configured as the Master, in the /etc/hosts file, you must restart Daemon Manager for the name resolution to reflect in the Slave.
To change the SSO mode to Standalone:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Single Sign-On.
The Single Sign-On Configuration page shows the current Single Sign-On mode.
Step 2
Click Change Mode.
Step 3
Select Standalone (Normal) radio button.
Step 4
Click Apply.
To change the SSO mode to Master:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Single Sign-On.
The Single Sign-On Configuration page shows the current Single Sign On mode.
Step 2
Click Change Mode.
Step 3
Select the Master (SSO Authentication Server) radio button.
Step 4
Click Apply.
To change the SSO mode to Slave:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Single Sign-On.
The Single Sign-On Configuration page shows the current Single Sign-On mode.
Step 2
Click Change Mode.
Step 3
Select the Slave (SSO Regular Server) radio button.
Step 4
Enter the Master server name and port number.
If you select the Slave mode, ensure that you specify the Master server name and port. The default port is 443. The server configured as master (or Authentication Server) should be DNS resolvable.
Step 5
Click Apply.
It checks whether:
•
The System Identity user password of the Slave matches that of the Master.
•
The Self Signed Certificate of the Master is added as the peer certificate in the Slave. The CN present in the certificate should match with the Master server name.
•
The Master is up and running on the specified port.
In case these checks fail, you are prompted to perform these steps, before proceeding.
Setting up the AAA Mode
The CiscoWorks Server provides mechanisms used to authenticate users for CiscoWorks applications.
CiscoWorks login modules allow administrators to add new users using a source of authentication other than the native CiscoWorks Server mechanism (that is, the CiscoWorks Local login module). You can use Cisco Secure ACS services for this purpose (see Setting the Login Module to ACS).
However, many network managers already have a means of authenticating users. To use your current authentication database for CiscoWorks authentication, you can select a login module (Kerberos, TACACS+, Radius, and others).
After you select and configure a login module, all authentication transactions are performed by that source.
To assign a user to a different role, such as the System Admin role, you must configure the user locally. Such users must have the same user ID locally, as they have in the alternative authentication source. Users log in with the user ID and password associated with the current login module.
CiscoWorks Common Services supports two AAA modes:
•
Non-ACS
•
ACS
To use this mode, you must have a Cisco Secure ACS (Access Control Server), installed on your network. Common Services 3.0.5 supports the following versions of Cisco Secure ACS:
–
Cisco Secure ACS 3.2 for Windows Server
–
Cisco Secure ACS 3.2.3 for Windows Server
–
Cisco Secure ACS 3.3.2 for Windows Server
–
Cisco Secure ACS 3.3.3 for Windows Server
–
Cisco Secure ACS 4.0.1 for Windows Server
–
Cisco Secure ACS 4.1 for Windows Server
–
Cisco Secure ACS 4.1.1 for Windows Server
–
Cisco Secure ACS 4.1.4 for Windows Server
–
Cisco Secure ACS 4.2 for Windows Server
–
Cisco Secure Appliance 3.3.3
–
Cisco Secure Appliance 4.0.1
–
Cisco Secure Appliance 4.1
–
Cisco Secure Appliance 4.1.1
–
Cisco Secure Appliance 4.1.4
–
Cisco Secure Appliance 4.2
We recommend that you install the Admin HTTPS PSIRT patch, if you are using ACS 3.2.3.
To install the patch:
–
Go to http://www.cisco.com/pcgi-bin/tablebuild.pl/cs-acs-win.
You must enter Cisco.com username and password after you launch this URL.
–
Click the Download CiscoSecure ACS Software (Windows) link.
See Setting the Login Module to Non-ACS and Setting the Login Module to ACS for details on usage of the login modules.
This section has the following information:
•
About Common Services Authentication
•
Cisco Secure ACS Support for Common Services Client Applications
•
Setting the Login Module to Non-ACS
•
Setting the Login Module to ACS
•
Resetting Login Module
•
Understanding Fallback Options for ACS Mode
About Common Services Authentication
By default, CiscoWorks Common Services uses CiscoWorks Server authentication (CiscoWorks Local) to authenticate users, and authorize them to access CiscoWorks Common Services applications.
After authentication, your authorization is based on the privileges that have been assigned to you.
A privilege is a task or an operation defined within the application. The set of privileges assigned to you, defines your role. It dictates how much, and what type of system access you have.
The CiscoWorks Server authorization scheme has five default roles. They are listed here from the least privileged to most privileged:
•
Help Desk — Can access network status information only. Can access persisted data on the system and cannot perform any action on a device or schedule a job which will reach the network.
•
Approver — Can approve all tasks.
•
Network Operator — Can perform all Help Desk tasks. Can perform tasks related to network data collection. Cannot perform any task that requires write access on the network.
•
Network Administrator — Can perform all Network Operators tasks. Can perform tasks that result in a network configuration change.
•
System Administrator — Can perform all CiscoWorks system administration tasks.
The CiscoWorks Server determines user roles. Therefore, all users must be in the local database of user IDs and passwords. Users who are authenticated by an alternative service and who are not in the local database are assigned to the same role as the guest user (by default, the Help Desk role).
If you configure Common Services to use Non-ACS for authentication, authorization services are provided by CiscoWorks Server.
In Non-ACS mode, you cannot change the roles, or the privileges assigned to these roles. However, a user can be assigned a combination of these roles. See Setting up Local Users.
In ACS mode, you can create custom roles so that you can customize Common Services client applications to best suit your business workflow and needs.
That is, you can create a user, and assign the user with a set of privileges, that would suit your needs. See Assigning Privileges in ACS and Creating and Modifying Roles in ACS sections for details.
Cisco Secure ACS Support for Common Services Client Applications
CiscoSecure ACS provides authentication, authorization, and accounting services to network devices that function as AAA clients. CiscoSecure ACS uses the TACACS+ and RADIUS protocols to provide AAA services that ensure a secure environment.
Cisco Secure ACS supports Common Services client applications by providing command authorization for network users who use the management application to configure managed network devices. Command authorization for client application users is supported using unique command authorization set types for each client application configured to use Cisco Secure ACS for authorization.
Cisco Secure ACS uses TACACS+ to communicate with client applications. For a client application to communicate with Cisco Secure ACS, you must configure it in Cisco Secure ACS as an AAA client that uses TACACS+.
Also, you must provide the client application with a valid administrator name and password. When a client application initially communicates with Cisco Secure ACS, these requirements ensure the validity of the communication.
Additionally, the administrator (used by the client application) must have the Create New Device Command Set Type privilege enabled. When a client application initially communicates with Cisco Secure ACS, it makes the Cisco Secure ACS create a new device command set type.
This new device command set type appears in the Shared Profile Components section of the HTML interface. It also specifies a custom service to be authorized by TACACS+. The custom service appears on the TACACS+ page in the Interface Configuration section of the HTML interface.
After the client application has specified the custom TACACS+ service and device command set type to Cisco Secure ACS, you can configure command authorization sets for each role supported by the client application. You can then apply those sets to user groups that contain network administrators or to individual users who are network administrators.
For more information about configuring Cisco Secure ACS administrators, users, and command authorization sets, and the various configuration options see the User Guide for Cisco Secure ACS for Windows Server Version 3.3 on Cisco.com, or the CiscoSecure ACS Online help.
Setting the Login Module to Non-ACS
The Login Module defines how authorization and authentication are performed and how to change the login modules.
This section contains the following subsections:
•
Changing Login Module to CiscoWorks Local
•
Changing Login Module to IBM SecureWay Directory
•
Changing Login Module to KerberosLogin
•
Changing Login Module to Local Unix System
•
Changing Login Module to Local NT System
•
Changing Login Module to MS Active Directory
•
Changing Login Module to Netscape Directory
•
Changing Login Module to Radius
•
Changing Login Module to TACACS+
To set the login module to Non-ACS mode:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > AAA Mode Setup.
Step 2
Select the Non-ACS radio button.
The Login Module window displays the current login module, and the available login modules. The available login modules are:
•
CiscoWorks Local
•
IBM SecureWay Directory
•
KerberosLogin
•
Local UNIX System
•
Local NT System
•
MS Active Directory
•
Netscape Directory
•
Radius
•
TACACS+
The login username is case sensitive when you use the following Non-ACS login modules:
•
KerberosLogin
•
Netscape Directory
•
Local UNIX System
•
Radius (only on Solaris)
•
TACACS+ (only on Solaris)
Changing Login Module to CiscoWorks Local
To change the login module to CiscoWorks Local:
Step 1
Select the CiscoWorks Local radio button.
Step 2
Click Change.
The Login Module Options popup window appears.
Step 3
Set the Debug option to False.
Set it to True for debugging purposes, when requested by your customer service representative.
Changing Login Module to IBM SecureWay Directory
The IBM SecureWay Directory login module implements Lightweight Directory Access Protocol (LDAP). Before a user can log in, a user's account is set up in the LDAP server. The user's account has two fields, Distinguished name and password.
A Distinguished name is made up of three parts, Prefix, User login, and Usersroot. Userroot is queried for the username during login and the Distinguished name is automatically created.
If the user is not found, then the Distinguished name is created by appending Prefix + login name + Usersroot.
For example, a Distinguished name could be represented as: uid=John ou=embu o=cisco.com, where the Prefix is uid=, the login name is John, and the Usersroot ou=embu, o=cisco.com).
To change the login module to IBM SecureWay Directory:
Step 1
Select the IBM SecureWay Directory radio button.
Step 2
Click Change.
The Login Module Options popup window appears with the following details:
Field
|
Description
|
Selected Login Module
|
IBM SecureWay Directory
|
Description
|
CiscoWorks IBM LDAP module.
|
Server
|
Default set to ldap://ldap.company.com.
|
Userroot
|
Default set to ou=active, ou=employees, ou=people, o=company
|
Prefix
|
Default set to cn=
|
Debug
|
Set to False, by default.
Set to True for debugging purposes, when requested by your customer service representative.
|
Login fallback options
|
Set the option for fallback to the CiscoWorks Local module if the alternative service fails.
|
Step 3
Click OK.
Changing Login Module to KerberosLogin
Kerberos provides strong authentication for client/server applications by using secret-key cryptography.
To change the Login Module to KerberosLogin:
Step 1
Select the KerberosLogin radio button.
Step 2
Click Change.
The Login Module Options popup window appears with the following details:
Field
|
Description
|
Selected Login Module
|
KerberosLogin Kerberos login module.
|
Description
|
Kerberos login module.
|
Debug
|
Set to False, by default.
Set to True for debugging purposes, when requested by your customer service representative.
|
Realm
|
The Kerberos realm name. Although the realm can be any ASCII string, the convention is to make it the same as your domain name, in upper-case letters.
For example, SERVER.COM.
|
KDC
|
The Kerberos Key Distribution Center. For example, my_kdc.server.com.
|
Login fallback options
|
Set the option for fallback to the CiscoWorks Local module if the alternative service fails.
|
Step 3
Click OK.
Changing Login Module to Local Unix System
This option is available only on Unix systems.
To change the login module to Local Unix System:
Step 1
Select the Local Unix System radio button.
Step 2
Click Change.
The Login Module Options popup window appears with the following details:
Field
|
Description
|
Selected Login Module
|
Local UNIX System.
|
Description
|
CiscoWorks native Solaris module.
|
Debug
|
Set to False, by default.
Set to True for debugging purposes, when requested by your customer service representative.
|
Login fallback options
|
Set the option for fallback to the CiscoWorks Local module if the alternative service fails.
|
Step 3
Click OK.
Changing Login Module to Local NT System
This option is available only on Windows
To change the login module to Local NT System:
Step 1
Select Local NT System radio button.
Step 2
Click Change.
The Login Module Options popup window appears with the following details:
Field
|
Description
|
Selected Login Module
|
Local NT System.
|
Description
|
CiscoWorks native NT login module.
|
Debug
|
Set to False, by default.
Set to True for debugging purposes, when requested by your customer service representative.
|
Domain
|
Set to localhost.
|
Login fallback options
|
Set the option for fallback to the CiscoWorks Local module if the alternative service fails.
|
Step 3
Click OK.
Changing Login Module to MS Active Directory
The MS Active Directory login module implements Lightweight Directory Access Protocol (LDAP). Before a user can log in, a user's account is set up in the LDAP server. The user's account has two fields, Distinguished name and password.
A Distinguished name is made up of three parts, Prefix, User login, and Usersroot. The user login is appended when the user logs in so the Distinguished name is Prefix+login name+Usersroot.
For example, a Distinguished name could be represented as: cn=John dc=embu dc=cisco, where the Prefix is cn=, the login name is John, and the Usersroot dc=embu, dc=cisco).
To change login module to MS Active Directory:
Step 1
Select MS Active Directory radio button.
Step 2
Click Change.
The Login Module Options popup window appears with the following details:
Field
|
Description
|
Selected Login Module
|
MS Active Directory.
|
Description
|
CiscoWorks MS Active Directory module.
|
Server
|
Default set to ldap://ldap.company.com.
|
Usersroot
|
Default set to cn=users, dc=servername, dc=company, dc=com.
If you are using Windows 2003 Active Directory, you have to provide the complete Usersroot information.
This is because Windows 2003 Active Directory implementation has disabled anonymous search requests.
|
Prefix
|
Default set to cn=
|
Debug
|
Set to False, by default.
Set to True for debugging purposes, when requested by your customer service representative.
|
Login fallback options
|
Set the option for fallback to the CiscoWorks Local module if the alternative service fails.
|
Step 3
Click OK.
Changing Login Module to Netscape Directory
The Netscape Directory login module implements Lightweight Directory Access Protocol (LDAP). Before a user can log in, a user's account is set up in the LDAP server. The user's account has two fields, Distinguished name and password.
A Distinguished name is made up of three parts, Prefix, User login, and Usersroot. Userroot is queried for the username during login and the Distinguished name is automatically created. If the user is not found, then the Distinguished name is created by appending Prefix + login name + Usersroot.
For example, a Distinguished name could be represented as: uid=John ou=embu o=cisco.com, where the Prefix is uid=, the login name is John, and the Usersroot ou=embu, o=cisco.com).
To change login module to Netscape Directory:
Step 1
Select Netscape Directory radio button.
Step 2
Click Change.
The Login Module Options popup window appears with the following details:
Field
|
Description
|
Selected Login Module
|
Netscape Directory.
|
Description
|
CiscoWorks Netscape LDAP module.
|
Server
|
Default set to ldap://ldap.company.com.
|
Usersroot
|
Default set to ou=active, ou=employees, ou=people, o=company.com.
|
Prefix
|
Default set to uid=
|
Debug
|
Set to False, by default.
Set to True for debugging purposes, when requested by your customer service representative.
|
Login fallback options
|
Set the option for fallback to the CiscoWorks Local module if the alternative service fails.
|
Step 3
Click OK.
Changing Login Module to Radius
To change login module to Radius:
Step 1
Select Radius radio button.
Step 2
Click Change.
The Login Module Options popup window appears with the following details:
Field
|
Description
|
Selected Login Module
|
Radius.
|
Description
|
CiscoWorks Radius module.
|
Server
|
Set to module type servername, radius.company.com.
|
Port
|
Set to 1645. Attempt to override it only if your authentication server was configured with a non-default port.
|
Key
|
Enter the secret key.
|
Debug
|
Set to False, by default.
Set to True for debugging purposes, when requested by your customer service representative.
|
Login fallback options
|
Set the option for fallback to the CiscoWorks Local module if the alternative service fails.
|
Step 3
Click OK.
Changing Login Module to TACACS+
To change login module to TACACS+:
Step 1
Select TACACS+ radio button.
Step 2
Click Change.
The Login Module Options popup window appears with the following details:
Field
|
Description
|
Selected Login Module
|
TACACS+.
|
Description
|
CiscoWorks TACACS+ login module.
|
Server
|
Set to module type tacacs.company.com
|
Port
|
Set to 49. The listed port number is the default for this protocol.
Attempt to override it only if your authentication server was configured with a non-default port.
|
Secondary Server
|
Set to module type tacacs.company.com. This is the secondary fallback server.
|
Secondary Port
|
Set to 49. The listed port number is the default for this protocol.
Attempt to override it only if your authentication server was configured with a non-default port.
|
Tertiary Server
|
Set to module type tacacs.company.com. This is the tertiary fallback server.
|
Tertiary Port
|
Set to 49. The listed port number is the default for this protocol.
Attempt to override it only if your authentication server was configured with a non-default port.
|
Key
|
Enter the secret key.
|
Debug
|
Set to False, by default.
Set to True for debugging purposes, when requested by your customer service representative.
|
Login fallback options
|
Set the option for fallback to the CiscoWorks Local module if the alternative service fails.
|

Note
The values True or False should not be entered in the Server, Secondary Server and Tertiary Server fields, the corresponding Port fields or the Key field.
Step 3
Click OK.
After you change the login module, you do not have to restart CiscoWorks. The user who logs in after the change, automatically uses the new module. Changes to the login module are logged in the following directory:
NMSROOT/MDC/Tomcat/logs/stdout.log
Understanding Fallback Options for Non-ACS mode
Fallback options allow you to access the software if the login module fails, or you accidentally lock yourself or others. There are three login module fallback options. These are available on all platforms. The Table 4-2 gives details:
Table 4-2 Fallback Options for Non-ACS mode
Option
|
Description
|
Allow all CiscoWorks Local users to fall back to the CiscoWorks Local login.
|
All users can access CiscoWorks using the Local login if the current login module fails.
|
Allow only the following user(s) to fall back to the CiscoWorks Local login if preceding login fails: username.
|
Specified users can access CiscoWorks using the Local login if the current login module fails. Use commas between user names.
|
Allow no fallbacks to the CiscoWorks Local login.
|
No access is allowed if the current login module fails.
|
Setting the Login Module to ACS
The Login Module determines the type of authentication and authorization Common Services uses. By default, the login module is set to local authentication and authorization.
You can change this default value to use Cisco Secure ACS for user authentication and authorization.
When you change login module to ACS ensure that:
•
The CiscoWorks Server is added as an AAA client in the ACS server. For the first time, it can be done at the Network Configuration UI in ACS server. You can add the host (with IP Address), and configure the secret key there.
The same secret key should be entered in the AAA Mode Setup dialog box.
•
The username you enter while logging in to CiscoWorks is a valid ACS user name. In ACS mode, authentication takes place from the ACS server.
CiscoWorks uses HTTP port 2002 to communicate with ACS.
To set login module to ACS:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > AAA Mode Setup.
The AAA Mode Setup page appears with the AAA Mode Setup dialog box.
Step 2
Select the ACS radio button.
Step 3
From the Server details panel, enter:
•
Primary IP Address/Hostname
•
Secondary IP Address/Hostname
•
Tertiary IP Address/Hostname
and the corresponding ACS TACACS+ port numbers.
The default port is 49. Secondary and Tertiary IP address/hostname details are optional.
Step 4
From the login panel, enter:
•
ACS Admin Name
•
ACS Admin Password
•
ACS Shared Secret Key
Also, re-enter the ACS admin password, and ACS shared secret key in the Verify fields.
The ACS administrator configured in Common Services must have atleast the following privileges in ACS:
•
Create New Device Command Set Type
•
Network Configuration
•
Tacacs+ Administration
Step 5
Select Register all installed applications with ACS if you are registering the applications for the first time, to register all the installed application with the ACS server.
In case an application is already registered with ACS, the current registration will overwrite the previous registration.
When you select the Register all installed applications with ACS checkbox, you will be prompted to confirm whether you want to proceed with the registration.
When you confirm this, all installed applications are registered with ACS, but any custom role created in ACS will be lost.
To register an application with ACS without overwriting the custom roles created for other applications, use AcsRegCli.pl command line script. See Using AcsRegCli Script for details.
Step 6
Click Apply.
Step 7
Restart the Daemon Manager:
On Windows:
a.
Enter net stop crmdmgtd
b.
Enter net start crmdmgtd
On Solaris:
a.
Enter /etc/init.d/dmgtd stop
b.
Enter /etc/init.d/dmgtd start
The application registration with ACS fails due to any of the following reasons:
•
Protocol mismatch: If ACS is running in HTTPS mode, enable the Connect to ACS in HTTPS mode checkbox.
•
Invalid ACS admin credentials: Make sure that the ACS credentials provided in the CiscoWorks AAA Mode setup screen are correct.
•
ACS Administrative user not configured with all privileges. The ACS administrator configured in Common Services must have at least the following privileges in ACS:
–
Create New Device Command Set Type
–
Network Configuration
–
Tacacs+ Administration
Check the Connect to ACS in HTTPS Mode check box in the Login Module dialog box, if ACS is in HTTPS mode.
Note
You must enable ACS communication on HTTPS if ACS is in HTTPS mode.
Primary, Secondary, and Tertiary servers should use the same protocol. All of them should either operate in HTTP mode, or HTTPS mode.
The Primary, Secondary, and Tertiary servers must have the same configuration. For Primary, Secondary, and Tertiary servers, the ACS Admin Name, the ACS Admin Password, and the ACS Shared Secret Key should be the same.
AAA clients, Network Device Groups (NDGs), users, groups, registered applications, and custom roles must be the same across Primary, Secondary, and Tertiary servers.
TACACS+ is used for AAA requests. HTTP/HTTPS mode is used for application registration, and device or device group import/export tasks.
Note
If you install any application on the CiscoWorks Server when AAA mode is set to ACS, you might be prompted with a message to re-register the application with ACS.
Using AcsRegCli Script
You can use the AcsRegCli.pl command line script to register an application without affecting the registration status of other applications. The script is located at NMSROOT/bin.
You can run AcsRegCli.pl only when the CiscoWorks server is in ACS mode.
You can login to the CiscoWorks server using the ACS log in module.
AcsRegCli.pl does the following:
•
Lists the applications registered with ACS from this CiscoWorks server.
•
Lists the applications installed in this CiscoWorks server that are not registered with ACS.
•
Registers a given application with ACS.
•
Registers all the installed applications with ACS.
Running the Script
To get a list of available options, run the script AcsRegCli.pl without specifying any option.
The following options are listed:
•
listRegApp —List the applications registered with ACS in the current CiscoWorks server.
•
listNotRegApp—List the installed applications that are not registered with ACS in the current CiscoWorks server.
•
register AppName —Register an application with ACS. AppName is the name by which an application will be registered with ACS.
To know this value, run AcsRegCli.pl with the option -listRegApp or -listNotRegApp.
•
register all— Register all the installed applications with ACS.
For Example:
/opt/CSCOpx/bin/perl /opt/CSCOpx/bin/AcsRegCli.pl -register rme
This registers RME with ACS.
•
If the application is already registered with ACS, you are prompted to confirm whether you want to proceed with the registration. If you confirm this, the application is registered with ACS, and any custom roles created in ACS for this application are lost.
•
If you use the -register all option, you are prompted to confirm whether you want to proceed with registering all the installed applications with ACS. If you confirm, all the installed applications will be registered with ACS, and any custom roles created in ACS are lost.
You will be prompted for confirmation even when you have not registered the application from the current server. If you have already registered the application with ACS from another server and if you confirm and proceed after the warning message, any custom roles you have created in ACS for this application will be lost.
Assigning Privileges in ACS
You have to ensure that the user has been assigned the proper privileges in ACS mode.
To assign the privileges to the user if ACS is configured to use group authentication:
Step 1
Go to Cisco Secure ACS and select Group Setup.
Step 2
Select the group to which the user belongs, from the Group drop-down list.
Step 3
Click Edit Settings.
A page appears with the group settings.
Step 4
Scroll down to CiscoWorks. The options are :
•
None: Authorization will fail for any task.
•
Assign a Ciscoworks for any network device.
Select the desired role from the drop-down list. The user can execute the tasks that are assigned to the chosen role, on every device.
•
Assign a Ciscoworks on a per Network Device Group Basis.
Select the device group from the Device Group drop-down list. Choose the role you want to associate with the group. The user can execute the tasks that are assigned to the chosen roles on the chosen device groups.
Step 5
Select any of the options, based on the required security level.
To assign the privileges if ACS is configured to use user authentication:
Step 1
Go to Cisco Secure ACS and select User Setup.
Step 2
Enter the user name and click Add/Edit.
Or,
Click List all Users and click the required user link from the User List.
A page appears with the user details and settings.
Step 3
Scroll down to CiscoWorks. The options are:
•
None: Authorization will fail for any task.
•
As Group: The privileges applicable to the group, the user is part of.
•
Assign a Ciscoworks for any network device.
Select the desired role from the drop-down list. The user can perform the tasks that are assigned to the chosen role, on every device.
•
Assign a Ciscoworks on a per Network Device Group Basis.
Select the device group from the Device Group drop-down list. Choose the role you want to associate with the group. The user can perform the tasks that are assigned to the chosen roles on the chosen device groups.
Step 4
Select any of the options, based on the required security level.
Creating and Modifying Roles in ACS
In ACS, you can create new roles or modify existing roles.
To create a new role:
Step 1
Go to Cisco Secure ACS.
Step 2
Select Shared Profile Components > CiscoWorks Common Services.
The Shared Profile Components page appears.
Step 3
Click Add.
Step 4
Enter the name and description for the new role.
Step 5
Select the Common Services tasks that you need to associate with the role.
Tasks are displayed as a checklist tree on the left pane of the ACS UI.
•
If you select an expandable check box node, all check boxes within that node are selected.
•
If you select the first check box in the checklist tree, all check boxes in the checklist tree are selected.
Step 6
Click Submit.
To edit an existing role:
Step 1
Go to Cisco Secure ACS.
Step 2
Select Shared Profile Components > CiscoWorks Common Services.
The Shared Profile Components page appears.
Step 3
Select the role you need.
The Shared Profile Components page displays the Edit dialog box.
Step 4
Select the Common Services tasks that you need to associate with the role.
If you want to remove any task associated with the role, deselect the check box corresponding to the task.
Step 5
Click Submit.
To delete a role:
Step 1
Go to Cisco Secure ACS.
Step 2
Select Shared Profile Components > CiscoWorks Common Services.
The Shared Profile Components page appears.
Step 3
Select the role you need to delete.
The Shared Profile Components page displays the Edit dialog box.
Step 4
Click Delete.
We recommend not to assign roles to DEFAULT device group. When DEFAULT (unassigned device group) is selected, you can perform only Help Desk role, irrespective of the roles chosen.
To assign the proper role, the network access server (NAS) should be added in the device groups other than DEFAULT.
You should log in as a user that has been created on the ACS server. If you log in as a user configured in Common Services, say admin, you will get authenticated.
However, if the user is not configured in the ACS server, authorization will fail. In case of users other than Admin, even authentication will not happen.
If you add or change device information in the Network Device Group, the change will not be immediately propagated to Common Services. For the changes to get updated in Common Services (when in ACS mode) you have to re-login to Common Services.
You can assign only one role to a user in ACS, to operate on the same NDG.
If a user requires privileges other than those associated with the current role, to operate on an NDG, a custom role should be created. All necessary privileges to enable the user operate on the NDG should be given to this role.
For example, if a user needs to have Approver and Network Operator privileges to operate on NDG1, you can create a new role with Network Operator and Approver privileges, and assign the role to the user so that he can operate on NDG1.
We recommend that you have maximum 50 NDGs and 50000 devices in ACS. If the number of NDGs or devices exceed these limits, performance may be affected.
Resetting Login Module
If there is an authorization failure with ACS server, most of the Common Services features will be disabled. To recover, you have to reset the login module:
Step 1
Stop the Daemon Manager using:
•
net stop crmdmgtd (For Windows)
or
•
/etc/init.d/dmgtd stop (For Solaris)
Step 2
Run the following script:
•
NMSROOT\bin\perl ResetLoginModule.pl (For Windows)
or
•
NMSROOT/bin/perl ResetLoginModule.pl (For Solaris)
Step 3
Start the Daemon Manager using:
•
net start crmdmgtd (For Windows)
or
•
/etc/init.d/dmgtd start (For Solaris)
This resets the login module to CiscoWorks local mode.
Multiple instances of same application (for example, Common Services) using the same ACS server will share the settings. Any change affects all instances of the application. If the application is configured with ACS and then the application is reinstalled, the application inherits the old settings.
Understanding Fallback Options for ACS Mode
Fallback option in ACS mode is different from Non-ACS mode. Here, fallback is provided only for authentication. If authentication with ACS fails, authentication is tried with CiscoWorks local mode.
If it succeeds, you are allowed to change the login module to Non-ACS mode, provided you have permission to do that operation in Non-ACS mode. You will not be allowed to login if the authentication fails in CiscoWorks local mode.
If you log in using fallback mode, a dialog box appears with instructions to change the login mode to CiscoWorks local.
To change the login mode follow the procedure described in Resetting Login Module.
To add the fallback users in ACS, the admin should:
Step 1
Select Non-ACS mode.
Step 2
Select Tacacs+ and click Change.
Step 3
Specify the fallback users in Login fallback options field.
Step 4
Click OK.
Step 5
Select ACS mode.
Step 6
Enter the required values. See Setting the Login Module to ACS, for details.
Step 7
Click Apply.
Managing Cisco.com Connection
Certain Software Center features require Cisco.com access. This means that CiscoWorks must be configured with a Cisco.com account which is to be used when downloading new and updated packages.
Setting up Cisco.com User Account
To set up Cisco.com login account:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Cisco.com User Account Setup.
The Cisco.com Login dialog box appears.
Step 2
Enter the Username, and Password.
Step 3
Re-enter Password in the Verify Password field.
Step 4
Click Apply.
Setting Up the Proxy Server
You can update the proxy server configuration using the Proxy Server set up option.
To update your proxy server configuration:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Security > Proxy Server Setup.
The Proxy Information dialog box appears.
Step 2
Enter the Proxy Server host name or IP address, and the port number.
Step 3
Click Apply.
Generating Reports
Common Services includes a Report Generator that provides detailed reports on log file status, roles and privileges, users currently logged in, and processes that are currently running.
The following reports are available:
•
Log File Status Report
•
Permissions Report
•
Users Logged In Report
•
Viewing Audit Log Report
The following sections describe how to launch these reports, and explain each report.
Log File Status Report
The Log File Status Report provides information on log file size and file system utilization.
To generate the log file status report:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Reports.
The Reports page appears.
Step 2
Select Log File Status from the Available Reports pane.
Step 3
Click Generate Report.
The Log File Status Report appears with the following details:
Item
|
Description
|
Log File
|
Name of the log file.
|
Location
|
Location of the log file.
|
File Size
|
Current size of the log file.
File size displayed in Red means the size has exceeded the limit.
|
Size Limit
|
Maximum size a log file can have.
|
File System Utilization
|
File system utilization in percentage.
Value if displayed in Red means the size has exceeded the limit.
|
Permissions Report
The Permissions Report provides information on roles and privileges associated with the roles. It specifies the tasks that a user in a particular role can perform.
A privilege is a task or an operation defined within the application. The set of privileges assigned to you, defines your role and dictates how much, and what type of system access you have.
To generate the Permissions Report:
Step 1
Go the CiscoWorks Homepage and select Common Services > Server > Reports.
The Reports page appears.
Step 2
Select Permissions Report from the Available Reports pane.
Step 3
Click Generate Report.
The Permissions Report appears with the following details:
Item
|
Description
|
Last Run Time
|
Last time the report was run.
|
Duration
|
Duration for which the report was run.
|
Device Scanned
|
Devices that were scanned.
|
Average Scan Time
|
Average time taken to scan each device.
|
Device with Changes
|
Devices that has changed state.
|
Description
|
Description of the task.
|
Task Path
|
Navigational path.
|
Role
|
Role required to perform the task.
|
Users Logged In Report
The Users Logged In Report provides information on users currently logged into Common Services.
To generate the Report:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Reports.
The Reports page appears.
Step 2
Select Who is Logged On from the Available Reports pane.
Step 3
Click Generate Report.
The Users Logged In report appears with the following information:
Item
|
Description
|
Status
|
Whether the user is online or offline.
|
User Name
|
User name.
|
Roles
|
Shows the roles of the user.
|
IP address
|
IP address.
|
Last Active
|
Date and time when the user was previously active.
|
Logged in
|
Time when the user previously logged in.
|
Process Status Report
The Process Status Report shows the status of the processes running on the CiscoWorks Server.
To generate the Process Status Report:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Reports.
The Reports page appears.
Step 2
Select Process Status from the Available Reports pane.
Step 3
Click Generate Report.
The Process Status Report appears with the following information:
Item
|
Description
|
Process Name
|
Name of the process.
|
State
|
Current state of the process.
|
Pid
|
Process ID.
|
Start Time
|
Time at which the process started.
|
Stop time
|
Time at which the process stopped.
|
Viewing Audit Log Report
Audit log provides information on:
•
Audit log User login and logout to CiscoWorks
•
CiscoWorks Local user addition
•
CiscoWorks Local user modification
•
CiscoWorks Local user deletion
In non-ACS mode, audit log report provides information on user logins to CiscoWorks Homepage and other applications launched from the Homepage.
In ACS mode, audit log reports log messages maintained by ACS.
Audit Logs are stored as comma-separated value lists (CSVs).
•
If you are using local authentication, the files are stored on the local server.
•
If you are using ACS authentication, the files are stored on the ACS server and you can view them from within both ACS and CiscoWorks Common Services.
To view Audit Log Report:
Step 1
Select Common Services > Server > Reports > Audit Log in the CiscoWorks Common Services navigation tree.
Step 2
Click Generate Report.
The Audit Log Data Viewer appears with a list of audit logs.
The Audit Logs are listed in chronological order, with the most recent logs appearing at the top of the list. The logs are named and listed by the date on which they were created. For example Audit-Log-2004-10-27.csv.
Step 3
Click an Audit Log file link to view the audit log details.
Audit log report in Non-ACS mode:
Item
|
Description
|
Date
|
Date on which the activity is carried out.
|
Time
|
Time at which the activity is carried out.
|
User
|
User who performed the activity. If you reset the CiscoWorks user password using resetpasswd utility, User is shown as CLI Utility
|
Acct-Flags
|
Status of the activity. For example start
|
Service
|
Application that the user accessed.
|
Cmd
|
Activity that was performed.
For example: Logout
|
Reason
|
Description of the activity.
For example: User admin logged out of cwhp
|
Audit log report in ACS mode:
Item
|
Description
|
Date
|
Date on which the activity is carried out.
|
Time
|
Time at which the activity is carried out.
|
User_Name
|
User who performed the activity.
|
Group_Name
|
Group to which the user belongs.
|
Cmd
|
Activity that was performed. For example: Logout.
|
Priv_Lv1
|
Privilege level of the user in ACS.
|
Service
|
Application that the user accessed. For Common Services, the value displayed is cwhp.
|
NAS_Portname
|
NAS port name.
|
Task_Id
|
Unique identifier for the task.
|
NAS_IP_Address
|
IP address of the CiscoWorks Server.
|
Reason
|
Description of the activity. For example: User admin logged out of cwhp
|
In ACS, you can add additional fields to be logged in the Report.
This can be done at: System Configuration > Logging > CSV TACACS+ Administration.
If a field added is of no relevance to CiscoWorks Common Services, its value will not be displayed in the Report.
If you want to view Audit Logs for Local UserManagement operations in ACS mode, you must select the Log Update/Watchdog Packets from this AAA Client checkbox for the CiscoWorks server added as a AAA client in the ACS server.
If you do not select the reason field in CSV TACACS+ Administration in ACS, you will not be able to view the status of the operations.
To enable this option:
Step 1
Go to CiscoSecure ACS.
Step 2
Click Network Configuration from the left navigation bar.
Step 3
Select the CiscoWorks server added as a AAA client in the AAA Clients table.
The AAA Client Setup For CiscoWorks Server appears.
Step 4
Select the Log Update/Watchdog Packets from this AAA Client checkbox.
Step 5
Click Submit+Restart button.
The Audits logs for Local UserManagement operation are logged in the Reports and Activity: TACACS+ Administration reports.
To view the Audit Logs from ACS:
Step 1
Click Reports and Activity in the ACS Navigation bar.
A list of report types appears.
Step 2
Click TACACS+ Administration.
A list of Audit Logs appears.
In Cisco Secure ACS for Windows server, the Audit Logs are listed in chronological order, with the most recent logs appearing at the top of the list.
The logs are named and listed by the date on which they were created. Whereas, Cisco Secure ACS for Appliance maintains a single log until its size exceeds 10MB.
Administering Common Services
Common Services includes several administrative features to ensure that the server is performing properly. You can manage process, set up backup parameters, update licensing information, collect server information, and manage jobs and resources.
This section has the following information:
•
Using Daemon Manager
•
Managing Processes
•
Backing Up Data
•
Licensing CiscoWorks Applications
•
Collecting Server Information
•
Collecting Self Test Information
•
Messaging Online Users
•
Managing Jobs
•
Managing Resources
•
Maintaining Log Files
•
Modifying System Preferences
•
Effects of Third Party Backup Utility and Virus Scanner
•
Configuring TFTP
Using Daemon Manager
The Daemon Manager provides the following services:
•
Maintains the startup dependencies among processes.
•
Starts and stops processes based on their dependency relationships.
•
Restarts processes if an abnormal termination is detected.
•
Monitors the status of processes.
The Daemon Manager is useful to applications that have long-running processes that must be monitored and restarted, if necessary. It is also used to start processes in a dependency sequence, and to start transient jobs.
Restarting Daemon Manager on Solaris
To restart Daemon Manager on Solaris,
Step 1
Log in as root.
Step 2
Enter /etc/init.d/dmgtd stop to stop the Daemon Manager.
Step 3
Enter /etc/init.d/dmgtd start to start the Daemon Manager.
Do not start the Daemon Manager immediately after you stop it. The ports used by Daemon Manager will be in use for some more time even after the Daemon Manager is stopped. Wait for at least a minute before you start the Daemon Manager.
If the System resources are less than the required resources to install the application, Daemon Manager restart displays warning messages.
You cannot start the Daemon Manager if there are Non-SSL compliant applications installed on the server when SSL is enabled in Common Services.
Restarting Daemon Manager on Windows
To restart Daemon Manager on Windows:
Step 1
Go to the command prompt.
Step 2
Enter net stop CRMdmgtd to stop the Daemon Manager.
Step 3
Enter net start CRMdmgtd to start the Daemon Manager.
Do not start the Daemon Manager immediately after you stop it. The ports used by Daemon Manager will be in use for some more time even after the Daemon Manager is stopped. Wait for at least one minute before you start the Daemon Manager.
If the System resources are less than the required resources to install the application, Daemon Manager restart displays warning messages that are logged into syslog.log.
Managing Processes
CiscoWorks applications use back-end processes to manage application-specific activities or jobs. The process management tools enable you to manage these back-end processes to optimize or troubleshoot the CiscoWorks Server.
Note
Your role and privileges detemine whether you can use this option.
CiscoWorks Server Back-end Processes
The back-end processes in the CiscoWorks Server are required to manage application specific activities and jobs.
Table 4-3 lists the back-end processes in CiscoWorks Server, their description and dependent process.
Table 4-3 CiscoWorks back-end processes
Process Name
|
Description
|
Dependent Process
|
Apache
|
Apache web server used on both UNIX and Windows systems. This hosts the base CiscoWorks homepage and all major applications
|
Tomcat
|
CmfDbEngine
|
Sybase database instance used by the base CiscoWorks framework.
|
None
|
CmfDbMonitor
|
Monitors the CmfDbEngine process and periodically checks for connectivity and SQL errors.
|
CmfDbEngine
|
CMFOGSServer
|
Device grouping service in CS that provides grouping capability based on device attributes stored in DCRServer.
|
CmfDbMonitor, EssMonitor, DCRServer
|
CSRegistryServer
|
Registry Server for other CS processes such as DCRServer and CMFOGSServer and provides the backbone for inter-process communication for DCRServer and CMFOGSServer.
Sometimes, the Tomcat process may start this process. In such cases, the process status is displayed as follows:
Administrator has shut down this server
You can ignore this error message.
|
—
|
DCRServer
|
Device List and Credential Repository Server that provides the repository for shared device list and credentials to be used across applications.
|
TomcatMonitor, CmfDbMonitor, EssMonitor
|
diskWatcher
|
Monitors disk space availability on the CiscoWorks server.
This process calculates the disk space information of a drive (On Windows ) or a file system (On Solaris ) at regular intervals and stores them in diskwatcher.log file.
This also alerts you when the disk space is less than the threshold limit, and records the alert information in the system log files.
|
—
|
EDS
|
Legacy Event Distribution engine. This is currently used by some applications to send and receive event messages.
|
RmeGatekeeper
|
EDS-GCF
|
EDS - Generic Consumer Framework process. It is an extension to EDS that allows Generic Event Consumers to provide a pluggable event interface.
|
EDS ,CmfDbMonitor
|
EDS-TR
|
EDS Trap Receiver process. It converts SNMP trap messages to EDS events, based on configurable rules.
|
EDS
|
ESS
|
Event Services Software. The new engine that handles distribution of events between processes. This is slated to eventually replace EDS.
|
—
|
EssMonitor
|
Monitors ESS process to check if events related functionality works properly. This process shuts down automatically when the ESS process fails or does not function properly.
|
ESS
|
FDRewinder
(Solaris Only)
|
Enables the rotation of log files functionality using logrot
|
—
|
jrm
|
Job and Resource Manager. This allows scheduling of jobs to be run at specific times. It also allows locking/unlocking of resources.
|
CmfDbMonitor, RmeGatekeeper, EDS, EssMonitor
|
LicenseServer
|
Provides Licensing functionality for evaluation, PIN/PAK based licensing, and file based licensing mechanisms.
|
—
|
RmeGatekeeper
|
Visibroker gatekeeper agent that monitors objects and messages and acts as a gateway between the CORBA clients and the RmeOrb
|
RmeOrb
|
RmeOrb
|
Visigenics Object Request Broker for the CORBA framework used in CiscoWorks.
|
—
|
Tomcat
|
Java servlet engine used on Windows and Solaris systems hosting applications based on the CiscoWorks desktop.
|
—
|
TomcatMonitor
|
Monitors the health of Tomcat process and shuts down automatically when Tomcat fails or does not function properly.
|
Tomcat
|
Viewing Process Details
To view Process details:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Process.
The Process Management window appears with all CiscoWorks processes listed.
You can see the following information of a CiscoWorks process in the Process Management window:
Column
|
Description
|
ProcessName
|
Name of the process. Describes how process is registered. See Common Services Server processes, for more information on process description. For information on suite-specific processes, see the Online help.
|
ProcessState
|
Process status and a summary of the log file entries for the process. If the process fails, this column is highlighted in red .
|
ProcessId
|
A unique number by which the operating system identifies each running program.
|
ProcessRC
|
Return code. 0 represents normal program operation. Any other number typically represents an error. See the error log for details.
|
ProcessSig
|
No Signal number. 0 represents normal program operation. Any other number is the last signal delivered to the program before it terminated.
|
ProcessStartTime
|
Time and date the process was started.
|
ProcessStopTime
|
Time and date the process was stopped.
|
Step 2
Click the ProcessName link provided for a process to view its details.
The Process Details popup window appears with the following information:
Column
|
Description
|
Process
|
Name of the process.
|
Path
|
File Location.
|
Flags
|
Flags used to register the process with the Daemon Manager.
|
Startup
|
Method used to start the process (manual or automatic).
|
Dependencies
|
Other processes that are running and are required for this process to run.
|
You can click the Refresh icon on the top-right corner of the page to initiate a page refresh and view the updated information of the processes.
Starting a Process
To start a process:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Process.
The Process page appears.
Step 2
Select the check box corresponding to the process.
Step 3
Click Start.
Stopping a Process
To stop a process:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Process.
The Process page appears.
Step 2
Select the check box corresponding to the process.
Step 3
Click Stop.
Backing Up Data
You should back up the database regularly so that you have a safe copy of the database. You can schedule immediate, daily, weekly, or monthly automatic database backups.
You cannot back up the database while restoring the database. Common Services uses multiple databases to store client application data. These databases are backed up whenever you perform a backup. Backup requires enough storage space on the target location for the backup to start.
To schedule a backup:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Backup.
The Backup page appears.
Step 2
Enter the appropriate information in the following fields:
Field
|
Description
|
Backup Directory
|
Location of the backup directory. We recommend that your target location be on a different partition than the CiscoWorks installation location.
|
Runtype
|
Select the desired check box. You have options to schedule immediate, daily, weekly, or monthly backups.
|
Time
|
From the drop-down lists, select the time and date.
• If you schedule a weekly backup, select the day of the week from the drop-down list.
• If you schedule a monthly backup, select the day of the month from the drop-down list.
|
Generations
|
Maximum number of backups to be stored in the backup directory.
|
Step 3
Click Apply.
Backing up Using CLI
To Backup data using CLI on Windows and Solaris:
On Windows, run:
NMSROOT\bin\perl NMSROOT\bin\backup.pl BackupDirectory [LogFile] [Num_Generations]
On Solaris, run:
opt/CSCOpx/bin/perl /opt/CSCOpx/bin/backup.pl BackupDirectory [LogFile] [Num_Generations]
•
NMSROOT— Directory where CiscoWorks is installed.
•
BackupDirectory—Directory that you want to be your Backup directory.
•
LogFile—Log file name that contains the details of the backup.
•
Num_Generations—Maximum backup generations to be kept in the backup directory.
Data Backed up During CS 3.0.5 Backup
The following data is backed up:
•
CiscoWorks User information.
•
Single Sign-on configuration.
•
Device and Credential Repository (DCR) configuration.
•
Peer Certificates and Self Signed certificates.
•
Peer Server Account information.
•
Login Module settings.
•
Software Center map files.
•
Licence data.
•
Core client Registry.
•
System Identity Account configuration.
•
Cisco.com User Configuration.
•
Proxy User configuration.
•
Database. Jobs and Resources data, DCR data, Groups data, and other data stored in the database.
Restoring Data
The new restore framework supports restore across versions. This enables you to restore data from versions 2.1, 2.2, and 3.0, in addition to Common Services 3.0.3. The restore framework checks the version of the archive.
•
If the archive is of the current version, then the restore from current version is executed.
•
If the backup archive is of an older version, the backup data is converted to Common Services 3.0.3 format, if needed, and applied to the machine.
You can restore your database by running a script from the command line.
While restoring data, CiscoWorks is shut down and restarted.
In all backup-restore scenarios, a back up is taken from a machine A, and the backed up data, say Ab, is restored on the same machine A, or on a different machine B.
Ensure that you do not run any critical tasks during data restoration. Otherwise, you may lose the data for such tasks.
For details on effect of restore operation on DCR modes, and Groups, see Effects of Backup-Restore on DCR and Effects of Backup-Restore on Groups.
Caution 
Restoring the database from a backup permanently replaces your database with the backed up version.
Restoring Data on UNIX
To restore the data on UNIX:
Step 1
Log in as the superuser, and enter the root password.
Step 2
Stop all processes by entering:
Step 3
Restore the database by entering:
/opt/CSCOpx/bin/perl /opt/CSCOpx/bin/restorebackup.pl [-t temporary directory] [-gen generationNumber] [-d backup directory] [-h]
•
[-t temporary directory]—The restore framework uses a temporary directory to extract the content of backup archive.
•
[-gen generationNumber]—Optional. By default, it is the latest generation. If generations 1 through 5 exist, then 5 will be the latest.
•
[-d backup directory]—Required. Which backup directory to use.
•
[-h]—Provides help. When used with -d <backup directory> syntax, shows correct syntax along with available suites and generations.
To restore the most recent version, enter:
/opt/CSCOpx/bin/perl /opt/CSCOpx/bin/restorebackup.pl -d backup directory
For example, -d /var/backup
Step 4
Examine the log file in the following location to verify that the database was restored by entering:
/var/adm/CSCOpx/log/restorebackup.log
Step 5
Restart the system:
Restoring Data on Windows
To restore the data on Windows, make sure you have the correct permissions, and do the following:
Step 1
Stop all processes by entering the following at the command line:
net stop crmdmgtd
Step 2
Restore the database by entering:
NMSROOT\bin\perl NMSROOT\bin\restorebackup.pl [-t temporary directory] [-gen
generationNumber] [-d backup directory] [-h]
where NMSROOT is the CiscoWorks installation directory. See the previous section for command option descriptions.
To restore the most recent version, enter the following command:
NMSROOT\bin\restorebackup.pl -d backup directory
For example, -d drive:\var\backup\
When you restore the backup taken from a CS2.2 server, on a CS3.0 server, restore might fail if the backup archive has any file or folder with a long path name.
The following error message will be displayed:
ERROR: Restore cannot proceed. Seems you are hitting the bug CSCec01327
To workaround this problem, you have to install the patch cmf2.2-win-CSCec013271.tar on the CS2.2 server, before taking the backup.
The patch is available at:
http://www.cisco.com/pcgi-bin/tablebuild.pl/cw2000-cd-one
Note
You need not install this patch if you have installed Common Services2.2 Service Pack 3 on the CS2.2 server, before taking the backup.
Step 3
Examine the log file in the following location to verify that the database was restored by entering:
NMSROOT\log\restorebackup.log
Step 4
Restart the system by entering:
While restoring using a backup taken from a machine that is in ACS mode, the machine on which data is restored needs to be added as a client in ACS. Contact ACS administrator to add the restored machine as ACS client. See also, Setting the Login Module to ACS.
Data Restored From Common Services 3.0/3.0.3/3.0.5 Backup Archive
The following data will be restored from a Common Services 3.0/3.0.3/CS 3.0.5 backup archive:
•
CiscoWorks User information.
•
Single Sign-on configuration.
•
Device and Credential Repository (DCR) configuration.
•
Peer certificates.
•
Self Signed certificate (based on your confirmation).
•
Peer Server Account information.
•
Login Module settings.
•
Software Center map files (Will not overwrite existing data).
•
Application and Link registrations.
•
Log backup configuration.
•
Licence data (Will not be restored. But will compare and display a warning and ask for confirmation to continue, if licenses are different).
•
ACS credentials.
•
System Identity Account configuration.
•
Cisco.com User Configuration.
•
Proxy User configuration.
•
Database. Jobs data, DCR data, Groups data, and other data stored in the database.
Data Restored From Common Services 2.2 Backup Archive
The following data will be restored from Common Services 2.2 backup archive:
•
CiscoWorks user information.
•
Self Signed certificate (based on your confirmation).
•
Login Module settings.
•
Management Connection data.
•
Log backup configuration.
•
Database. Jobs data, and other data stored in database.
Though Common Services 2.2 supports ACS login module, restoring from a Common Services 2.2 backup archive will not restore the ACS login module. After restore, the login module of the machine will be non-ACS, TACACS+.
Data Restored From CD One 5th Edition Backup Archive
The following data will be restored from CiscoWorks2000 Server (CD One 5th edition) backup archive:
•
CiscoWorks user information.
•
Self Signed certificate (based on your confirmation).
•
Login Module settings.
•
Log backup configuration.
•
Database. Jobs data, and other data stored in the database.
Effects of Backup-Restore on DCR
Data changes are a normal part of any restore from a backup. However, because Device and Credential Repository (DCR) is a distributed system with varying modes, it is also possible for any restored DCR to:
•
Change modes.
For example, a Standalone DCR can be set after a backup to act as a Slave. When the restore is performed, it will be reset to the Standalone mode. It depends on source machine's DCR mode where backup was taken, and on the target machine's DCR mode on which the data was restored.
•
Change master/slave relationships.
For example, a DCR Slave may be using Master A at the time a backup is taken. Later, the domain may be changed to use Master B, and the Slave reset to use Master B. When the restore is performed, the Slave will attempt to use Master A.
For detailed information on DCR, see Chapter 5, "Managing Device and Credentials".
The following scenarios helps you understand the implications of Restore operations on DCR.
Restoring Data From a DCR Standalone
If you restore the data backed up from a machine in the Standalone mode, on any machine whose working mode is either Standalone, Master, or Slave, the end mode will be Standalone.
Let X be a machine in Standalone mode.
If you restore the data backed up from X, say Xb, on another Standalone machine Y, or a Slave S, or a Master M, the end mode of Y, S, and M will be Standalone. Also, any slave of M will switch to Standalone mode.
Further scenarios can be better explained based on the following DCR set up.
Let us assume there are two DCR domains.
•
For Domain 1, you have M1 as Master, and S1, and S2 as Slaves.
•
For Domain 2, you have M2 as Master, and S3, and S4 as Slaves.
Restoring Data From S1 on S1
Suppose you take a backup from S1. After sometime, you restore the backed up data, say S1b, on S1. S1 will look for its Master M1, and the Master-Slave relation between S1 and M1 will be intact, since M1 is available.
However, note that the restore on S1 will practically be of no effect since S1 and M1 will synchronize after the restore on S1. The changes that have taken place after the backup was taken from S1 will be reflected in S1, even if S1b is restored on S1.
In the above example, if the restore on S1 is performed when Master M1 is down, or has crashed, the end mode of S1 will be Standalone. This is because S1 will try to contact M1, and will fail because M1 is down.
Restoring Data From S1 to M1
Suppose you take a backup from S1 and restore the backed up data, say S1b, on M1. M1 will switch to Standalone mode because, after backup, it will not be able to find a Master. S1 will also switch to Standalone mode.
At the time of backup, if there were 1000 devices in M1, the Slave S1 would also have 1000 devices. Say more devices are added to M1 after the Backup. S1 will have the up-to-date device list. But after restore on M1, M1 will have only 1000 devices. In other words, the data on S1 will be more recent than that on M1.
Restoring Data From S1 on M2
Suppose you take a backup from S1 and restore the backed up data, say S1b, on M2, which is the master in the DCR Domain 2 in our example.
After the restore, the end mode of M2 will be Slave. That is, M2 will become a slave of M1. Also, S3, and S4, which were slaves of M2, will switch to the Standalone mode.
Restoring Data From M1 on M1
Suppose you take a back up from M1. After the backup you would be performing several operations that would bring about changes in the Master and the corresponding Slaves; M1, S1, and S2 in our example.
Now, say you restore the backed up data M1b, on M1 itself. The Master M1 will now have data that is older than that in the Slaves, S1, and S2. In other words, the Slaves will be having more recent data than that on the Master.
To avoid this, you must perform the Restore operation in the following sequence:
Step 1
Back up data from the slaves, S1 and S2.
Step 2
Backup data from the Master, M1.
This is to ensure that the data backed up from M1 is more recent than the data backed up from S1 and S2.
Step 3
Stop Daemon Manager on all three machines.
Step 4
Restore data on the Master, M1.
Step 5
Restart Daemon Manager on M1.
Step 6
Restore data on S1, and S2 after the Master is up and stable,
Step 7
Restart Daemon Manager on S1, and S2.
This ensures that Master has more recent data than the Slaves.
Note
To avoid disturbances to Master- Salve relationship, and to maintain consistency, it is better to take a back up of all the machines at the same time.
Restoring Data From M1 to M2
Suppose you take a backup from M1, and restore the backed up data, say M1b, on M2.
S3, and S4 which were slaves of M2, will switch to Standalone mode.
Master -Slave Configuration Prerequisites and Restore Operations
DCR Master Slave setup requires you to perform certain tasks prior to Master-Slave configuration, to enable proper, and secure communication between them. This involves copying certificates, and setting up a valid system identity user. For details, see Master-Slave Configuration Prerequisites.
Restore operations can affect Master-Slave relationships because it may modify these pre-configured parameters.
For example, let M1 be the Master, and S1 its Slave. Let X be a standalone server.
Suppose you take a backup from S1, and restore the backed up data, say S1b on X.
Now, X has to be in Slave mode.
Since, M1 and S1 already shared a Master -Slave relationship, M1 will have the peer certificate of S1, and S1 will have the certificate of M1.
After the restore operation, X will get the certificate of M1. However, if peer certificate of X is not present on M1, X will not be able to have M1 as its Master.
So you have to ensure that the certificates of the peer machines are in place, before you do a Restore.
Other Master-Slave configuration prerequisites such as System Identity user configuration and Peer Server Account user configuration might get affected by Restore operations.
For example: In M1 you have Joe as a Peer Server User and in S1 you add Joe as a System Identity user. You take a backup from S1.
After you take the backup, say you change the Peer Server User and System Identity User to Bob.
Now if you restore the backed up data, say S1b the system Identity User would not be the Bob anymore. This will upset the Master-Slave relationship.
During restore you are prompted to confirm whether you need to overwrite the SSL certificate.
SSL certificates are tied to individual machines. So if you take a backup on one machine and restore it on another, you should be careful not to overwrite the SSL certificate.
However, if you backup data from a machine and restore it to the same machine, you may overwrite the SSL certificate.
Effects of Backup-Restore on Groups
Backup- Restore operations have an implication on the way Groups will be displayed in the Common Services (CS) UI. The changes in Groups behavior is discussed in relation with the Device and Credential Repository (DCR) mode changes explained in the above section.
If you perform a backup on machine A and restore the backed up data, say Ab, on the same machine, the system-defined groups, and the user-defined groups created after the data backup will be removed.
Restoring Data From a DCR Standalone
The following scenarios have to be considered:
•
Restore data from a Standalone machine A to another Standalone machine B:
The provider group name will change accordingly. That is, the provider group CS @A will become CS@B.
•
Restore data from a Standalone machine A to a Master M:
The Master will switch to Standalone mode. The provider group name will be updated accordingly. The Slave groups will be removed from the Master.
Only the groups pertaining to Common Services and the applications installed in the Standalone machine will be visible. All dependent Slaves of M will become Standalone.
•
Restore data from a Standalone machine A to a Slave S:
The Slave will switch to Standalone mode. The provider group name is updated accordingly. The groups pertaining to other Slaves in the domain, and the Master of S, will be removed from S. The groups UI will be enabled.
The subsequent sections are based on the scenarios discussed in the "Effects of Backup-Restore on DCR" section.
Restoring Data From S1 on S1
No impact on CS groups.
There may be applications installed on S1. Say you create 10 groups in the Applications before you backup data from S1. After backup, say you create 10 more groups in the Applications. On restore, the 10 groups you created after backup will not be present. This propagates to other Slaves in the domain also.
Restoring Data From S1 on M1
After restore, both S1 and M1 will switch to Standalone mode. Both will have only those groups pertaining to Common Services and Applications installed on the individual machines. Groups UI is enabled on S1. Also, the other slaves of M1 will switch to Standalone mode.
Restoring Data From S1 on M2
After restore, M2 will become Slave of M1. The Groups UI in M2 will be disabled. M2 will pickup all the groups from M1. Groups in M2 will be propagated to other Slaves in the domain. All the slaves of M2 (before restore) will now switch to Standalone mode.
Restoring Data From M1 on M2
Slaves of M2, that is S3 and S4, will switch to Standalone mode. Groups pertaining to S3 and S4 will be deleted from M2.
In all the cases the System Defined Groups, and the User Defined Groups, are carried over and updated in the target machine.
Licensing CiscoWorks Applications
You must register your software and obtain a product license before you start using an application. You can obtain a product license and license your application, view details of your current software license, or update to a new license from the Licensing page.
Obtaining a License for CiscoWorks Applications
To obtain a product license for your CiscoWorks applications, register your software at one of the following websites. You will need to provide the Product Authorization Key (PAK), which is printed on a label affixed to the Bundle sub-box.
If you are a registered user of Cisco.com, use this website:
http://www.cisco.com/go/license
If you are not a registered user of Cisco.com, use this website:
http://www.cisco.com/go/license/public
The product license will be sent to the e-mail address you provide during registration.
Retain this license with your CiscoWorks software records.
Licensing the Application
After you obtain the product license, perform these steps to license your software:
Step 1
Copy the new license file to the CiscoWorks Server, with read permission for casuser/casusers.
Step 2
Select Common Services > Server> Admin > Licensing.
The License Information dialog box appears. The License Information page displays the name, version, device limit, status and expiration date of the license.
Step 3
Click Update.
Step 4
Enter the path to the new license file in the License field, or click Browse to locate the new file.
Step 5
Click OK.
The system verifies whether the license file is valid, and updates the license. The updated licensing information appears in the License Information page. Otherwise an error message is displayed.
Viewing License Information
To view details of your current software license, select Common Services > Server > Admin > Licensing.
The License Information page appears. The license name, license version, size (device limit for the licensed application), status of the license, and the expiration date of the license appear under License Information.
The license version shows the major version of the applications. To know the version with patch level, select Common Services > Software Center > Software Updates.
Updating Licenses
You can view details of your current software license, or update to a new license from the License page.
To update to a new license from the Licensing page:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Licensing.
The License Information page displays the license name, license version, status of the license, and the expiration date of the license.
Step 2
Click Update.
Step 3
Enter the path to the new license file in the License field, or click Browse to locate the new file.
Step 4
Click OK.
The system verifies whether the license file is valid, and updates the license. The updated licensing information appears in the License Information page. Otherwise, an error message is displayed.
Collecting Server Information
This feature helps you to get information about the server. It provides system information, environment, configuration, logs, and web server information. This information can be used for trouble shooting.
To collect server information:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Collect Server Information.
The Collect Server Information page appears.
Step 2
Click Create to collect the current server information.
The Collect Server Information pop-up dialog box appears with a list of options.
Step 3
Select the check boxes corresponding to the options you need, and click OK.
By default all the check boxes are selected.
Step 4
Click Server Information at the date time link.
The pop-up window displays the server information collected.
Step 5
View server information by clicking the corresponding link in the Table of Contents.
To delete a Collect Server Information report, select the corresponding check box, and click Delete.
You can also generate this information using CLI.
Enter the following command:
•
NMSROOT\bin\collect.info (on Windows)
or
•
NMSROOT/bin/collect.info (on Solaris)
where NMSROOT is the directory where you installed CiscoWorks.
Collecting Self Test Information
You can view self test reports using this option. Selftest feature helps to test certain basic functions of the server.
Step 1
Select Common Services > Server > Admin > Selftest.
Step 2
Click Create to perform a self test and view the report.
Step 3
Click the Self Test Information at date time link.
A pop-up window displays the selftest information report.
To delete a Self Test Information report, select the check box and click Delete.
Messaging Online Users
You can use the Notify User feature in Common Services to broadcast messages to online users. You can post messages to users with active CiscoWorks browsers. The message will be received within 60 seconds.
To send a broadcast message:
Step 1
Select Common Services > Server > Admin > Notify Users.
The Logged in Users dialog box lists all the users currently logged in.
Step 2
Enter the message in the Message field and click Send.
The Status field displays the status of the message.
Note
If you are using Microsoft Internet Explorer, make sure your browser is set to check for updates on every visit to the page.
Managing Jobs
Common Services provides a Job Browser to manage jobs. From the Job browser you can view a listing of jobs, view details of each job, stop a job, and delete a job from the list.
Users in Help Desk, Approver, and Network Operator roles are not allowed to stop and delete jobs.
All users (including Help Desk) can access the Job browser page. The Refresh icon in Job browser is available for all users.
Note
When you are using the ACS login module, the System Identity User you configure should have all the Job management related tasks enabled. The job_browser, job_stop, and, job_delete tasks should be enabled.
To view the list of jobs:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Job Browser.
The Job Browser page appears with the following details:
Item
|
Description
|
Job ID
|
Unique number assigned to this task at creation time. This number is never reused. There are two formats:
• Job ID:
Identifies the task. This does not maintain a history. For Example:
• JobID.Instance ID:
Here, in addition to the task, the instance of the task can also be identified. For Example:
|
Type
|
String that identifies the job type (SWIM, Config, etc) and job subtypes. For example, SWIM:update.
|
Run Status
|
Job states including:
• Running
• Removed
• Waiting for approval
• Scheduled (pending)
• Rescheduled
• Completed succeeded
• Failed
• Crashed
• Cancelled
• Rejected
• ERROR.
The start time, and end time of the task are also shown.
|
Sched Type
|
Frequency of the job. This can be:
• Run immediately.
• Run once.
• Run on a calendar basis (periodic).
• Run on a time-start basis.
• Run on a time-stop basis.
For time zone abbreviations and GMT offsets, see the Release Notes.
|
Description
|
Text string that describes the job.
|
Run Schedule
|
Date and time the job was scheduled.
|
Status
|
Current status of the job.
|
To view Job details:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Job Browser.
The Job Browser page appears.
Step 2
In the Job Browser page, click Job ID.
The Job Details popup displays the job details.
To stop a Job:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Job Browser.
The Job Browser page appears.
Step 2
Select the check box corresponding to the Job you want to stop.
Step 3
Click Stop.
When you stop a Normal job, you are prompted to confirm whether you want to stop the job.
However, when you stop jobs that have several instances, you are prompted to specify whether you need to stop the current instance of the job alone, or the current instance and all the future instances as well.
You can stop only one job at a time.
To delete a job, click Delete, after selecting the desired check box.
You can delete multiple jobs at a time. You cannot delete a running job.
All users (except Help Desk) can perform Stop and Delete operations in the job browser.
Managing Resources
Common Services provides a Resource Browser for managing resources. You can free locked resources, when necessary, if you have appropriate privileges. All users (including those with Help Desk role alone) can access the Resource browser page. The Refresh icon in the Resource browser is available for all users.
Note
When you are using the ACS login module, the System Identity user must configure all the Resource management related tasks. The resource_browser and free_resource tasks should be enabled.
To view Resource details:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Resource Browser.
The Resource Browser page displays the following details:
Item
|
Description
|
Resource
|
Name of the resource currently locked.
|
Job ID / Owner
|
Number assigned to this task at creation time. Identifies all related locked resources, and user who locked the resource.
|
Time Locked
|
Time this lock was established.
|
Expire Time
|
Lock expiration time.
|
To free locked resources:
Step 1
Go to the CiscoWorks Homepage and select Common Services > Server > Admin > Resource Browser.
The Resource Browser page appears.
Step 2
Check the check box corresponding to the Job ID.
Step 3
Click Free Resources.
All users (except those with only Help Desk role) can perform the Free Resource operation in the Resource browser.
To view updated resources, click Refresh.
Maintaining Log Files
Log files can grow and fill up disk space. CiscoWorks includes a script that enables you to control this growth.
Files maintained by this script include the following log files:
•
Daemon manager
•
Web server log files
Most log files are located in directories in the following locations:
•
On UNIX—var/adm/CSCOpx/log
•
On Windows—NMSROOT\log
Caution 
As part of the file back-up procedure, CiscoWorks Daemon Manager is shut down and restarted. To prevent loss of data, make sure you are not running any critical tasks.
The following section provides information on maintaining log files on Unix, and Windows:
•
Maintaining Log Files on UNIX
•
Maintaining Log Files on Windows
Maintaining Log Files on UNIX
To maintain log files on UNIX:
Step 1
Make sure the new location has sufficient disk space.
Step 2
Log in as the superuser, and enter the root password.
Step 3
Stop all processes, and enter /etc/init.d/dmgtd stop
Step 4
Perform log maintenance by entering:
NMSROOT/bin/perl NMSROOT/cgi-bin/admin/logBackup.pl [-force][-dir destination directory]
where NMSROOT is the CiscoWorks installation directory, [-force] allows backup regardless of log file size, and [-dir destination directory] specifies the full path of the destination directory.
The target directory must be owned by user casuser and group casusers. The user must have read, write, and execute permissions, and the group must have at least read permission.
Otherwise, the program will terminate with an error message, and the log files will not be updated.
Without any options, the script backs up the log files to the default directory, PX_LOGDIR/backup.
Step 5
Verify the procedure was successful by examining the contents of the log files in this location:
/var/adm/CSCOpx/log/*.log
Only log files that reach 90% of their size limits are backed up, and the original log file is emptied.
Step 6
Restart the system, and enter /etc/init.d/dmgtd start
Step 7
Select Server > Reports > Log File Status to view your log changes.
Maintaining Log Files on Windows
To maintain log files on Windows:
Step 1
Make sure the new location has sufficient disk space.
Step 2
Go to the command line and make sure you have the correct permissions.
Step 3
Stop all processes by entering:
net stop crmdmgtd
Step 4
Perform log maintenance by entering:
NMSROOT\bin\perl NMSROOT\cgi-bin\admin\logBackup.pl [-force][-dir destination directory]
where NMSROOT is the CiscoWorks installation directory, [-force] allows backup regardless of log file size, and -[-dir destination directory] specifies the full path of the destination directory.
If there is a problem, the program will terminate with an error message, and the log files will not be updated.
Step 5
Verify the procedure was successful by examining the contents of the log files in the following location:
NMSROOT\log\
Only log files that reach 90% of their size limits are backed up, and the original log file is emptied.
Step 6
Restart the system by entering:
net start crmdmgtd
Step 7
Select Server > Reports > Log File Status to view your log changes.
Using Logrot
The logrot utility helps you manage the log files in a better fashion.
Logrot is a log rotation program that can:
•
Rotate log when CiscoWorks is running.
•
Optionally archive and compress rotated logs.
•
Rotate log only when it has reached a particular size.
Logrot helps you add new files easily. Logrot should be installed on the same machine where you have installed Common Services.
Configuring Logrot
To configure logrot:
Step 1
Enter NMSROOT\bin\perl.exe NMSROOT\bin\logrot.pl -c (On Windows)
Step 2
Run /opt/CSCOpx/bin/logrot.pl -c (On UNIX)
The logrot configuration menu appears. You have the following options:
•
Edit variables.
•
Edit log files.
•
Quit and save changes.
•
Quit without saving change.
Step 3
Select Edit variables to set your Backup Directory.
If you do not set a backup directory, each log will be rotated in its current directory.
Step 4
Select Edit log files to add log files you wish logrot to rotate.
You can specify log files using fully-qualified or relative paths. If a relative path is specified, and the log file does not exist in that path, the default log file path for your operating system will be added during rotation (for example, /var/adm/CSCOpx/log on UNIX).
Step 5
Specify the number of archive revisions. If you do not want to keep any archives, enter 0 (the default) for this option.
Step 6
Specify the maximum file size. The log will not be rotated until this size is reached. The unit is in kilobytes (KB). The default is 1024 KB or 1 MB.
Step 7
Specify the file compression type to be used. It can be:
•
Z—UNIX
•
gz—GNU gzip (available by default on Windows only)
•
bz2—bzip2 (available by default on Solaris8 and above only).
When deleting logfiles, you can choose to delete an individual file, a list of files, or a all files matching a certain pattern.
For example, 1-3 means delete files numbered 1 through 3. a list of comma-separated file numbers, for example, 1,21, means delete files numbered 1 and 21. A pattern string *.log means delete all files that match the pattern *.log.
You can also specify the special pattern, *, which means delete all logfiles in the configuration.
Running Logrot
To run Logrot enter either of the following:
On Windows:
Enter NMSROOT\bin\perl.exe NMSROOT\bin\logrot.pl
On Unix:
Run /opt/CSCOpx/bin/logrot.pl
You can schedule log rotation so that the utility works on a specified time and day.
The following command line flags are accepted:
•
-v options to get verbose messages.
•
-s option shuts down dmgtd before rotating logs.
The Restart Delay variable controls the waiting duration (in seconds) before proceeding, after dmgtd is shutdown. This option is only used if the -s argument is given to logrot. The default delay is 60 seconds.
•
-c option reruns the configuration tool.
Modifying System Preferences
You can configure system-wide information on the CiscoWorks Server using the System Preferences option. It is a way to centrally locate information that is used by CiscoWorks applications.
Field
|
Description
|
SMTP Server
|
System-wide name of the SMTP server used by CiscoWorks applications to deliver reports. The default server name is localhost.
|
CiscoWorks E-mail ID
|
CiscoWorks E-mail ID from which applications send mail. There is no default E-mail ID.
|
RCP User
|
Name used by network device when it connects to CiscoWorks Server to run rcp.
User account must exist on UNIX systems, and should also be configured on devices as local user in the ip rcmd configuration command. The default RCP username is cwuser.
|
Enable crmlogger DNS resolution
|
Enable the Domain Name Service Resolution for the crmlog service using this field. Note that enabling the DNS Resolution for the crmlog service will slow down the Syslog performance.
The crmlog service will stop and start when you enable or disable the Domain Name Service Resolution for crmlog service. If the crmlog registry does not contain the CrmDnsResolution parameter, it will be created automatically when you enable the service.
|
To edit system preferences:
Step 1
Select Common Services > Server > Admin > System Preferences.
The System Preferences dialog box appears.
Step 2
Select one of the following tabs to enter information or to verify that the configured information is correct:
•
SMTP Server
•
CiscoWorks E-mail ID
•
RCP User
Set this information carefully. If you introduce errors, users may not be able to log in.
Step 3
Click Apply after making the changes.
To apply the defaults already configured in the system, click Defaults. To cancel the changes, click Cancel.
Effects of Third Party Backup Utility and Virus Scanner
Sometimes, the CMF database fails to run and throws the following Sybase Assertion error message:
*** ERROR *** Assertion failed: 100909 (9.0.0.1383).
100909 is the Assertion ID.
The following are the scenarios where Assertion Error might appear:
•
If you use any third-party backup software to back up a live, running database, the Assertion Error might be thrown.
This is because some of the database pages that have been modified will be in the database server cache, so the database file will be in an inconsistent state.
•
If you use any anti-virus software.
The reason is, Adaptive Server Anywhere performs many reads and writes other than the normal I/O operations, which contribute to the good performance of Adaptive Server Anywhere. However, anti-virus software might detect this as a potential problem and quarantine the file.
This becomes hazardous if the .log or temporary files are quarantined, and it may cause corruption by interfering with the normal functions of the database. Poor performance can also occur if the anti-virus software is checking all I/O operations performed by the database server.
We recommend that you do not use third-party backup software for backing up a running database.
We also recommend that you configure your anti-virus software so that it must not scan the NMSROOT/databases directory.
NMSROOT is the directory where you have installed CiscoWorks.
Configuring TFTP
This is applicable on Solaris only.
The TFTP (Trivial File Transfer Protocol) daemon shipped by CiscoWorks Common Services supports TCP (Transmission Control Protocol ) Wrappers.
If the TCP Wrapper support is not configured properly in the server where CiscoWorks is installed, the jobs requiring TFTP may fail.
To ensure that TFTP works properly, check the following configuration files:
•
If /etc/hosts.allow file is present, ensure that the command in.tftpd is given as in.tftpd:ALL If the command is not there in the file at all, add it as in.tftpd:ALL
•
If /etc/hosts.deny file is present, ensure that the command in.tftpd is not there in the file
•
If both the files are not present (/etc/hosts.allow and /etc/hosts.deny), you do not need to make any changes
Note
The TCP Wrapper software extends the abilities of inetd to provide support for every server daemon under its control. It provides logging support, returns messages to connections, permits a daemon to accept only internal connections, etc.
Configuring CWHP
The Application Registration, Link Registration, and Settings links under Homepage Admin Tab help you configure your CiscoWorks Homepage.
This section has the following:
•
Registering Applications With CWHP
•
Registering Links With CWHP
•
Setting Up CiscoWorks Homepage
Registering Applications With CWHP
Using this feature you can register CiscoWorks applications on local or remote servers. You need to enter application instance attributes (host, port, and protocol).
Other information such as AppName, URLs available are already defined by the application in a template.
During registration you are prompted to select an application template and then register with CiscoWorks Server. The registration enables the application to be integrated with other applications based on the template definition. It also helps application launch points to be displayed on CWHP.
To register applications:
Step 1
Select Common Services > Server > HomePage Admin > Application Registration.
The Application Registration Status page appears.
Step 2
View the list of registered applications in the Registered Applications dialog box.
Registering a New Application
To register a new application:
Step 1
Click Register in the Registered Applications dialog box.
The Choose Location for Registration page appears. A wizard guides you through the process.
Step 2
Choose the location for registration.
You can select Register from Templates or Import from Other servers.
To register from Templates:
Step 1
Select the Register from Templates radio button and click Next.
The Registration Through Template page appears. A list of templates appears in the Select a Template to Register dialog box.
Step 2
Select the radio button corresponding to the Template you require and click Next.
The Server Attributes page appears.
Step 3
Enter the Server attributes in the Server attributes dialog box and click Next.
The Registration Summary page displays the Application Registration summary window. It displays a summary the information you entered.
Step 4
Click Finish.
Importing From Other Servers
You must perform the following tasks before importing application registrations from other servers. This is to ensure a secure environment for importing registrations.
•
Create self signed certificates for the local and remote servers (if not already done).
•
Add remote server's certificate to the local server. See Setting up Peer Server Certificate for details.
•
Restart the local server.
•
Create a Peer Server user on the remote server. Configure this user a System Identity user in the local server. See Setting up Peer Server Account and Setting up System Identity Account for details.
To import from other servers:
Step 1
Select the Import from Servers radio button and click Next.
The Import Registrations page appears.
Step 2
Enter the Server Name, Server Display Name, and the secure Port Number in the Import Server's Attributes dialog box.
Step 3
Click Next.
The Import Registrations Summary window displays a summary of the information you entered.
Step 4
Click Finish.
Viewing Registered Application Information
The Application Registration screen shows the list of registered applications. You can view the application name, version, host name and description for each of the registered applications. This page shows the applications that are registered in the local server as well as any other applications whose templates are imported from other servers.
The version in this screen shows the major version of the applications. In order to know the version with patch level, go to Software Center > Software Updates. The Software Updates page shows the version with patch level information only for the applications installed in the local server.
Unregistering an Application
To unregister an application:
Step 1
Select Common Services > Server > HomePage Admin> Application Registration.
The Application Registration Status page appears. You can view the list of registered applications in the Registered Applications dialog box.
Step 2
Select the radio button corresponding to the Application you want to unregister, and click Unregister.
The Applications to be Unregistered window appears with the details of the Application unregistered.
Step 3
Click Confirm.
Registering Links With CWHP
You can add additional links to CiscoWorks Homepage for Custom tools and home grown tools, and third party applications such as HPOV. The links appear under the Third Party or Custom Tools, as you specify.
To register links with CiscoWorks Homepage:
Step 1
Select Common Services > Server > HomePage Admin > Links Registration.
The Links Registration Status page appears.
Step 2
Click Register.
The Enter Link Attributes dialog box appears.
Step 3
Enter the Link Name and the URL.
Step 4
Select the radio button corresponding to Third Party or Custom Tools to set the display location.
Step 5
Click OK.
Unregistering a Link
To unregister a link:
Step 1
Select Common Services > Server > HomePage Admin> Links Registration.
The Links Registration Status page appears.
Step 2
Select the check box corresponding to the link you need to unregister.
Step 3
Click Unregister.
Setting Up CiscoWorks Homepage
You can configure or change the CiscoWorks Homepage settings.
To modify CiscoWorks Homepage settings:
Step 1
Select Common Services > Server > HomePage Admin> Settings.
The Homepage Settings page displays the Homepage Settings dialog box.
Step 2
Enter a name for the CiscoWorks Server in the Change Homepage Server Name field.
You can use this name in the Provider Group name in the Common Services Groups UI. See System-defined and User-defined Groups for details on Provider Group.
Step 3
Select the Hide External Resources check box to hide the Resources and CiscoWorks Product Updates panels in the Homepage.
Step 4
Enter the display name you want for Third Party tools in the Custom Name for Third Party field.
Step 5
Enter the display name you want for Custom tools/homegrown tools in the Custom Name for Custom Tools field.
Step 6
Select a value from the Urgent Messages Polling Interval drop-down list to set the polling interval for messages.
The time you set here decides the polling interval for disk watcher messages and messages you want to broadcast using the Notify Users features.
To disable this feature, select DISABLE from the drop-down list.
Disk watcher is a utility that monitors the file system. If the file system size goes above 90 percent, it displays an alert to logged in CiscoWorks users. You can use this to monitor critical file systems.
To know more about the Notify Users feature, see Messaging Online Users.
Step 7
Click Update.
You can update any one of the above settings by clicking update.
If you have changed the Homepage Server name, a popup window appears prompting you to confirm whether you want to use this name in Provider Group name.
•
Click OK if you want the name to be suffixed to the Provider Group name.
•
You need to restart Daemon Manager for the Provider Group name change to take effect. See Using Daemon Manager for details on restarting Daemon Manager.