Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Upgrading from Pre-4.3 NorthStar with Analytics

date_range 18-Aug-23

The special upgrade procedure described in this topic is only necessary if you use NorthStar Analytics and you are upgrading NorthStar from a version of NorthStar earlier than Release 4.3. In all other cases, you can install NorthStar using the procedure described in Installing the NorthStar Controller.

This procedure involves uninstalling and reinstalling NorthStar analytics in addition to upgrading the NorthStar application, and is a little different depending on whether you have analytics installed on the same server as the NorthStar application or not.

Export Existing Data from the NorthStar Application Server (Recommended)

This procedure involves running a utility called es_export_import_util.py on the NorthStar application server to export and save your existing data prior to upgrade.

The utility exports data to a file called exportdata.tar.Z in the /opt/northstar/northstar_bundle_x.x.x/db_migration directory. Ensure that this directory has available space equivalent to at least 10% the size of your Elasticsearch database. For example, a 10GB Elasticsearch database would require 1GB in the /opt/northstar/northstar_bundle_x.x.x/db_migration directory. When you begin this procedure, the script will tell you how much memory is required and give you the option to stop the procedure if you do not have enough space to continue.

The amount of time required for the export utility to complete depends on the number of export days and Elasticsearch cache memory/CPU cores you have. You can use the utility’s -l option to reduce the number of export days.

You can use the following command to see the utility’s full set of supported export options:

content_copy zoom_out_map
es_export_import_util.py --help

To export and save your existing data, use the following procedure:

  1. Log in to the NorthStar application server.
  2. Navigate to the db_migration directory:
    content_copy zoom_out_map
    [root db_migration]# cd /opt/northstar/northstar_bundle_x.x.x/db_migration
  3. Launch the export utility and type yes to continue if you agree with the setup information provided. An example follows:
    content_copy zoom_out_map
    [root db_migration]# ./es_export_import_util.py -exp
    
    Warning 1: Time taken for export util depends on number of export days and ES cache memory/CPU cores. Reduce the considered number of days using -l option.
    Warning 2: Total indexes=6 and total DB indexes size=599MB. Average DB size of an index=99MB and max export DB limit=50000MB.
    Considering export data for last 6 days, requires disk space of 59.4MB under current dir
    
    Please enter 'yes' or 'no' to proceed:yes
    Starting ES data export
    Logs stored at /opt/northstar/logs/es_export_import.log
    Export required for datatype=jvision-lsp for the last 6 days
    Export required for datatype=jvision-ifd for the last 6 days
    Export required for datatype=jvision-ifl for the last 6 days
    Export required for datatype=demands for the last 6 days
    Export required for datatype=as_demands for the last 6 days
    Export required for datatype=rpm-ifl for the last 6 days
    Export required for datatype=jnx-cos for the last 6 days
    Starting 2 EsExportWorker process with total ES query count in queue=144
    Starting process EsExportWorker-0
    Starting process EsExportWorker-1
    Total rollups data added=13187( jvision-lsp=743 jvision-ifd=8136 jvision-ifl=3230 demands=0 as_demands=0 rpm-ifl=1079 jnx-cos=0) EsExportWorkers-1 completed in minutes=1
    Total rollups data added=13378( jvision-lsp=637 jvision-ifd=8424 jvision-ifl=3325 demands=0 as_demands=0 rpm-ifl=993 jnx-cos=0) EsExportWorkers-0 completed in minutes=1
    All EsExportWorker processes completed.
    Rollup data exported to ./exportdata.tar.gz . Total time taken in minutes=1
    

Upgrade Procedure with NorthStar Application and NorthStar Analytics on the Same Server

