<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Get Network Inventory IPs with Script in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34574#M3857</link>
    <description>Yeah, I'm looking for the switches.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, I'll give this a shot.</description>
    <pubDate>Thu, 28 Jun 2018 21:12:00 GMT</pubDate>
    <dc:creator>Terren_Crider</dc:creator>
    <dc:date>2018-06-28T21:12:00Z</dc:date>
    <item>
      <title>Get Network Inventory IPs with Script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34572#M3855</link>
      <description>I'm working on a Python script to help with some networking tasks.  Is there a way that I can get the IPs of my network devices from EMC programatically?  Rather than hardcoding the IPs in the script, I'd like to use EMC as the authoritative source for that information.  It would be even better if I could pull other attributes like OS and Version, as well.&lt;BR /&gt;
&lt;BR /&gt;
I've been looking at the API, but I haven't seen a way to use that method to pull the information.</description>
      <pubDate>Thu, 28 Jun 2018 20:41:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34572#M3855</guid>
      <dc:creator>Terren_Crider</dc:creator>
      <dc:date>2018-06-28T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Network Inventory IPs with Script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34573#M3856</link>
      <description>Hello Terren,&lt;BR /&gt;
&lt;BR /&gt;
are you looking for network devices like switches or end systems (=clients)?&lt;BR /&gt;
&lt;BR /&gt;
All switch data you will receive with:&lt;BR /&gt;
&lt;BR /&gt;
&lt;OL&gt; 
&lt;LI&gt;Get all devices (and there ips)  with this command:  "&lt;A href="https://yournetsightip:8443/axis/services/NetSightDeviceWebService/getAllDevices" target="_blank" rel="nofollow noreferrer noopener"&gt;https://YourNetSightIP:8443/axis/services/NetSightDeviceWebService/getAllDevices&lt;/A&gt;". Take all ips form the answer to this request and put the ips in the command here: 
&lt;/LI&gt;&lt;LI&gt;"&lt;A href="https://yournetsightip:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=" target="_blank" rel="nofollow noreferrer noopener"&gt;https://YourNetSightIP:8443/axis/services/InventoryWebService/getDeviceProperties?ipAddress=&lt;/A&gt;IpFromStepOne" in a loop of you script.&lt;/LI&gt;&lt;/OL&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jun 2018 21:12:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34573#M3856</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-06-28T21:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Network Inventory IPs with Script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34574#M3857</link>
      <description>Yeah, I'm looking for the switches.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, I'll give this a shot.</description>
      <pubDate>Thu, 28 Jun 2018 21:12:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34574#M3857</guid>
      <dc:creator>Terren_Crider</dc:creator>
      <dc:date>2018-06-28T21:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Network Inventory IPs with Script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34575#M3858</link>
      <description>Hi Terren,&lt;BR /&gt;
&lt;BR /&gt;
The APIs are defined in the wsdl file.&lt;BR /&gt;
&lt;BR /&gt;
Here are several lines of python code for your reference:&lt;BR /&gt;
&lt;BR /&gt;
import deep&lt;BR /&gt;
def service (self, xmc_ip):    wsdl_url = 'https://' + xmc_ip +':8443/axis/services/NetSightDeviceWebService?wsdl'&lt;BR /&gt;
    client = zeep.CachingClient (wsdl=wsdl_url, transport=self.transport, strict=False)&lt;BR /&gt;
    return client.bind ('NetSightDeviceWebService', "NetSightDeviceWebServiceSOAP11port_https1") &lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jun 2018 06:08:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34575#M3858</guid>
      <dc:creator>Gates_Zeng</dc:creator>
      <dc:date>2018-06-29T06:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Network Inventory IPs with Script</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34576#M3859</link>
      <description>Or if you don't like soap , you can use REST calls like:&lt;BR /&gt;
&lt;BR /&gt;
import requestsuser = 'your user'&lt;BR /&gt;
pw = 'your password'&lt;BR /&gt;
xmcip = 'your xmcip:8443'&lt;BR /&gt;
request = '/axis/services/NetSightDeviceWebService/getAllDevices'&lt;BR /&gt;
r = requests.get('https://' + user + ':' + pw + '@' + xmcip + request, verify = False)</description>
      <pubDate>Mon, 02 Jul 2018 00:59:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/get-network-inventory-ips-with-script/m-p/34576#M3859</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2018-07-02T00:59:00Z</dc:date>
    </item>
  </channel>
</rss>

