Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HP VAN install script for Ubuntu 12.04 - why doesn't this work?
#!/bin/bash
# Install script for HP VAN on Ubuntu 12.04
# Instructions from http://h20564.www2.hp.com/hpsc/doc/public/display?docId=c04495134
# Make sure to transfer over the controller zip first:
# Download from http://h17007.www1.hp.com/us/en/networking/solutions/technology/sdn/devcenter/index.aspx#.VS1WbBPF9L4
# https://h10145.www1.hp.com/downloads/SoftwareReleases.aspx?ProductNumber=J9863AAE&lang=&cc=&prodSeriesId=&SoftwareReleaseUId=10608&SerialNumber=&PurchaseDate=
# Older downloads (2.4.3:)
# https://h10145.www1.hp.com/downloads/DownloadSoftware.aspx?SoftwareReleaseUId=11506&ProductNumber=J9863AAE&lang=&cc=&prodSeriesId=&OrderNumber=&PurchaseDate=
# # Transfer over VAN_SDN_Controller_2.4.6_hp-van-sdn-ctlr-2.4.6-x64.zip:
# scp ~/Downloads/VAN_SDN_Controller_2.4.6_hp-van-sdn-ctlr-2.4.6-x64.zip precise:~/
# scp ~/Downloads/VAN_SDN_Controller_2.4.3_hp-van-sdn-ctlr-2.4.3-x64.zip precise:~/
# Give it lots of resources (8 GB RAM, 4 cores); apparently it may not start up w/o enough.
set -e
# Set version to use
VAN_VER=2.4.6
#VAN_VER=2.4.3
# To address “failed to Fetch” issues during apt-get update:
sudo rm -rf /var/lib/apt/lists/
sudo apt-get -y update
sudo apt-get install -y python-software-properties ubuntu-cloud-keyring
sudo add-apt-repository -y cloud-archive:icehouse
sudo apt-get -y update
# Workaround to update python for config_local_keystone script to work:
# See
# Suggestion to run ‘sudo apt-get update after adding icehouse repo”:
# http://h30499.www3.hp.com/t5/SDN-Discussions/Local-keystone-credential-script-fails-with-2-4-3-0595/td-p/6669102#.VS1JoxPF9L4
sudo apt-get upgrade
sudo apt-get install -y keystone
sudo apt-get install -y unzip
unzip VAN_SDN_Controller_${VAN_VER}_hp-van-sdn-ctlr-${VAN_VER}-x64.zip
sudo dpkg --unpack hp-sdn-ctl_${VAN_VER}.*_amd64.deb
sudo apt-get install -f -y
sudo dpkg -l hp-sdn-ctl | grep ii
sudo service sdnc start
echo "Waiting 60s for service to start."
sleep 60
sudo service sdnc status | grep running
# Proxy setup:
# Is this needed?
unset https_proxy http_proxy
sudo /opt/sdn/admin/config_local_keystone
echo "Checking for listening on port 8443":
netstat -nl | grep 8443
ip=`ifconfig eth0 | grep inet | grep -i mask | awk '{print $2}' | cut -b 6-`
echo "Completed install."
echo "Please go to https://${ip}:8443/sdn/ui/ to test."
echo "Sample errors cmd:"
echo " sudo cat /var/log/sdn/virgo/logs/log.log | grep -i except"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.