Installation
![]() |
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl <SANnav host> 443 Connection to <SANnav host> on port "443" is ok
STOR2RRD collects data from SANnav using the Northbound Streaming feature.
Northbound Streaming provides support to securely stream performance and flow metrics from the switch to an external Kafka cluster (the northbound server).
SANnav REST API documantation is available on https://support.broadcom.com/
Search for: "sannav rest api"
[root@xorux]# yum install python3 python3-pip python3-devel python3-requests gcc
[root@xorux]# rpm --import https://packages.confluent.io/rpm/7.1/archive.key [root@xorux]# cat > /etc/yum.repos.d/confluent.repo << EOF [Confluent] name=Confluent repository baseurl=https://packages.confluent.io/rpm/7.1 gpgcheck=1 gpgkey=https://packages.confluent.io/rpm/7.1/archive.key enabled=1 [Confluent-Clients] name=Confluent Clients repository baseurl=https://packages.confluent.io/clients/rpm/centos/\$releasever/\$basearch gpgcheck=1 gpgkey=https://packages.confluent.io/clients/rpm/archive.key enabled=1 EOF
[root@xorux]# yum install librdkafka-devel
[lpar2rrd@xorux]$ pip3 install --user kafkian
zypper install python3-pip python3-devel python3-requests zypper install librdkafka-develUbuntu / Debian
apt install python3-pip apt install python3-requests apt install python3-dev apt install librdkafka-dev
[root@xorux]# dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo [root@xorux]# dnf install docker-ce docker-ce-cli containerd.io java-1.8.0-openjdk-headless.x86_64 jq.x86_64 curl.x86_64 [root@xorux]# systemctl start docker [root@xorux]# systemctl enable docker [root@xorux]# curl -L "https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose [root@xorux]# chmod +x /usr/local/bin/docker-compose [root@xorux]# ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
This procedure will create /root/kafkanb-cfg direcotry and populate it with necessary configuration files and support scripts.
You may be asked to enter the path to STOR2RRD directory.
You will have to confirm or enter the local host's IP address.
locate STOR2RRD installation directory
usually /home/stor2rrd/stor2rrd
[root@xorux]# cd /home/stor2rrd/stor2rrd [root@xorux]# ./bin/kafka_configure.sh
This procedure will create /root/kafkanb-run direcotry, pull required images from Docker Hub and start Kafka NB containers.
[root@xorux]# /root/kafkanb-cfg/kafka_deploy.sh
This procedure will register Kafks NB server in SANnav.
Requires SANnav IP addres and administrator credentials.
It may also require confirmation of the local host's IP address.
[root@xorux]# /root/kafkanb-cfg/kafka_register.sh
Create SANnav user for STOR2RRD
Navigate to User Management
SANnav ➡ Security ➡ SANnav User Management
Create new user with Operator role
Add storage to configuration in STOR2RRD GUI
Settings icon ➡ SAN ➡ New ➡ Vendor:device ➡ SANnav
REST API: SANnav IP address, port and STOR2RRD user credentials
KAFKA: Kafka NB server IP address and ports - this should be the IP address of your STOR2RRD host
![]() |
$ crontab -l | grep load_sannavperf.sh $Add an entry if it doesn't exist
$ crontab -e # SANnav 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_sannavperf.sh > /home/stor2rrd/stor2rrd/logs/load_sannavperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh