Appendix B. Set Up External Repo

Complete the following procedure to set up an external repository (Repo).

Note: 1.) You need an unzip utility installed on the host to complete this procedure. 2.) You must know how to create a web server before you complete the following procedure.

  1. (Conditional) Complete this step if you have an external repo and you want to override it.
    • Case 1: You bootstrapped the host from an external repo and you want to upgrade using a local repo on the Admin Server.
      1. Create the /etc/netwitness/platform/repobase file.
        vi /etc/netwitness/platform/repobase
      2. Edit the repobase file so that the only information in the file is the following URL.
        https://nw-node-zero/nwrpmrepo
      3. Complete the instructions on how to run the upgrade using the upgrade-cli-client tool.
    • Case 2: You bootstrapped the host from local repo on the Admin server (NW Server host) and you want to use an external repo for the upgrade.
      1. Create the /etc/netwitness/platform/repobase file.
        vi /etc/netwitness/platform/repobase
      2. Edit the repobase file so that the only information in the file is the following URL.
        https://<webserver-ip>/<alias-for-repo>
      3. Complete the instructions on how to run the upgrade using the upgrade-cli-client tool.
        The instructions are in "Appendix A. Offline Method (No Connectivity to Live Services) - Command Line Interface" in the Upgrade Guide for NetWitness Platform. Go to the NetWitness All Versions Documents page and find NetWitness Platform guides to troubleshoot issues.
  2. Set up the external repo.
    1. Log in to the web server host.
    2. Create directory to host the NW repository (netwitness-12.1.0.0.zip), for example ziprepo under web-root of the web server. For example, /var/netwitness is the web-root, run the following command string.
      mkdir -p /var/netwitness/<your-zip-file-repo>
    3. Create the 12.1.0.0 directory under /var/netwitness/<your-zip-file-repo>.
      mkdir -p /var/netwitness/<your-zip-file-repo>/12.1.0.0

    4. Create the OS and RSA directories under /var/netwitness/<your-zip-file-repo>/12.1.0.0
      mkdir -p /var/netwitness/<your-zip-file-repo>/12.1.0.0/OS
      mkdir -p /var/netwitness/<your-zip-file-repo>/12.1.0.0/RSA

    5. Unzip the netwitness-12.1.0.0.zip file into the /var/netwitness/<your-zip-file-repo>/12.1.0.0 directory.
      unzip netwitness-12.1.0.0.zip -d /var/netwitness/<your-zip-file-repo>/12.1.0.0

      Unzipping netwitness-12.1.0.0.zip results in two zip files (OS-12.1.0.0.zip and RSA-12.1.0.0.zip)
      and some other files.

    6. Unzip the:

      OS-12.1.0.0.zip into the /var/netwitness/<your-zip-file-repo>/12.1.0.0/OS directory.
      unzip /var/netwitness/<your-zip-file-repo>/12.1.0.0/OS-12.1.0.0.zip -d /var/netwitness/<your-zip-file-repo>/12.1.0.0/OS

      The external url for the repo is http://<web server IP address>/<your-zip-file-repo>.

    7. Unzip the:
      RSA-12.1.0.0.zip into the /var/netwitness/<your-zip-file-repo>/12.1.0.0/RSA directory.
      unzip /var/netwitness/<your-zip-file-repo>/12.1.0.0/RSA-12.1.0.0.zip -d /var/netwitness/<your-zip-file-repo>/12.1.0.0/RSA

    8. (Conditional - For Azure) Follow these steps for Azure update.
    1. mkdir -p /var/netwitness/<your-zip-file-repo>/12.1.0.0/OS/other

    2. unzip nw-azure-12.1-extras.zip -d /var/netwitness/<your-zip-file-repo>/12.1.0.0/OS/other

    3. cd /var/netwitness/<your-zip-file-repo>/12.1.0.0/OS

    4. createrepo
    1. Use the http://<web server IP address>/<your-zip-file-repo> in response to Enter the base URL of the external update repositories prompt from NW 12.1.0.0 Setup program (nwsetup-tui) prompt.