dev.setProdState(1000)
also if you just want to do coot
dev = find('coot')
dev.setProdState(1000)
-EAD
On Aug 9, 2008, at 1:58 PM, david_sloboda wrote:
I can use zendmd to read the production state on a device. This
shows that host coot is in production state Maintenance.
Code:
[EMAIL PROTECTED] ~]$ zendmd
Welcome to zenoss dmd command shell!
use zhelp() to list commands
for dev in dmd.Devices.getSubDevices():
... if dev.id == 'coot':
... print dev.id, dev.getProductionStateString()
...
coot Maintenance
What is the syntax in zendmd to set the Production State back to
Production?
I haven't got this working from the API documentation.
Any help would be most appreciated. Thank you!
David[/code]
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=23525#23525
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users