Use the following procedure:

  1. Download the NorthStar software and untar the NorthStar_Bundle. See Installing the NorthStar Controller.
  2. Navigate to the NorthStar directory:
    content_copy zoom_out_map
    [root]# cd /opt/northstar/northstar_bundle_x.x.x
  3. Uninstall analytics:
    content_copy zoom_out_map
    [root]# ./uninstall-analytics.sh
  4. Upgrade the NorthStar application:
    content_copy zoom_out_map
    [root]# ./install.sh
  5. Reinstall NorthStar analytics:
    content_copy zoom_out_map
    [root]# ./install-analytics.sh

Upgrade Procedure with NorthStar Application and NorthStar Analytics on Separate Servers

Use the following procedure:

  1. Download the NorthStar software and untar the NorthStar_Bundle. See Installing the NorthStar Controller.
  2. On the NorthStar application server, navigate to the NorthStar directory and upgrade the NorthStar application:
    content_copy zoom_out_map
    [root]# cd /opt/northstar/northstar_bundle_x.x.x
    [root]# ./install.sh
  3. On each analytics server, uninstall and reinstall NorthStar analytics:
    content_copy zoom_out_map
    [root]# ./uninstall-analytics.sh
    (wait for completion)
    [root]# ./install-analytics.sh
  4. On the NorthStar application server, prepare and redeploy HA analytics data collector settings:
    content_copy zoom_out_map
    [root]# /opt/northstar/utils/net_setup.py

    Select G (Analytics Data Collector Setting) from the main menu, and then B (Prepare and Deploy HA Analytics Data Collector Setting) from the Analytics Data Collector Configuration Settings menu. See Installing Data Collectors for Analytics for more information.

  5. On the NorthStar application server, ensure that analytics data collector connectivity is UP. From the net_setup.py utility main menu, select G (Analytics Data Collector Setting), and then select 9 (Test Analytics Data Collector Connectivity) from the Analytics Data Collector Configuration Settings menu.

Update the Netflow Aggregation Setting

The netflowd process analyzes traffic from the router and displays it in the Demands tab in the network information table. By default, Netflow aggregates traffic by PE, but for some applications (such as EPE), you would want the traffic aggregated by prefix. The Netflow aggregate by prefix setting controls how traffic is aggregated. If the parameter is enabled, Netflow aggregates all traffic from a specific ingress PE router to a specific destination (prefix) within the defined period of time.

Between NorthStar Controller Releases 4.2.0 and 4.3.0, the possible values for the Netflow aggregate_by_prefix parameter changed. If you are upgrading from Release 4.2.0 or earlier, you must modify the setting to reflect a valid value for your post-4.2.0 release. See Table 1

Table 1: Netflow Aggregate by Prefix Values by NorthStar Release

NorthStar Releases Earlier than 4.2.0

NorthStar Releases 4.3.0 and Later

Netflow aggregate by prefix possible values

  • 0 = aggregation by prefix is disabled (this is the default)

  • 1 = aggregation by prefix is enabled

Note:

NorthStar Releases 4.2.0 and earlier: netflow_aggregate_by_prefix parameter maintained in the northstar.cfg file.

  • always = aggregation by prefix is enabled

  • disable = aggregation by prefix is disabled

  • unknown-destination = aggregation by prefix is enabled even though the flow is missing a BGP next hop (BGP_NH) or has a BGP_NH of 0.0.0.0

Note:

NorthStar Releases 4.3.0 through 6.0.0: modify the netflow_aggregate_by_prefix parameter in the /opt/northstar/data/northstar.cfg file.

NorthStar Releases 6.1.0 and later: modify the aggregate-by-prefix setting using the NorthStar CLI set northstar analytics netflowd aggregate-by-prefix command.

Import Existing Data (Recommended)

In this procedure, you run the es_export_import_util.py utility again on the NorthStar application server to import the data you previously exported and saved.

  1. Log in to the NorthStar application server.
  2. Navigate to the db_migration directory:
    content_copy zoom_out_map
    [root db_migration]# cd /opt/northstar/northstar_bundle_x.x.x/db_migration
  3. Launch the import utility:
    content_copy zoom_out_map
    [root db_migration]# ./es_export_import_util.py -imp
footer-navigation