Uptime reports overview

General information

The Uptime reports display downtime in the HH:MM:SS format. The uptime percentage calculations use milliseconds along with the HH:MM:SS information displayed.

Uptime is calculated as follows:

Uptime %=( [Total Time-Downtime]/Total Time)*100

Where

Downtime is the time for which the SAP or service was down

Total Time is the time span defined in the Report Range field, considering any SAP or service creation and deletion events

If a SAP or service creation or deletion occurred within the report range, the total time would be adjusted accordingly.

For example, if the report range is 10:00:00 to 15:00:00 and there is a creation event at 11:00:00 and a deletion event at 12:00:00, the total time would be from 11:00:00 to 12:00:00.

Prerequisites

The following items need to be performed in the NFM-P for Uptime reports to be created:

Note: Customer Utilization Summary and Customer Uptime Summary reports may not complete if they are run on customers with more than 100 000 services.

Analytics maintenance window table

The file name of the custom Analytics maintenance window table in the auxiliary database is samdb.analytics_MaintenanceWindow_ct.

Table example

The following table shows an example of the format of the samdb.analytics_MaintenanceWindow_ct table.

Figure 14-6: Example of the samdb.analytics_MaintenanceWindow_ct table format
Example of the samdb.analytics_MaintenanceWindow_ct table format

The following notes apply about the table contents:

To insert data into the samdb.analytics_MaintenanceWindow_ct table

  1. Log in as the root user on the NFM-P host.

  2. Change to the script folder:

    [root@vnfmp-du-nfmp-22-11-anant-svr-db bin]# cd /opt/nsp/nms/bin

  3. Create the .csv file for node availability maintenance window data. For example:

    [root@vnfmp-du-nfmp-22-11-anant-svr-db bin]# cat NodeAvailability_Table.csv maintenanceType,affectedObject,fullnameAffectedObject,startTime,endTime,description node,135.238.236.169,network:135.238.236.169,1681104600000,1681111800000,Maintenance-1 node,135.238.236.182,network:135.238.236.182,1681129800000,1681138800000,Maintenance-2 service,N/A,svc-mgr:service-1,1681203600,1681210800,Maintenance-3

    Note: The epoch time must be in milliseconds.

  4. Execute the following to insert the data from the .cvs file into the samdb.analytics_MaintenanceWindow_ct table:

    [root@vnfmp-du-nfmp-22-11-anant-svr-db bin]# ./customData.bash --importData samdb.analytics_MaintenanceWindow_ct NodeAvailability_Table.csv

    where

    NodeAvailability_Table is the name of the .cvs file

  5. Enter a password for the auxiliary database.

    The data from the .csv file is imported into samdb.analytics_MaintenanceWindow_ct.

  6. Verify in samauxdb that the above entries are inserted:

    1. Log in as the root user on the auxiliary database server and switch to the /opt/vertica/bin/ directory.

    2. Type:

      ./vsql -U samauxdb -w NokiaNsp1

    3. Type:

      select * from samdb.analytics_MaintenanceWindow_ct;

      A table appears; For example:

      graphic