# System.device.getdevice request

**URL:** <https://forum.inductiveautomation.com/t/system-device-getdevice-request/60618>\
**Category:** Ignition\
**Created:** [June 10, 2022, 2:30pm UTC](https://forum.inductiveautomation.com/t/system-device-getdevice-request/60618 "2022-06-10T14:30:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregory.sachs](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@gregory.sachs](https://forum.inductiveautomation.com/u/gregory.sachs)\
**Post date:** [June 10, 2022, 2:30pm UTC](https://forum.inductiveautomation.com/t/system-device-getdevice-request/60618/1 "2022-06-10T14:30:35Z")

</div>

I was looking at system.device.getdevice, and it would be really nice to have a similar command like system.device.getdevice, which could populate the fields needed to duplicate a device via script.  
something like  
deviceProps=system.device.getdevice(deviceName)  
'deviceProps[` `“Hostname”` `] ` `=` `“192.168.1.2” #new IP address` `system.device.addDevice(deviceName` `=` `“NewDeviceName”` `, deviceType` `=` `“LogixDriver”` `, deviceProps` `=` `deviceProps)`

Probably not a high priority request, but I find myself often needing to duplicate existing devices and there is no simple way to do it. A “Clone this device” on web interface would work too…

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 10, 2022, 2:34pm UTC](https://forum.inductiveautomation.com/t/system-device-getdevice-request/60618/2 "2022-06-10T14:34:10Z")

</div>

> [@gregory.sachs](#):
>
> A “Clone this device” on web interface would work too

This is worth putting on the [ideas](https://ideas.inductiveautomation.com/) site.
