Zenoss: Add a device to a Group with ZenDMD

As user zenoss (or whatever user your Zenoss application runs as), run zendmd, and:

Device = find('My Awesome Server')
Device.addDeviceGroup('My Wonderful Group')
commit()

This will make the device named My Awesome Server a member of the group named My Wonderful Group.