Forum Discussion
Finding "Active Device" of a traffic group
Hi, Is there any way to get the "Active Device" of a given traffic group using powershell? On the GUI, if you go to Device Management-> Traffic Groups, this information is displayed in the column "Active Device". I've tried various ways to access this info, and have so far been unsuccessful via Powershell.
Thanks so much!!
6 Replies
- Mariusz_B
Nimbostratus
Hi Suni,
I think you're looking for "show /cm traffic-group" command.
Regards Mariusz
- Suni
Altostratus
Hi Mariuz, I actually didn't know about that command. I just tried it in the tmsh shell and it worked great.
However, I am trying to achieve this via iControl and specifically PowerShell if at all possible. Do you know if there is a way to get this information via PowerShell?Thanks so much!
- Mariusz_B
Nimbostratus
Sorry Suni, I am not familiar with PowerShell.
Regards
have you looked at this: https://devcentral.f5.com/d/microsoft-powershell-with-icontrol
once you can perform commands from powershell via icontrol then performing the command above should be easy.
- Suni
Altostratus
Hi boneyard, I actually did and I am leveraging a lot I learned from that and other PS/iControl articles to do what I need in our environment (creating pools,healthchecks etc), but, I have so far not been successful in being able to connect to a F5 unit that is part of an HA pair, running Active/Active, where some traffic groups are on one unit and others are on the other unit, and get which unit is currently active for a given Traffic Group. -Suni
- Tim_K_92675
Cirrostratus
Have you looked at the get_failover_state method?
https://devcentral.f5.com/wiki/iControl.System__Failover__get_failover_state.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com