- Overview to Prime Performance Manager
- Managing Gateways and Units Using the CLI
- Managing the Web Interface
- Importing Devices From Other Cisco Prime Applications
- Discovering Devices With Prime Performance Manager
- Managing Users and Security
- Managing Reports, Dashboards, and Views
- Setting Up Reports for Specialized Technologies
- Managing Devices
- Managing Network Alarms and Events
- Creating and Managing Thresholds
- Displaying System Properties, Statuses, Messages, and Logs
- Managing Gateways and Units
- Managing High Availability
- Configuring Prime Performance Manager for Firewalls
- Managing Multi-Tenant Services
- Pushing Prime Performance Manager Data to Other Applications
- Backing Up and Restoring Prime Performance Manager
- Prime Performance Manager and IPv6
- Prime Performance Manager Commands
- Predefined Thresholds
- Compliance
- Logging In as the Root User
- Running Prime Performance Manager as a Non-Root User
- Gateway and Unit Command Summary
- Starting Gateways and Units
- Stopping Gateways and Units
- Restarting Gateways and Units
- Displaying Gateway and Unit Status
- Displaying Gateway and Unit Software Versions
- Limiting Client Access to Servers
Managing Gateways and Units Using the CLI
The following topics tell you how to start, stop, and restart Prime Performance Manager gateways and units with parameters, and how to display their status and software versions:
Logging In as the Root User
Starting, stopping, or restarting Prime Performance Manager gateways and units requires you to log in as the root user or the user enabled with the ppm superuser command.
To log in as the root user, enter:
If you are already logged in, but not as the root user, use the su command to change your login to root:
For information about the ppm superuser command, see ppm superuser.
Running Prime Performance Manager as a Non-Root User
You can use the ppm superuser command to create a user that can run Prime Performance Manager as a non-root user. The command will update the number of soft and hard processing sessions (nproc) in /etc/security/limits.conf to 63536. Before starting your first non-root user session, verify that the number of soft and hard nprocs are greater than 16000.
To find the nproc values look for entries marked with the super user id in the first column. For example, if the user ID is superuser the entries might look like the following in /etc/security/limits.conf:
If no user specific entries are found, look for default nproc entries, for example:
The number in the fourth column is the number of processes allowed. If there are no entries or the number of processes allowed is too low, add or update the following lines in /etc/security/limits.conf:
Gateway and Unit Command Summary
You can use the following CLI commands with parameters to start and stop the Prime Performance Manager gateway and units:
ppm start gw—Starts all processes on the gateway.
ppm restart gw—Restarts all processes on the gateway.
ppm start unit—Starts all processes on the unit.
ppm restart unit—Restarts all processes on the unit.
ppm start both—Starts all processes on the gateway and unit.
ppm restart both—Restarts all processes on the gateway and unit.
Starting Gateways and Units
Before you start a Prime Performance Manager gateway or unit, verify that:
- You have IP connectivity to the Prime Performance Manager gateway and unit.
- The unit server has IP connectivity to the devices that you want to monitor.
- SNMP, or other protocol used to connect to devices, is enabled. For information about other device protocols supported by Prime Performance Manager, see Adding Device Credentials for Other Protocols.
- If you will run CSV-based reports, the device must be configured with Prime Performance Manager drop location and the same need to be updated in BulkStats.properties, which is located in /opt/CSCOppm-unit/properties/. For more information, see Setting Up StarOS Bulk Statistics Reports.
Prime Performance Manager includes a gateway and a unit component. You must start both components. If the gateway and unit are installed on the same machine, the ppm start command will start the gateway and unit automatically.
Note During Prime Performance Manager installation, the installer allows you to start the gateway and unit after Prime Performance Manager is installed. These procedures only need to be performed if you did not start the gateway and unit after installation, or you stopped the gateway and unit for other reasons.
Complete the following steps to start a Prime Performance Manager gateway and unit if the unit is installed on the same machine as the gateway.
Step 1 Log in as the root user or user enabled with ppm superuser. See Logging In as the Root User.
Step 2 To start the gateway and unit (if installed), enter:
The gateway components are started:
If a unit is installed on the same machine, the unit components are started:
The gateway web component is started and web URL is displayed:
If any gateway or unit component is not started, a message similar to the following appears:
The message can be displayed for any gateway or unit component. If it appears, review the sgmConsoleLog.txt to determine the cause and apply the appropriate fixes. sgmConsoleLog.txt is located in the /opt/CSCOppm-gw/logs/ or /opt/CSCOppm-unit/logs directories.
Complete the following steps to start a Prime Performance Manager unit installed on a machine separate from the gateway:
Step 1 Log into the unit server as the root user. See Logging In as the Root User.
Step 2 To start the unit, enter:
The unit components are started:
Note The ppm start command starts the gateway and automatically starts the unit if it is installed on the same machine. This occurs regardless of whether you initiate the command from the gateway install directory (/opt/CSCOppm-gw/bin/) or the unit install directory /opt/CSCOppm-unit/bin/. If the gateway and unit are installed on the same machine and you want to start only the gateway, enter ppm start gateway. Similarly, if you want to start only the unit, enter ppm start unit.
Stopping Gateways and Units
Complete the following steps to stop a Prime Performance Manager gateway and unit if the unit is installed on the same machine as the gateway:
Step 1 Log in as the root user or user enabled with ppm superuser. See Logging In as the Root User.
Step 2 To stop the gateway, enter:
The gateway components are stopped:
If a unit is installed on the same server as the gateway, the unit components are stopped:
Depending on how quickly the gateway and unit can be shut down, you might see the following messages indicating additional time is needed to shut down the unit components:
Note The ppm stop command stops the gateway and automatically stops the unit if it is installed on the same machine. This occurs regardless of whether you initiate the command from the gateway install directory (/opt/CSCOppm-gw/bin/) or the unit install directory /opt/CSCOppm-unit/bin/. If the gateway and unit are installed on the same machine and you want to stop only the gateway, enter ppm stop gateway. Similarly, if you want to stop only the unit, enter ppm stop unit.
Complete the following steps to stop a Prime Performance Manager unit installed on a machine separate from the gateway:
Step 1 Log into the unit as the root user. See Logging In as the Root User.
Step 2 To stop the unit, enter:
The unit components are stopped:
Restarting Gateways and Units
Complete the following steps to restart a Prime Performance Manager gateway:
Step 1 Log in as the root user or user enabled with ppm superuser. See Logging In as the Root User.
Step 2 To restart the gateway and unit (if installed), enter:
First, the gateway components are stopped:
If a unit is installed on the same server as the gateway, the unit components are stopped:
Depending on how quickly the gateway and unit can be shut down, you might see the following messages indicating additional time is needed to shut down the unit components:
Next, the gateway components are started:
If a unit is installed on the same machine, the unit components are started:
The gateway web component is started and web URL is displayed:
Note The ppm restart command restarts the gateway and automatically restarts the unit if it is installed on the same machine. This occurs regardless of whether you initiate the command from the gateway install directory (/opt/CSCOppm-gw/bin/) or the unit install directory /opt/CSCOppm-unit/bin/. If the gateway and unit are installed on the same machine and you want to restart only the gateway, enter ppm restart gateway. Similarly, if you want to restart only the unit, enter ppm restart unit.
Complete the following steps to restart a Prime Performance Manager unit installed on a machine separate from the gateway:
Step 1 Log into the unit server as the root user. See Logging In as the Root User.
Step 2 To restart the unit, enter:
The unit components are stopped:
Then the unit components are started:
Displaying Gateway and Unit Status
Use the ppm status command to view the status of a Prime Performance Manager gateways and units. Gateway and unit component status will be either running or not running. Should a component have a not running status, view the sgmConsoleLog.txt to determine the cause. sgmConsoleLog.txt is located in the /opt/CSCOppm-gw/logs/ or /opt/CSCOppm-unit/logs directories.
Complete the following steps to view the gateway and unit status:
Step 1 Log in as the root user or user enabled with ppm superuser. See Logging In as the Root User.
Step 2 To view the status of the gateway and unit, if the unit is installed on the same machine as the gateway, enter:
The gateway status is displayed, for example:
If a unit is installed on the same machine, the unit status is displayed, for example:
Complete the following steps to view the status of a unit installed on a machine separate from the gateway:
Step 1 Log into the unit server as the root or admin user. See Logging In as the Root User.
Step 2 To view the status of the unit, enter:
The unit status is displayed, for example:
Note The ppm status command provides the gateway and unit status if the unit is installed on the same machine. This occurs regardless of whether you initiate the command from the gateway install directory (/opt/CSCOppm-gw/bin/) or the unit install directory /opt/CSCOppm-unit/bin/. If the gateway and unit are installed on the same machine and you want to view only the gateway status, enter ppm status gateway. Similarly, if you want to view only the unit status, enter ppm status unit.
Displaying Gateway and Unit Software Versions
Complete the following steps to view the Prime Performance Manager software version installed on gateways and units:
Step 1 Log in as the root user or admin user. See Logging In as the Root User.
Step 2 To view the Prime Performance Manager version installed on the gateway and unit, if the unit is installed on the same machine as the gateway, enter:
The gateway version details are displayed, for example:
The gateway status is displayed, for example:
If the unit is installed on the same machine, the unit version details are displayed, for example:
To view the Prime Performance Manager version on a unit installed on a machine separate from the gateway:
Step 1 Log into the unit server as the root or admin user. See Logging In as the Root User.
Step 2 To view the Prime Performance Manager version installed on the unit, enter:
The unit Prime Performance Manager version is displayed, for example:
Note The ppm version command provides the Prime Performance Manager gateway and unit version if the unit is installed on the same machine. This occurs regardless of whether you initiate the command from the gateway install directory (/opt/CSCOppm-gw/bin/) or the unit install directory /opt/CSCOppm-unit/bin/. If the gateway and unit are installed on the same machine and you want to view only the Prime Performance Manager version installed on the gateway, enter ppm version gateway. Similarly, if you want to view only the Prime Performance Manager version installed on the unit status, enter ppm version unit.
Limiting Client Access to Servers
Following Prime Performance Manager installation, all client IP addresses can connect to the gateway. You can limit client access to the server by creating the ipaccess.conf file and entering the client IP addresses that want to give access to the gateway. Prime Performance Manager allows connections from only those clients and the local host.
If the file exists but is empty, Prime Performance Manager allows connections only from the local host. (Prime Performance Manager always allows connections from the local host.)
Complete the following steps to create the ipaccess.conf file and add the client IP addresses that you want to allow access to the gateway:
Step 1 Log into Prime Performance Manager server as the root user.
Step 2 Change to the bin directory:
Step 3 Create the ipaccess.conf file:
By default, the ipaccess.conf file is located in Prime Performance Manager /opt/CSCOppm-gw/etc installation directory. If you installed Prime Performance Manager in a different directory, then the default directory is located in that directory.
Step 4 Add the ipaccess.conf entries:
- Begin comment lines with a pound sign (#).
- Lines without a pound sign are Prime Performance Manager client IP addresses. Enter one address per line.
- Wildcards (*) are allowed, as are ranges (for example, 1-100). For example, if you enter the address *.*.*.*, all clients can connect to Prime Performance Manager server.
Step 5 After you create the ipaccess.conf file, you can use the full set of Prime Performance Manager ipaccess keywords to work with the file. The keywords are:
- clear—Remove all client IP addresses from the ipaccess.conf file and allow connections from any Prime Performance Manager client IP address.
- list—List all client IP addresses currently in the ipaccess.conf file. If no client IP addresses are listed (that is, the list is empty), connections from any Prime Performance Manager client IP address are allowed.
- rem—Remove the specified client IP address from the ipaccess.conf file.
- sample—Print out a sample ipaccess.conf file.
For more information, see ppm ipaccess.
Step 6 After ipaccess.conf entries are complete, you must restart the gateway for the changes to take effect. See Restarting Gateways and Units.