<?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: Python run script for specific devices in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62450#M7658</link>
    <description>&lt;P&gt;here is your query:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{&lt;BR /&gt;  network {&lt;BR /&gt;    device(ip: "192.168.130.1") {&lt;BR /&gt;      deviceDisplayFamily&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;here is how response look like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{&lt;BR /&gt;  "data": {&lt;BR /&gt;    "network": {&lt;BR /&gt;      "device": {&lt;BR /&gt;        "deviceDisplayFamily": "Summit Series"&lt;BR /&gt;      }&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;check the similar request &lt;A href="https://extreme.connectedcommunity.org/communities/community-home/digestviewer/view-question?ContributedContentKey=69499af4-205a-46fc-9cfc-b1ff7793be30&amp;amp;CommunityKey=d4b57428-7c7e-4bce-886a-356352ffa2c0&amp;amp;tab=digestviewer"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2019 10:25:12 GMT</pubDate>
    <dc:creator>Zdeněk_Pala</dc:creator>
    <dc:date>2019-11-01T10:25:12Z</dc:date>
    <item>
      <title>Python run script for specific devices</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62449#M7657</link>
      <description>&lt;P&gt;I was playing around with python to pull the Alarm Database from the VSPs and send it per email. So far good, but I don’t want to choose the devices where to run the workflow but to handle that in the script. I know when removing the device variable, XMC does not ask to choose a device. I was trying do achieve something with emc_vars[“family”], but had no success. Anybody a hint for that?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 17:03:34 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62449#M7657</guid>
      <dc:creator>Dan15</dc:creator>
      <dc:date>2019-10-31T17:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python run script for specific devices</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62450#M7658</link>
      <description>&lt;P&gt;here is your query:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{&lt;BR /&gt;  network {&lt;BR /&gt;    device(ip: "192.168.130.1") {&lt;BR /&gt;      deviceDisplayFamily&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;here is how response look like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{&lt;BR /&gt;  "data": {&lt;BR /&gt;    "network": {&lt;BR /&gt;      "device": {&lt;BR /&gt;        "deviceDisplayFamily": "Summit Series"&lt;BR /&gt;      }&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;check the similar request &lt;A href="https://extreme.connectedcommunity.org/communities/community-home/digestviewer/view-question?ContributedContentKey=69499af4-205a-46fc-9cfc-b1ff7793be30&amp;amp;CommunityKey=d4b57428-7c7e-4bce-886a-356352ffa2c0&amp;amp;tab=digestviewer"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 10:25:12 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62450#M7658</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2019-11-01T10:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python run script for specific devices</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62451#M7659</link>
      <description>&lt;P&gt;Thanks for your example, I’m trying the opposite to get the IP’s from all VSP Series devices. I found the&amp;nbsp;&lt;A&gt;https://&amp;lt;xmc server&amp;gt;:8443/nbi/graphiql/index.html&lt;/A&gt;&amp;nbsp; which is very helpful, but I’m still not able to create the right query.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 16:22:27 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62451#M7659</guid>
      <dc:creator>Dan15</dc:creator>
      <dc:date>2019-11-01T16:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python run script for specific devices</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62452#M7660</link>
      <description>&lt;P&gt;There is no such query = “give me all VSP devices”.&lt;/P&gt;&lt;P&gt;but you can ask for all devices IP+family and process the answer in the loop.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 21:46:11 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62452#M7660</guid>
      <dc:creator>Zdeněk_Pala</dc:creator>
      <dc:date>2019-11-01T21:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python run script for specific devices</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62453#M7661</link>
      <description>&lt;P&gt;If you need sample code feel free to have a look at&amp;nbsp;&lt;A href="https://gitlab.com/bell-computer-netzwerke/xmc-nbi-clients/blob/master/Python/DeviceLister/DeviceLister.py" target="_blank" rel="nofollow noreferrer noopener"&gt;https://gitlab.com/bell-computer-netzwerke/xmc-nbi-clients/blob/master/Python/DeviceLister/DeviceLister.py&lt;/A&gt;&amp;nbsp;or the fork at&amp;nbsp;&lt;A href="https://github.com/rbrt-weiler/xmc-nbi-clients/blob/master/Python/DeviceLister/DeviceLister.py" target="_blank" rel="nofollow noreferrer noopener"&gt;https://github.com/rbrt-weiler/xmc-nbi-clients/blob/master/Python/DeviceLister/DeviceLister.py&lt;/A&gt;&amp;nbsp;- this is a simple script that connects to the NBI, pulls a list of all devices and prints them to the CLI along with up/down information. The query that is included in the script should also suffice for looping over all VSP devices by using the device family for the loop.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 19:54:20 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/python-run-script-for-specific-devices/m-p/62453#M7661</guid>
      <dc:creator>rbrt</dc:creator>
      <dc:date>2019-11-07T19:54:20Z</dc:date>
    </item>
  </channel>
</rss>

