worked great! (once I figured out the indentation requirements) I built a test
file of two users. Both appear to have been added correctly. I'll ask them to
log in to confirm.
Code:
[EMAIL PROTECTED] ~]$ zendmd << EOF
> user_file = open('user_file.txt', 'r')
> for line in user_file:
> username, password, role = line.rstrip().split(',')
> dmd.ZenUsers.manage_addUser(username, password, (role,))
> commit()
> EOF
Welcome to zenoss dmd command shell!
use zhelp() to list commands
>>> >>> ... ... ... ...
sanryan2
shahd433
>>>
[EMAIL PROTECTED] ~]$
Thanks!
David
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=13927#13927
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users