
3.
To activate the license, click the
Add
button.
The active license is displayed in the table, below the Install ID, and the
Add
button is no
longer available.
Figure 56 Active License Displayed on License screen
Activating a license using a script
As an alternative to using the controller UI to activate the license, you can use a post install
configuration script run locally on the controller. For information on other post install configuration
options using the script, see the
HPE VAN SDN Controller Installation Guide
chapter on post
install configuration.
The post install configuration Python script is run on the local controller machine. The script is
/opt/sdn/scripts/postinstall/config_sdn.py
. You can run it interactively or you can
use a configuration file to enter the inputs for activating the license. The default configuration file
is
/opt/sdn/scripts/ansible/config_sdn.conf
or you can create a custom configuration
file for use with the script.
To run the config_sdn.py script to activate the controller license:
1.
To use the script you must
ssh
to the controller system. For example,
(then enter the ssh password).
2.
You can run the script either interactively or with a configuration file as follows:
•
If you are running the script interactively without a configuration file, enter the option for
add license on the command line:
python config_sdn.py -L
. You will be prompted
to enter the license key.
•
If you are using the configuration file to enter inputs for the script, edit the
config_sdn.conf
file or create a custom configuration file. In the
[general]
section
enter the controller IP, user name and (optionally) password. If you don’t enter a
password in the configuration file, you will be prompted to enter the password when
you run the script. In the
[scripts]
section set addlicense=true. In the
[addlicense]
section enter the license key. Then run the script with the following command:
python config_sdn.py -f ../ansible/config_sdn.conf
(or whatever the
custom configuration file name is)
3.
Respond to any prompts as the script runs.
Managing licenses
Transferring licenses
You can transfer a license from one controller to another. To do so, you must first deactivate
all
licenses from the controller.
Managing licenses
93