Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-2010, 09:22 PM
Active Member
 
Posts: 37
Unhappy remove zimbra accounts using the scripts

Hello all,

i saved the Bulk Provisioning - Zimbra :: Wiki remove accounts scripts as "deprovision.zmp"
after that ran these commands

su - zimbra
./deprovision > deprovision.zmp

but it is saying
"./bash:deprovision no such file or directory "

Last edited by phoenix; 07-07-2010 at 02:37 AM.. Reason: fixed link
Reply With Quote
  #2 (permalink)  
Old 07-06-2010, 11:06 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by jayanth View Post
Hello all,

i saved the "http://wiki.zimbra.com/wiki/Bulk_Provisioning#Remove_Accounts" remove accounts scripts as "deprovision.zmp"
after that ran these commands

su - zimbra
./deprovision > deprovision.zmp

but it is saying
"./bash:deprovision no such file or directory "
Surely that's the answer to your question - there is no file (bash script) named deprovision.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 07-06-2010, 11:30 PM
Active Member
 
Posts: 37
Default

Hello ,
but in the wiki it was said that , before zmprov < deprovision.zmp , run the ./deprovision > deprovision.zmp .

i tried by leaving that command also, still all the email accounts were there. nothing was deleted.

thank you,
Reply With Quote
  #4 (permalink)  
Old 07-06-2010, 11:36 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Then save the script from the wiki as a script, mark in as executable and then run it as mentioned in the article.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 07-07-2010, 12:27 AM
Active Member
 
Posts: 37
Default

if i am giving zmprov < deprovision.zmp , it is saying "unknown command "



[]$ zmprov < deprovision.zmp
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
prov> Unknown command. Type: 'help commands' for a list
Reply With Quote
  #6 (permalink)  
Old 07-07-2010, 02:39 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by jayanth View Post
if i am giving zmprov < deprovision.zmp , it is saying "unknown command "
Might that be because you didn't run this as the Zimbra user?
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.