# Rename the custom Device detected/created by IBM MQ extension

**URL:** <https://community.dynatrace.com/t/rename-the-custom-device-detected-created-by-ibm-mq-extension/32261>\
**Category:** Extensions\
**Tags:** extensions, ibm-mq\
**Created:** [July 30, 2021, 3:51pm UTC](https://community.dynatrace.com/t/rename-the-custom-device-detected-created-by-ibm-mq-extension/32261 "2021-07-30T15:51:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [July 30, 2021, 3:51pm UTC](https://community.dynatrace.com/t/rename-the-custom-device-detected-created-by-ibm-mq-extension/32261/1 "2021-07-30T15:51:11Z")

</div>

Hello Folks,

How can we rename the custom device created by&nbsp;IBM MQ extension?

 ![AK_1-1627659050787.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/8/b807e14ebc87cbf696a65a2283803d696c526d80.png)

The problem is, whenever alert&nbsp;triggers its getting difficult to understand from which MQ server it is triggered.

Basically wanted to get some more details on alert like MQ server name or IP. Is it achievable?

Regards,

AK

---

<div class="post-metadata">

**Author:** ![diego\_morales](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/diego_morales/32/2556_2.png) [@diego\_morales](https://community.dynatrace.com/u/diego_morales)\
**Post date:** [August 3, 2021, 4:09am UTC](https://community.dynatrace.com/t/rename-the-custom-device-detected-created-by-ibm-mq-extension/32261/2 "2021-08-03T04:09:10Z")

</div>

Hi AK,

Because it is possible to have multi-instanced queue managers across multiple hosts, it would not be feasible to create different custom devices for each host the queue manager runs on.

The only way right now you could rename your custom devices is by using the Monitored Entities API. You would have to update existing custom device names to add those values in the names manually.

Alternatively, the link you get in the alerts to the custom device should show that IP and Port property when expanded.

Hope this helped.

Thanks,

Diego

---

<div class="post-metadata">

**Author:** ![diego\_morales](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/diego_morales/32/2556_2.png) [@diego\_morales](https://community.dynatrace.com/u/diego_morales)\
**Post date:** [August 3, 2021, 12:50pm UTC](https://community.dynatrace.com/t/rename-the-custom-device-detected-created-by-ibm-mq-extension/32261/3 "2021-08-03T12:50:40Z")

</div>

Keep in mind that if you use the API, it would have to be done after every execution of the extension or else it would be overwritten by the extension.

If you modify the extension for your specific use case, that could also work but you would lose support and maintenance.

Thanks,

Diego

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [August 10, 2021, 2:14pm UTC](https://community.dynatrace.com/t/rename-the-custom-device-detected-created-by-ibm-mq-extension/32261/4 "2021-08-10T14:14:50Z")

</div>

Hi [@diego\_morales](https://community.dynatrace.com/user/21611),

Thanks for the inputs.

But, I would need a help with request body to update the name of custom device because when I use the following request body it get resulted into bad request.

Request Body -

 ![AK_1-1628604801773.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/9/49ae9bcae02847e031b0b06704703606dac7faa0.png)

Output -

 ![AK_0-1628604768229.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d3fe4d57e94a5eb3f481855c64541b08e3f7e65c.png)

Regards,

AK

---

<div class="post-metadata">

**Author:** ![diego\_morales](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/diego_morales/32/2556_2.png) [@diego\_morales](https://community.dynatrace.com/u/diego_morales)\
**Post date:** [August 10, 2021, 7:57pm UTC](https://community.dynatrace.com/t/rename-the-custom-device-detected-created-by-ibm-mq-extension/32261/5 "2021-08-10T19:57:18Z")

</div>

Hi AK,

If you want to test that, use a payload like this:  
{  
“customDeviceId”: “IBM MQ - YourCurrentCustomDeviceGroupName - QM\_NAME”,  
“displayName”: “The name you want to display”,  
“group”: “IBM MQ - YourCurrentCustomDeviceGroupName”  
}

You need at least those three. Keep in mind that this will be overwritten the next time&nbsp;the extension polls.

Thanks,

Diego

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [August 12, 2021, 12:26pm UTC](https://community.dynatrace.com/t/rename-the-custom-device-detected-created-by-ibm-mq-extension/32261/6 "2021-08-12T12:26:12Z")

</div>

[@diego\_morales](https://community.dynatrace.com/user/21611), great.. It worked. thanks for the all help and suggestions.

Regards,

AK
