#Adding ONTAP One license file via commandline?

1 messages · Page 1 of 1 (latest)

vale folio
#

Hi
We just had a head-swap of a faulty node, and we need to install the new ONTAP One license... I got the NLF-file but I only have access to the command-line...

Tried this method:
https://mysupport.netapp.com/site/article?lang=en&page=%2Fon-prem%2Fontap%2FOntap_OS%2FOS-KBs%2FInstall_NLF_License_via_ONTAP_CLI&type=howto

With no luck... the cluster does not pick up the new licenses...
Actually I was even unable to scp the license file to the system using the diag user which I think is because the access is restricted... but I managed to login via "systemshell" and then copy/paste file contens of the NLF file into the "lic_file" in the location the guide tells you to upload it to... but no dice.. 🙁
I have a suspecition that the "lic_file" only accepts the "old style" liceness and not the ONTAP One license file?
But how do you add the licenses with no web access to the cluster?

magic trellis
#

I do this
ssh to the node itself (the node mgmt, not the cluster)
do a node show -node local
To verify you are on the correct host

Security login unlock -user diag
Security login password -user diag
(Set password)

Set diag
Systemshell -node local
Vi /mroot/etc/lic_file
(insert the license file)
(Save file)
Exit (to cluster shell)
System license add -use-license-file true

Security login lock -user diag

#

Don’t forget to to cleanup all unused licenses

valid sapphire
magic trellis
#

My way doesn’t need scp 😁

vale folio
magic trellis
#

I do it frequently! It works

#

It was a complaint I had at the origin of ONE. I topically do a full reset during my installs I may not have access to the GUI. I found this technique allowed me to update the licenses without a GUI connection

#

Looks like to option was added in 9.13

vale folio
#

Strange... I just tried to create the lic_file on the other node, and as soon as I run the "license add -use-license-file true" it shows you the licenses added from the file... but absolutely no dice on the new node.. 🙁 and yes, checked the SN several times..

magic trellis
#

Never had it fail.
It must be at: /mroot/etc/lic_file
(local on the node the ONE file is for)
The "license add" must be run from the clustershell on the node.
If you have a four node cluster, you need to:

  1. Use the process above to create the /mroot/etc/lic_file on each node (systemshell -node xxx)
  2. Then: SSH to each node (ssh admin@node_mgmt) and run the "license add -use-license-file true"
#

(the prior post was from my phone. sorry)

vale folio
#

One little detail that you have to remember is to move the custer lif to the node that you want to apply the license... as soon as I did that, it worked 🙂 (it is actually mentioned in the KB above as a note...) but I had a remote session with NetApp support about this (4 guys in the call) and non of them knew this 😉 I just sad down and read the KB, nice and slowly... and noticed the "node".. 🙂

#

...so I guess we all learned something new today 😉

cosmic pivot
#

...or use the node mgmt LIFs 😉