Deploying the NCP Package
Installation Steps:
- Extract the package 
tar -I pbzip2 -xf ncp-r1.5.0-en.tar.bz2- Change the directory and start the installer 
cd ncp-r1.5.0-en
sudo ./installer.sh- NCP supports SSL certificate integration - Select "y" if you want to integrate your own SSL certificate: - Would you like to install a custom domain SSL certificate? (If you select 'n', the installation will proceed with a self-signed certificate.) [y/n]: y → Proceeding with custom domain SSL certificate installation.. Enter the path to the private key file: ./certs/server.pem Enter the path to the certificate file: ./certs/server.crt.pem- **Replace the Private key & certificate path to the correct location 
- Select "n" if you wish to use a self-signed certificate included in the NCP package: 
 - Would you like to install a custom domain SSL certificate? (If you select 'n', the installation will proceed with a self-signed certificate.) [y/n]: n → Proceeding with self-signed certificates.
- Enable the Backup Feature - When prompted during the installation, - answer "y" to enable the DB backup feature. 
- answer "n" to skip the DB backup feature. 
 
- Select Backup Location - Local Backup: - When prompted, enter "local" as the backup location. 
- Specify the backup directory (by default, NCP creates a - ./backupdirectory):- Example: - Enter the backup directory: ./backup
 
 
- Remote Backup: - When prompted, enter "remote" as the backup location. 
- Provide the required remote details: - Remote Machine IP: e.g., - 10.0.0.1
- Remote Machine Username: e.g., - admin
- Remote Machine Password: (entered securely) 
- Remote Backup Directory: e.g., - ~/backups
 
 
 
- Configure Backup File Retention - The system defaults to storing 1 backup for both local and remote locations. 
- You can modify the number of backup files to retain during installation. The acceptable range is between 1 and 3. - Note: When you exceed the maximum number, the oldest backup will be automatically removed to accommodate the new backup. 
 
 
- Set the Backup Interval - Specify the backup interval in seconds at the prompt. 
- The default interval is 86400 seconds (equivalent to 1 day), but it can be adjusted to suit your needs (minimum value is 3600 seconds). 
 
 
- Enable the Backup Feature certificate-based authentication - Enable Authentication - When prompted during the installation, - answer "y" to enable Authentication. 
- answer "n" to skip Authentication. 
 
 
- Provide Certificate Files - If you chose "y", you’ll need to provide: - ca-cert.pem
- server-cert.pem
- server-key.pem
- client-cert.pem
- client-key.pem
 
 
- Auto-Discovery Certificates - Additional prompt for: - ca-cert-reg.pem(used for agent registration)- You may be asked to re-enter the same or new cert/key files. 
 
 
 
 - Would you like to enable certificate-based authentication between the Network Copilot controller and connected nodes? [y/n]: y Enter the path to the ca-cert.pem file: ./gnmi-certs/ca-cert.pem Enter the path to the server-cert.pem file: ./gnmi-certs/server-cert.pem Enter the path to the server-key.pem file: ./gnmi-certs/server-key.pem Enter the path to the client-cert.pem file: ./gnmi-certs/client-cert.pem Enter the path to the client-key.pem file: ./gnmi-certs/client-key.pem Proceeding with certificates for Agent Auto Registration Enter the path to the ca-cert-reg.pem file: ./gnmi-certs/ca-cert-reg.pem Enter the path to the server-cert.pem file: ./gnmi-certs/server-cert.pem Enter the path to the server-key.pem file: ./gnmi-certs/server-key.pem Enter the path to the client-cert.pem file: ./gnmi-certs/client-cert.pem Enter the path to the client-key.pem file: ./gnmi-certs/client-key.pem
