Identifying master slave on cisco stack switches

33 views
Skip to first unread message

rajthecomputerguy

unread,
Jul 11, 2019, 5:20:34 PM7/11/19
to Ansible Project
Hi Team,

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

thanks

Dick Visser

unread,
Jul 12, 2019, 4:58:18 AM7/12/19
to ansible...@googlegroups.com
How do you identity that without ansible?
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b96e120f-65eb-4cc5-b985-55324bc30fa8%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

rajthecomputerguy

unread,
Jul 12, 2019, 5:23:21 AM7/12/19
to Ansible Project
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
----------------------------------------------------------
*1       Master 0000.0000.0000     15     0       Ready
 2       Member 0000.0000.0000     10     0       Version Mismatch

On Friday, July 12, 2019 at 2:28:18 PM UTC+5:30, Dick Visser wrote:
How do you identity that without ansible?


On Thu, 11 Jul 2019 at 23:20, rajthecomputerguy
<rajtheco...@gmail.com> wrote:
>
> Hi Team,
>
> I need to identify master slave on cisco stack switches 3850 in ansible to give some conditions. Any help appreciated.
>
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.

Dick Visser

unread,
Jul 12, 2019, 9:01:08 AM7/12/19
to ansible...@googlegroups.com
Then you'd have to create your own logic to determine this, based on
that captured output.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7598c369-61a1-4bc4-ab5a-5fe4d6ee00f8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages