Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2018 04:37 AM
Hello,
is there a way to get the current licenses via script or REST-API?
I need the info how many End-Systems for NAC are licensed to proceed in another script.
If I can get the license string it's easy do find out that value.
Or is there another place where I can find the information how many end systems for NAC are licensed?
Best regards
Stephan
is there a way to get the current licenses via script or REST-API?
I need the info how many End-Systems for NAC are licensed to proceed in another script.
If I can get the license string it's easy do find out that value.
Or is there another place where I can find the information how many end systems for NAC are licensed?
Best regards
Stephan
Regards
Stephan
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-22-2021 02:33 PM
As I have now finally learned, there is unfortunately no way to query the licenses via the API.
Regards
Stephan
15 REPLIES 15
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2018 08:53 AM
Hello Suresh,
here a little Python script working for me:
Best regards
Stephan
import re import sys #open license file try: f = open('/usr/local/Extreme_Networks/NetSight/appdata/license/NacEnterprise.lic', 'r') except IOError: print "Can't open license file" sys.exit(0) #sum single licenses licenses = 0 for x in f: reg = re.search(r"IA-ES-([13]|12)K", x) lic = reg.group(1) lic = int(lic) * 1000 licenses = licenses + lic #print sum of single licenses print licenses
here a little Python script working for me:
Best regards
Stephan
import re import sys #open license file try: f = open('/usr/local/Extreme_Networks/NetSight/appdata/license/NacEnterprise.lic', 'r') except IOError: print "Can't open license file" sys.exit(0) #sum single licenses licenses = 0 for x in f: reg = re.search(r"IA-ES-([13]|12)K", x) lic = reg.group(1) lic = int(lic) * 1000 licenses = licenses + lic #print sum of single licenses print licenses
Regards
Stephan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2018 07:53 AM
Hi Stephan,
Sure ,
Please share us the status once you able to get the info by using Python.
Thanks,
Suresh.B
Sure ,
Please share us the status once you able to get the info by using Python.
Thanks,
Suresh.B
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2018 07:14 AM
Thank you very much Suresh,
that's what I need. I had forgotten that there is this file.
I have no python script up to now, because I needed first the info how I can get the license .
that's what I need. I had forgotten that there is this file.
I have no python script up to now, because I needed first the info how I can get the license .
Regards
Stephan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2018 07:14 AM
Hi Stephan,
Could you share your python script which will look for license file ? if you have one already.
The license file is located in below location but we have to use the pointer to locate below file.
root@xmc52.extremenetworks.com:/usr/local/Extreme_Networks/NetSight/appdata/license$ ls
NetSightEval.lic
Thanks,
Suresh.B
Could you share your python script which will look for license file ? if you have one already.
The license file is located in below location but we have to use the pointer to locate below file.
root@xmc52.extremenetworks.com:/usr/local/Extreme_Networks/NetSight/appdata/license$ ls
NetSightEval.lic
Thanks,
Suresh.B
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2018 04:56 AM
Hello Suresh,
thank you for you fast replay. But I need the info in an script/python program, because of I will process the license information in an script.
Best regards
Stephan
thank you for you fast replay. But I need the info in an script/python program, because of I will process the license information in an script.
Best regards
Stephan
Regards
Stephan
