Skip navigation
All Places > Licensing and Installation > Blog > 2013 > September
2013

We are constantly editing environment variables in customer support and we know many of our customers access them frequently as well. Normally, you have to go through Start> Computer, right-click, select Properties, click Advanced system settings, click Environment Variables. Fortunately, you can cut about half that with a keyboard shortcut.

 

     Windows Key + Pause/Break

 

Yes, it's that key way over on the upper right of your keyboard.

 

Hopefully you find this helpful. Free free to share your tips and tricks for quick access to frequently used windows or utilities.

By default, a user on Windows Vista, Windows 7, or 2008 Server will be prompted to approve any program they attempt to run if the software is not on a local file system.  This is an annoyance for anyone installing Mentor Graphics software in client/server configuration, assuming of course your security policy does not require a user to be prompted. You could disable UAC entirely, but then you will also disable security features you think desirable.

 

You can disable the feature of prompting to authorize program execution on your intranet without turning UAC completely off using the Group Policy Editor. Use this tool to configure the system not to prompt the user when they run an executable from a network drive.

 

Procedure (Note: You must have administrator rights to perform this operation)

 

  1. From the DOS command shell or from the run dialog, enter the command gpedit.msc
  2. Go to User Configuration >> Administrative Templates >> Windows Components >> Attachment Manager. Double click on "Inclusion list for moderate risk file types".

  3. Select Enable, and add *.exe in the box that says ‘Specify moderate risk extensions’.

  4. You may also add any other known types you want to avoid being prompted for (.pdf, .bat, etc).

 

When you grant this exception it allows you to run an application with a .exe extension from the Intranet zone without a prompt, even when UAC is on. You will still be warned before an application from the Internet zone is allowed to run.

 

The risk you assume is that you must trust that any executables sitting on a network drive (drives mapped to a drive letter or drives you connect through a UNC path) are safe to run without seeing the warning popup.

When starting or troubleshooting a  license server, it's handy to have a way to verify a license checkout  without having to run an application. We have two utilities to help you  do just that.

 

On Linux we use the mgls_ok utility. Most applications have the mgls_ok utility  located within the application tree's bin directory. However, you may  need to set the MGLS_HOME variable to the application tree or the mgls  package within it. For a standalone licensing tree, set MGLS_HOME to the  top level folder (e.g.: mgls_v9-7_2-3-0.ixl). You'll also need to copy  the mgc.pkginfo file to the lib directory. You can download that here. Make sure your MGLS_LICENSE_FILE variable is set to your license file or license server (port@host).

 

Once  you have the the MGLS_HOME and MGLS_LICENSE_FILE variables set and the  mgc.pkginfo file copied, the command to check out a license feature is  simple:

 

     $ $MGLS_HOME/bin/mgls_ok msimhdlsim

     Checking availability of "msimhdlsim".

     License granted through "msimhdlsim".

 

 

On Windows,  we use the pcls_ok utility which provides a GUI. With the licensing  software installed, you can access the pcls_ok utility from the Start  Menu> All Programs> Mentor Graphics Licensing> pcls_ok. You can  also navigate to C:\MentorGraphics\Licensing or possibly find pcls_ok  in your applications start menu or tree. Here's an example of the  pcls_ok interface:

 

2013-03-02_134957.png

 

The  nice thing about the pcls_ok interface is it shows you the value of  MGLS_LICENSE_FILE, which makes it easy to verify and know where you're  attempting to get licenses from.

 

To  check out a feature, just pick one from your license file and type or  paste it into the Feature: field. Then, click Apply. A successful  checkout will look like this:

 

2013-03-02_135400.png

 

If the checkout fails, A dialog will appear with an error message.

If you get a licensing error from one of your applications, aside from ensuring licenses are available and searching SupportNet for the error message, you can use our Mentor License Utility (MLU) to generate a detailed diagnostic report that may help you or one of our CAEs determine the root cause.


Please take a moment to watch the video demonstration for  Generating a Run-time Diagnostic Report with the Mentor License Utility (video).