- Provide self IP of the server for external services connectivity - Please provide the host IP address. This IP will be used by external services to connect to the Network Copilot. Enter the host IP address: 10.20.5.33 → Host IP saved to server_host_ip.txt
- Wait for the installation to complete 
aviz@ncp-llm01:~/ncp-r1.5.0-en$ sudo ./installer.sh
Starting Network Copilot Installer...
------------------------------------------------------------
Network Copilot is being installed for the first time.
Please review and select the appropriate options when prompted.
------------------------------------------------------------
Installing prerequisites...
Installing sshpass...
dpkg: warning: downgrading sshpass from 1.09-1 to 1.06-1
(Reading database ... 181005 files and directories currently installed.)
Preparing to unpack .../sshpass_1.06-1_amd64.deb ...
Unpacking sshpass (1.06-1) over (1.09-1) ...
Setting up sshpass (1.06-1) ...
Processing triggers for man-db (2.12.0-4build2) ...
→ Prerequisites installed.
Installing Network Copilot...
Would you like to install a custom domain SSL certificate?
(If you select 'n', the installation will proceed with a self-signed certificate.)
[y/n]: n
→ Proceeding with self-signed certificates.
Would you like to enable the database backup feature?
[y/n]: n
→ Database backup feature is disabled.
Please provide the host IP address.
This IP will be used by external services to connect to the Network Copilot.
Enter the host IP address: 10.4.5.33
→ Host IP saved to server_host_ip.txt
Setting up the environment and loading essential dockers...
2c26c8d2a4b8: Loading layer [==================================================>]  8.175MB/8.175MB
88e0800b9b6a: Loading layer [==================================================>]  4.373MB/4.373MB
a99be20c1782: Loading layer [==================================================>]  2.048kB/2.048kB
a6a8b3e27d8c: Loading layer [==================================================>]  65.55MB/65.55MB
<...>
Network Copilot Installation Completed Successfully!
--------------------------------------------------------
You can now access the Network Copilot UI at: https://<host-ip>
--------------------------------------------------------
aviz@ncp-llm01:~/ncp-r1.4.0-en$ - Verify the installation 
aviz@ncp-llm01:~/ncp-r1.4.0-en$ docker-compose ps -a
        Name                       Command                  State                                                                  Ports
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ncp-api                 gunicorn main:app -w 1 -k  ...   Up             0.0.0.0:9001->8000/tcp,:::9001->8000/tcp
ncp-broker              /etc/confluent/docker/run        Up             0.0.0.0:29092->29092/tcp,:::29092->29092/tcp, 0.0.0.0:9092->9092/tcp,:::9092->9092/tcp,
                                                                        0.0.0.0:9101->9101/tcp,:::9101->9101/tcp
ncp-collector-db        /docker-entrypoint.sh postgres   Up             0.0.0.0:5432->5432/tcp,:::5432->5432/tcp, 8008/tcp, 8081/tcp
ncp-config-collector    java -jar -XX:MaxGCPauseMi ...   Up             8094/tcp
ncp-connect             /etc/confluent/docker/run        Up (healthy)   0.0.0.0:8083->8083/tcp,:::8083->8083/tcp, 9092/tcp
ncp-db                  docker-entrypoint.sh postgres    Up             5432/tcp
ncp-flow-collector      ./goflow2 -transport=kafka ...   Up             0.0.0.0:2055->2055/udp,:::2055->2055/udp, 0.0.0.0:6343->6343/udp,:::6343->6343/udp, 0.0.0.0:8099->8080/tcp,:::8099->8080/tcp
ncp-knowledgebase       chroma run --host 0.0.0.0  ...   Up             8000/tcp
ncp-ksqldb              /usr/bin/docker/run              Up             0.0.0.0:8088->8088/tcp,:::8088->8088/tcp
ncp-llm                 /opt/nvidia/nvidia_entrypo ...   Up
ncp-schema-registry     /etc/confluent/docker/run        Up             0.0.0.0:8081->8081/tcp,:::8081->8081/tcp
ncp-snmp-collector      java -jar -XX:MaxGCPauseMi ...   Up             162/udp, 8093/tcp
ncp-streams-processor   java -jar /app/stream-proc ...   Up             8080/tcp
ncp-syslog-collector    /usr/local/bin/docker-entr ...   Up             5044/tcp, 0.0.0.0:514->514/udp,:::514->514/udp, 9600/tcp
ncp-ui                  docker-entrypoint.sh node  ...   Up             3002/tcp, 0.0.0.0:443->443/tcp,:::443->443/tcp
ncp-zookeeper           /etc/confluent/docker/run        Up             0.0.0.0:2181->2181/tcp,:::2181->2181/tcp, 2888/tcp, 3888/tcp
aviz@ncp-llm01:~/ncp-r1.4.0-en$Last updated
Was this helpful?
