Getting Mac Addresses for Individual Nodes in a Stack - Python Script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎06-05-2018 03:56 PM
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 aa??cc:dd:ee:ff slot-number <1 - 8>
- configure stacking node-address aa??cc:dd:ee:ff priority <1 - 100>
- configure stacking node-address aa??cc:dd:ee:ff master-capability on
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.)
Thank you for any help you can give!
- configure stacking node-address aa??cc:dd:ee:ff priority <1 - 100>
- configure stacking node-address aa??cc:dd:ee:ff master-capability on
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.)
Thank you for any help you can give!
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎06-05-2018 04:09 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎06-05-2018 04:09 PM
Ummmm... Not that I know of I haven't tried that yet! I'll give it a shot.
Thank you for the suggestion.
Thank you for the suggestion.
