Hi,
There is any way to activate XI license from server shell and not from the GUI?
active xi license from shell command
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: active xi license from shell command
Hi @elade,
That functionality doesn't exist int the API, and I can submit a feature request on your behalf if you'd like. However, the license keys are stored in the nagiosxi database, and you can query the db for view license keys/update values.
See this post: Get license Key from the command line
For a mysql/mariadb datatabase, run the following command to view the license:
To change the license key values, run the following command:
That functionality doesn't exist int the API, and I can submit a feature request on your behalf if you'd like. However, the license keys are stored in the nagiosxi database, and you can query the db for view license keys/update values.
See this post: Get license Key from the command line
For a mysql/mariadb datatabase, run the following command to view the license:
Code: Select all
echo "SELECT value FROM xi_options where name='license_key';" | mysql -u root -pnagiosxi nagiosxi
Code: Select all
echo "UPDATE xi_options SET value='###licensekey###' where name='license_key';" | mysql -u root -pnagiosxi nagiosxi
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: active xi license from shell command
Hi benjaminsmith,
I would like to add this as feature request.
You can close the topic.
I would like to add this as feature request.
You can close the topic.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: active xi license from shell command
Hi @elade,
Will do. Thanks for the input.I would like to add this as feature request.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: active xi license from shell command
Hi @elade,
Update. Turns out that if you're running a recent version of Nagios XI, you can do this from the command line from the following script:
Update. Turns out that if you're running a recent version of Nagios XI, you can do this from the command line from the following script:
Code: Select all
/usr/local/nagiosxi/tools/mod_license.php --help
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: active xi license from shell command
This mod is not appear in version 5.5.8 under /usr/local/nagiosxi/tools/
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: active xi license from shell command
That is correct, it was added in 5.6.3elade wrote:This mod is not appear in version 5.5.8 under /usr/local/nagiosxi/tools/