# Identifying master slave on cisco stack switches

**URL:** <https://forum.ansible.com/t/identifying-master-slave-on-cisco-stack-switches/30765>\
**Category:** Ansible Project\
**Created:** [July 11, 2019, 9:20pm UTC](https://forum.ansible.com/t/identifying-master-slave-on-cisco-stack-switches/30765 "2019-07-11T21:20:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [July 11, 2019, 9:20pm UTC](https://forum.ansible.com/t/identifying-master-slave-on-cisco-stack-switches/30765/1 "2019-07-11T21:20:34Z")

</div>

Hi Team,

I need to identify master slave on cisco stack switches 3850 in ansible to give some conditions. Any help appreciated.

thanks

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [July 12, 2019, 8:57am UTC](https://forum.ansible.com/t/identifying-master-slave-on-cisco-stack-switches/30765/2 "2019-07-12T08:57:59Z")

</div>

How do you identity that without ansible?

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [July 12, 2019, 9:23am UTC](https://forum.ansible.com/t/identifying-master-slave-on-cisco-stack-switches/30765/3 "2019-07-12T09:23:20Z")

</div>

Hi Dick,

below is the command to identify without ansible , see the role column . there is no inbuilt facts for this

testsw#sh switch detail  
Switch/Stack Mac Address : 0000\*.000000  
H/W Current  
Switch# Role Mac Address Priority Version State

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [July 12, 2019, 1:00pm UTC](https://forum.ansible.com/t/identifying-master-slave-on-cisco-stack-switches/30765/4 "2019-07-12T13:00:46Z")

</div>

Then you'd have to create your own logic to determine this, based on  
that captured output.
