Forum Discussion
kwkyiu_53019
Nimbostratus
Nov 08, 2011Query system status in TMSH
Just a short and stupid question.
How can I query the system status (Active/Standby) in TMSH script?
4 Replies
- Mark_Crosland_2Historic F5 AccountOne way would be to look at the failover.state DB variable. The "value" property will contain one of "active forced_offline offline standby"
tmsh list sys db failover.state
sys db failover.state {
value "active"
}
tmsh list sys db failover.state all-properties
sys db failover.state {
default-value "offline"
scf-config "false"
value "active"
value-range "active forced_offline offline standby"
} - Mark_Crosland_2Historic F5 AccountOr, in a script, as described in "help cli script", tmsh::get_config
- Mark_Crosland_2Historic F5 AccountAnd in v11
tmsh show cm traffic-group field-fmt
In a script
tmsh::get_status cm traffic-group ...
has a failover-state property, which will be set to either active standby, offline or force_offline - kwkyiu_53019
Nimbostratus
Thanks Mark, it works
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects