# How to identify wich Appliance is active, any SEMP Query avalable ????

**URL:** <https://community.solace.com/t/how-to-identify-wich-appliance-is-active-any-semp-query-avalable/342>\
**Category:** General Discussions\
**Tags:** queue, semp\
**Created:** [July 28, 2020, 10:02am UTC](https://community.solace.com/t/how-to-identify-wich-appliance-is-active-any-semp-query-avalable/342 "2020-07-28T10:02:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muddam\_Pullaiah](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@Muddam\_Pullaiah](https://community.solace.com/u/Muddam_Pullaiah)\
**Post date:** [July 28, 2020, 10:02am UTC](https://community.solace.com/t/how-to-identify-wich-appliance-is-active-any-semp-query-avalable/342/1 "2020-07-28T10:02:06Z")

</div>

Hi All,  
We have 4 Appliance (Prod and DR), so when I fire SEMP query (it will come blind count and current message in the queue) will get all queue start, And that SEMP query is automated. And last week my Appliance failover from primary to secondary and I didn’t get any data from that SEMP query, so is their any SEMP query avalable to identify which Appliance is active.  
If yes please provide the SEMP query, so based on that I will modify my existing SEMP query.

---

<div class="post-metadata">

**Author:** ![TomF](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tomf/32/1749_2.png) [@TomF](https://community.solace.com/u/TomF)\
**Post date:** [August 26, 2020, 11:37am UTC](https://community.solace.com/t/how-to-identify-wich-appliance-is-active-any-semp-query-avalable/342/2 "2020-08-26T11:37:14Z")

</div>

Hi @Muddam_Pullaiah, you’ll need to use the (Legacy SEMP API)[[SEMP](https://docs.solace.com/SEMP/Using-Legacy-SEMP.htm)] as SEMP v2 doesn’t support this yet. The query you need is to get the redundancy status:

```auto
  <redundancy/>
</show>

```

Look for the `<virtual-routers>` tag, then the `<primary>`, and check inside `<status><activity>`
