cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fw_mon
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 1 of 2

load license file error

Jump to solution

can somebody confirm that the example code about loading a license from the rest api documentation is actually working?

ls -l license.xml
-rw------- 1 root root 1211 Apr 19 16:55 license.xml

curl -i -b cookies.txt -H "Content-Type: text/plain; charset=UTF-8" -X POST "$REST/appliances/564XXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/action/license" --data-binary @license.xml
HTTP/1.1 100 Continue

HTTP/1.1 404 Not Found
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-MWG-REST-VERSION: 1
X-MWG-UI-VERSION: 10.1.1
Content-Type: text/plain
Transfer-Encoding: chunked
Date: Mon, 19 Apr 2021 16:58:12 GMT
Connection: close
Server: mwg-ui

null for uri: http://localhost:4711/Konfigurator/REST/appliances/564XXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/action/license

 any other action (restart, shutdown, flushcache etc.) works.

 

1 Solution

Accepted Solutions
asabban
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 2

Re: load license file error

Jump to solution

Hi,

I don't think the command is correct. The license is (since a few versions) no longer appliance specific but cluster wide. Please try:

 curl -i -b cookies.txt --data-binary @licensefile 
 		-X POST "$REST/appliances/license" 
 		-H "Content-Type: text/plain; charset=UTF-8"

Best,
Andre 

View solution in original post

1 Reply
asabban
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 2

Re: load license file error

Jump to solution

Hi,

I don't think the command is correct. The license is (since a few versions) no longer appliance specific but cluster wide. Please try:

 curl -i -b cookies.txt --data-binary @licensefile 
 		-X POST "$REST/appliances/license" 
 		-H "Content-Type: text/plain; charset=UTF-8"

Best,
Andre 

View solution in original post

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community