Auto Chekout for License Management in V8 XM

I am trying to find a way to auto checkout licenses when microstation starts and autoi checkin licenses when microstation closes.  Is there a script or variable or anything that can make this possible?  I would greatly appreciate any help with this.  Thanks.

Keith K.

Parents
  • Starting with Microstation XM, licenses no longer need to be checked out prior to using the product. The license usage is simply logged on the workstation and sent to the license server at a later date anytime the program is used. If you still want to check out licenses, use LicenseToolCmd.exe, a command line utility included with the License Management Tool that can be used in batch scripts for checking out and checking in licenses. Do a search for it on your hard drive.

    Use the following syntax to check out a license of Microstation 08.11.xx.xx with an expiration date of one day.:
    LicenseToolCmd checkout -productid:1000 -productversion:08.11.00.00 -checkoutperiod:1

    Use the following syntax to check in the Microstation license again:
    LicenseToolCmd checkin -productid:1000 -productversion:08.11.00.00

    A batch script can be created that checks out a license using the command line utility above, launches Microstation, and then checks the license back in when Microstation quits and returns control to the command shell.

    Please note that using this procedure may prevent more than one person from using Microstation at one time if you have a single license of the product.



  • MicroStation, as with most of our applications, is configured to report product usage.  As such, if a license is not available for checkout, the product will still work and report the usage accordingly.  Is there a particular reason the workflow requires a checked out license?


    This is a test

  • I am creating a batch file to check out Map Powerview licenses for mobile users. I am using the following command line and it reports an unknown error but the license appears to have checked out successfully. Any suggestions?

    c:\mappowerview\MapPowerView\licensetoolcmd checkout /productid:1940 /productversion:8.11.07.434 /checkoutperiod:30

    Command: CheckOut

    Checkout Failed. [status: 0 - Error Unknown]

    Thanks

    Dippan Shukle

  • Use dashes instead of slashes for the productid, productversion, and checkoutperiod arguments. Please note, however, that Map Powerview is most likely a "trust licensing" product. Trust licensing products permit operation for 30 days before requiring communication with the license server anyway, making a license checkout unnecessary. A checkout is only necessary for durations greater than 30 days.



  • Thanks Jeremy

    I actually tried the dashes and it errored off on me. I was following documentation at

    docs.bentley.com/.../redlinehelp806.html

    Also, we are in the process of deploying v8i for our users who are currently on v8. SOmetime we are finding that they randomly get the licensing dialog popping up even if they have registered with our license server. It is quite annoying for the users and I was wondering if you had run into it previously .

    Thanks

    Dippan

  • LicenseToolCmd appears to accept either slashes or dashes. I was able to reproduce the "Checkout Failed" message regardless of the status code. As you mentioned, however, the checkout succeeds even though it prints the wrong message as output. This appears to be a bug, albeit an asthetic one. If users see the output of your batch script, you can hide the output of LicenseToolCmd by appending >NUL to the end of the command as a workaround like so:

    licensetoolcmd checkout /productid:1940 /productversion:8.11.7.434 /checkoutperiod:30 >NUL 

    As for the license registration dialog problem, I highly recommend placing a service ticket with our Technical Support Group for further assistance.



Reply
  • LicenseToolCmd appears to accept either slashes or dashes. I was able to reproduce the "Checkout Failed" message regardless of the status code. As you mentioned, however, the checkout succeeds even though it prints the wrong message as output. This appears to be a bug, albeit an asthetic one. If users see the output of your batch script, you can hide the output of LicenseToolCmd by appending >NUL to the end of the command as a workaround like so:

    licensetoolcmd checkout /productid:1940 /productversion:8.11.7.434 /checkoutperiod:30 >NUL 

    As for the license registration dialog problem, I highly recommend placing a service ticket with our Technical Support Group for further assistance.



Children
No Data