Header Only - DO NOT REMOVE - Extreme Networks

Export All Serials XMC


Userlevel 2
Is there a way I can get a csv of all the devices I have in XMC?

When I use the Export to CSV button in the devices tab it does not show the serials for all devices in a stack or all blades in a chassis.

17 replies

I still use the legacy inventory manager/ capacity planning to pull this type of inventory. I am not aware of them importing it to the webclient.
Userlevel 2
David Coglianese wrote:

I still use the legacy inventory manager/ capacity planning to pull this type of inventory. I am not aware of them importing it to the webclient.

Was inventory manager not included in version 8? I don't seem to have it.
David Coglianese wrote:

I still use the legacy inventory manager/ capacity planning to pull this type of inventory. I am not aware of them importing it to the webclient.

I'm not sure. It's not an option under devices/legacy?
Userlevel 7
David Coglianese wrote:

I still use the legacy inventory manager/ capacity planning to pull this type of inventory. I am not aware of them importing it to the webclient.

The last page of the release notes has a matrix....

https://documentation.extremenetworks.com/release_notes/NetSight/9035078-09_ExtremeManagementCenter_...

David Coglianese wrote:

I still use the legacy inventory manager/ capacity planning to pull this type of inventory. I am not aware of them importing it to the webclient.

I was on lunch and replied from my phone.

That was a nice feature that I recently used to clear up some registration issues for a customer.

Are you aware if they migrated the functionality? Or is it just gone?
Userlevel 5
You can try using the Asset Discovery Tool

https://gtacknowledge.extremenetworks.com/articles/How_To/Obtain-a-List-of-Serial-Numbers-IP-Address...
Userlevel 5
Hello Terren,

if you are a little bit familiar with scripting there is a easy way via the REST-API.
You have to use two steps (you can try both steps in your browser)

    Get all devices (and there ips) with this command: "https://YourNetSightIP:8443/axis/services/NetSightDeviceWebService/getAllDevices". Take all ips form the answer to this request and put the ips in the command here: "https://YourNetSightIP:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=IpFromStepOne" in a loop of you script.
=> Now you have all you need 😉

If you use the both calls in you script you can add you credentials to the string. If you use the browser you are requested to fill in you creds.

Have fun.

Best regards
Stephan
Userlevel 2
SH wrote:

Hello Terren,

if you are a little bit familiar with scripting there is a easy way via the REST-API.
You have to use two steps (you can try both steps in your browser)

    Get all devices (and there ips) with this command: "https://YourNetSightIP:8443/axis/services/NetSightDeviceWebService/getAllDevices". Take all ips form the answer to this request and put the ips in the command here: "https://YourNetSightIP:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=IpFromStepOne" in a loop of you script.
=> Now you have all you need 😉

If you use the both calls in you script you can add you credentials to the string. If you use the browser you are requested to fill in you creds.

Have fun.

Best regards
Stephan

Hi Stephan:
Were is the documentation for the REST API? I just can't seem to find it anywhere and I need to be able to find a switch based on its MAC.

I would also like to be able to launch an EMC script from an external script so hopefully the API is quite extensive and will support that.

Tahnks,

Ed.
Userlevel 5
SH wrote:

Hello Terren,

if you are a little bit familiar with scripting there is a easy way via the REST-API.
You have to use two steps (you can try both steps in your browser)

    Get all devices (and there ips) with this command: "https://YourNetSightIP:8443/axis/services/NetSightDeviceWebService/getAllDevices". Take all ips form the answer to this request and put the ips in the command here: "https://YourNetSightIP:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=IpFromStepOne" in a loop of you script.
=> Now you have all you need 😉

If you use the both calls in you script you can add you credentials to the string. If you use the browser you are requested to fill in you creds.

Have fun.

Best regards
Stephan

Hello Ed,

here is a link to the REST API documentation (but this document is quite old!):

https://www.extremenetworks.com/wp-content/uploads/2015/05/OneFabric_Connect_API_Reference_Guide.pdf

If you need the most up to date (and complete) information go to you XMC (EMC) and call:

https://EMC:8443/axis/services/NetSightDeviceWebService?wsdl

For informations according the other subsystems (NAC...) change the "NetSightDeviceWebService" in the previous link. More informations you will find in the PDF.

In my opinion there is no way to start a script on EMC via the API.

Best regards
Stephan
Userlevel 2
SH wrote:

Hello Terren,

if you are a little bit familiar with scripting there is a easy way via the REST-API.
You have to use two steps (you can try both steps in your browser)

    Get all devices (and there ips) with this command: "https://YourNetSightIP:8443/axis/services/NetSightDeviceWebService/getAllDevices". Take all ips form the answer to this request and put the ips in the command here: "https://YourNetSightIP:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=IpFromStepOne" in a loop of you script.
=> Now you have all you need 😉

If you use the both calls in you script you can add you credentials to the string. If you use the browser you are requested to fill in you creds.

Have fun.

Best regards
Stephan

Stephan:

You are a gentleman and a scholar. This is great.

Thanks,

Ed.
Userlevel 5
SH wrote:

Hello Terren,

if you are a little bit familiar with scripting there is a easy way via the REST-API.
You have to use two steps (you can try both steps in your browser)

    Get all devices (and there ips) with this command: "https://YourNetSightIP:8443/axis/services/NetSightDeviceWebService/getAllDevices". Take all ips form the answer to this request and put the ips in the command here: "https://YourNetSightIP:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=IpFromStepOne" in a loop of you script.
=> Now you have all you need 😉

If you use the both calls in you script you can add you credentials to the string. If you use the browser you are requested to fill in you creds.

Have fun.

Best regards
Stephan

Hey Ed,

I have an idea.

To start your EMC script through an external skript, you could send a syslog message to EMC from your external script. Then you listen with the alarm manager on the syslog entry and start your script in the EMC via alarm manager.

Best regards
Stephan
Userlevel 2
SH wrote:

Hello Terren,

if you are a little bit familiar with scripting there is a easy way via the REST-API.
You have to use two steps (you can try both steps in your browser)

    Get all devices (and there ips) with this command: "https://YourNetSightIP:8443/axis/services/NetSightDeviceWebService/getAllDevices". Take all ips form the answer to this request and put the ips in the command here: "https://YourNetSightIP:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=IpFromStepOne" in a loop of you script.
=> Now you have all you need 😉

If you use the both calls in you script you can add you credentials to the string. If you use the browser you are requested to fill in you creds.

Have fun.

Best regards
Stephan

That is a great idea Stephan and entirely appropriate. We have Aerohive Access Points that are going "dark" on us. I have to cycle POE on the switch port to bring them back to life. We have 14,000 of them so it's not suitable for ongoing manual intervention. I can find them from their management system using a REST API along with LLDP data giving the BASE MAC and port of the Extreme switch. I will be able to use your API to get a switch IP address and kick off an event that takes the data and runs the script. Good thinking man.

Cheers,

Ed.
Userlevel 5
SH wrote:

Hello Terren,

if you are a little bit familiar with scripting there is a easy way via the REST-API.
You have to use two steps (you can try both steps in your browser)

    Get all devices (and there ips) with this command: "https://YourNetSightIP:8443/axis/services/NetSightDeviceWebService/getAllDevices". Take all ips form the answer to this request and put the ips in the command here: "https://YourNetSightIP:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=IpFromStepOne" in a loop of you script.
=> Now you have all you need 😉

If you use the both calls in you script you can add you credentials to the string. If you use the browser you are requested to fill in you creds.

Have fun.

Best regards
Stephan

Glad, that i could help you.

Stephan
Userlevel 6
Hello,

In Extreme Management Center click on Reports --> PDF Reports

There should be an "Inventory Report" under "Inventory Manager"

Let me know if this gets you what you need.

Thanks
-Ryan
Userlevel 2
Yacobucci, Ryan wrote:

Hello,

In Extreme Management Center click on Reports --> PDF Reports

There should be an "Inventory Report" under "Inventory Manager"

Let me know if this gets you what you need.

Thanks
-Ryan

That report doesn't show the serials of all devices in a stack or the blades in a chassis.

It more or less just outputs the devices screen.
Userlevel 5
Yacobucci, Ryan wrote:

Hello,

In Extreme Management Center click on Reports --> PDF Reports

There should be an "Inventory Report" under "Inventory Manager"

Let me know if this gets you what you need.

Thanks
-Ryan

Hello Terren,

try the REST-API in my opinion you will find all necessary infos.

Best regards
Stephan
Userlevel 2
Admittedly I haven't tried the REST API or the Asset Discovery Tool (both of which I will when I get a chance), but I was pointed the right way by TAC and my account rep.

Network > Devices > Use the drop-down toward the left to select "by Device Type" > Use the three-bar menu > Configuration/Firmware > Register/Export Serial Numbers...

This gives the full printout of all devices, blades, modules with serials. Previously, I'd tried that with the drop-down menu on "by Location" which did not give the full list.

Reply