Discussion:
Add User via command line?
mahimahi
2011-10-07 05:24:21 UTC
Permalink
mahimahi [http://community.zenoss.org/people/mahimahi] created the discussion

"Add User via command line?"

To view the discussion, visit: http://community.zenoss.org/message/61745#61745

--------------------------------------------------------------
Is there a way to add a user via command line like zencommand?

Also is there a way to bypass the initial installation quickstart screen that prompts your for admin and initial ZenManager user/passwd/email?

Thanks
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61745#61745]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2011-10-07 17:49:24 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Add User via command line?"

To view the discussion, visit: http://community.zenoss.org/message/61755#61755

--------------------------------------------------------------
echo "dmd.ZenUsers.manage_addUser(userid='User1', password='pwd1'); commit()" | zendmd
As for bypassing the quickstart I think its possible. There is a file or DB entry (I think) that works as the flag to display that to you. I'm afraid I dont't know the exact answer to where its stored though.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61755#61755]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-02-26 16:44:46 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Add User via command line?"

To view the discussion, visit: http://community.zenoss.org/message/64777#64777

--------------------------------------------------------------
Just happened to stumble across this today. The following should do the trick
echo "dmd._rq = True; commit()" | zendmd
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64777#64777]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...