Results 1 to 5 of 5

Thread: [SOLVED] 'zmprov ma' returns null

  1. #1
    Join Date
    May 2009
    Posts
    4
    Rep Power
    6

    Default [SOLVED] 'zmprov ma' returns null

    Hi,
    I want to capture the output of the 'zmprov ma' command from CLI. But the problem is that the command returns null when, for example I try to change the account status to 'active' when the account is already 'active' which is the same when the account was previously in 'locked' state.

    I need to differentiate between the two actions by the command's return value. Can u help me to work around this little problem?

  2. #2
    Join Date
    Feb 2007
    Location
    Sioux Falls, SD
    Posts
    67
    Rep Power
    8

    Default

    I'm guessing the only way to accommodate this would be to run a 'zmprov ga' and check for your value, run the 'zmprov ma', and then run the 'zmprov ga' to see if it changed. I understand that this running 2 extra commands, but I believe returning (null) is standard for success in a *NIX environment.

    Just a thought!

    Cheers,
    Dusty
    CoSentry - www.cosentry.com - Co-Location & Business Resiliency Solutions

  3. #3
    Join Date
    May 2009
    Posts
    4
    Rep Power
    6

    Default Nice thought ;)

    Hi Dusty,
    The problem is when i have to run the command for multiple users(like 1000 or more). In that case those 2 extra commands would be quite an overhead...

    Any other workarounds?

    Cheers,
    Nishant.

  4. #4
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    if you're concerned about performance you should probably look at doing a custom soap script, the startup/teardown overhead associated with zmprov is pretty great thats why it takes a few seconds to execute any commands.

    you could try running zmprov with the -v (verbose) or -d (debug) options and see if that produces any output that could be helpful for you but I doubt it will because when you do a zmprov ma you're just changing the value of a field and it really does not care what the existing value was.

  5. #5
    Join Date
    May 2009
    Posts
    4
    Rep Power
    6

    Default

    Running zmprov with -d(debug) does help. Now i can run grep on the output. This is much lighter with very low overhead.
    Though this still leaves a lot of scope for improvement. May be custom soap scripts will help.

    Thanks n Cheers,
    Nishant.

Similar Threads

  1. Zimbra + Funambol Sync4j Code
    By KevinH in forum Mobility
    Replies: 563
    Last Post: 01-16-2010, 01:20 AM
  2. Domain alias with zmprov
    By Klug in forum Administrators
    Replies: 2
    Last Post: 03-25-2009, 07:49 AM
  3. Moving to different server
    By AaronW1000 in forum Installation
    Replies: 2
    Last Post: 07-03-2008, 07:39 AM
  4. Various errors during install and initial startup
    By theschles in forum Installation Help
    Replies: 2
    Last Post: 11-21-2007, 01:51 PM
  5. zmprov ca command returns NO_SUCH_DOMAIN
    By admin1 in forum Migration
    Replies: 2
    Last Post: 10-03-2007, 10:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •