<?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: Getting Mac Addresses for Individual Nodes in a Stack - Python Script in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24416#M2699</link>
    <description>If running EXOS 21.1+, jsonrpc can help. If having XMC 8.0.4+, you can run the script from there.&lt;BR /&gt;
I don't understand what is your issue. list, dictionary, variables... all of that is supported.&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Jun 2018 23:09:00 GMT</pubDate>
    <dc:creator>Stephane_Grosj1</dc:creator>
    <dc:date>2018-06-05T23:09:00Z</dc:date>
    <item>
      <title>Getting Mac Addresses for Individual Nodes in a Stack - Python Script</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24410#M2693</link>
      <description>Working on a python script to automate the commands I use to program some switches. I am trying to come up with a way to determine the MAC addresses of the switches in the stack and input those values into the following commands. - configure stacking node-address &lt;I&gt;&lt;B&gt;aa??cc:dd:ee:ff&lt;/B&gt; &lt;/I&gt;slot-number  &lt;I&gt;&amp;lt;1 - 8&amp;gt;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
    - configure stacking node-address &lt;I&gt;&lt;B&gt;aa??cc:dd:ee:ff&lt;/B&gt;&lt;/I&gt;  priority &lt;I&gt;&amp;lt;1 - 100&amp;gt;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
&lt;BR /&gt;
- configure stacking node-address &lt;I&gt;&lt;B&gt;aa??cc:dd:ee:ff&lt;/B&gt;&lt;/I&gt;  master-capability on&lt;BR /&gt;
&lt;BR /&gt;
The problems that I am running into specifically are that I need to get and store 3 different MAC addresses (I have 3 switches in this particular stack) and I am not entirely sure how to do that. Also I would be running each of the above commands 3x (once for each switch in the stack.)&lt;BR /&gt;
&lt;BR /&gt;
Thank you for any help you can give! &lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:56:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24410#M2693</guid>
      <dc:creator>Carter_Haid</dc:creator>
      <dc:date>2018-06-05T22:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Mac Addresses for Individual Nodes in a Stack - Python Script</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24411#M2694</link>
      <description>Is there a reason a python array won't work?</description>
      <pubDate>Tue, 05 Jun 2018 23:09:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24411#M2694</guid>
      <dc:creator>Robert_Cummins</dc:creator>
      <dc:date>2018-06-05T23:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Mac Addresses for Individual Nodes in a Stack - Python Script</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24412#M2695</link>
      <description>Ummmm... Not that I know of I haven't tried that yet! I'll give it a shot. &lt;BR /&gt;
&lt;BR /&gt;
Thank you for the suggestion. &lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2018 23:09:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24412#M2695</guid>
      <dc:creator>Carter_Haid</dc:creator>
      <dc:date>2018-06-05T23:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Mac Addresses for Individual Nodes in a Stack - Python Script</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24413#M2696</link>
      <description>I find w3schools useful:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://www.w3schools.com/python/python_arrays.asp" target="_blank" rel="nofollow noreferrer noopener"&gt;https://www.w3schools.com/python/python_arrays.asp&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2018 23:09:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24413#M2696</guid>
      <dc:creator>Robert_Cummins</dc:creator>
      <dc:date>2018-06-05T23:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Mac Addresses for Individual Nodes in a Stack - Python Script</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24414#M2697</link>
      <description>So I like that idea for the holding of the Mac addresses but I'm still not sure of a way to get the individual MAC's from each switch.</description>
      <pubDate>Tue, 05 Jun 2018 23:09:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24414#M2697</guid>
      <dc:creator>Carter_Haid</dc:creator>
      <dc:date>2018-06-05T23:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Mac Addresses for Individual Nodes in a Stack - Python Script</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24415#M2698</link>
      <description>How do you currently get them?    If you expect to read them from each member via the cli then you need to look at how python handles IO from a remote session; there should be some baked-in libraries/methods that handle all of the calls for you and you simply need to parse the returns.   Another option would be to use an expect script wrapped by python.</description>
      <pubDate>Tue, 05 Jun 2018 23:09:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24415#M2698</guid>
      <dc:creator>Robert_Cummins</dc:creator>
      <dc:date>2018-06-05T23:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Mac Addresses for Individual Nodes in a Stack - Python Script</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24416#M2699</link>
      <description>If running EXOS 21.1+, jsonrpc can help. If having XMC 8.0.4+, you can run the script from there.&lt;BR /&gt;
I don't understand what is your issue. list, dictionary, variables... all of that is supported.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2018 23:09:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/getting-mac-addresses-for-individual-nodes-in-a-stack-python/m-p/24416#M2699</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2018-06-05T23:09:00Z</dc:date>
    </item>
  </channel>
</rss>

