NetSim Error : No license for product (-1) - command-line

NetSim Error : No license for product (-1)
When I run NetSim simulator, Simulation does not commence.
"No license for product (-1)"
is displayed in the command prompt.

NetSim v7 works based on the client-server architecture. When NetSim runs in the client machine, it will check for the license in the same machine, first. If license is not available in the same machine, then "No license for product (-1)" will be displayed in the command prompt and the server machine will be checked for the availability of license. If no license is available in the server machine also, then again "No license for product (-1)" will be displayed in the command prompt.
So, if "No license for product(-1)" is displayed in the command prompt two times, then check in the NetSim license server to know about the availability of license and adjust the number of current users of NetSim, in order to get the license.

Related

Unable to Open MS Word documents from network location

We have a software program that at certain state needs to open external word file from server (http not https)
on office 2013 a warning message occur but after adding the website to trusted locations on the word options the warning message stopped and it works fine
when trying office 365 the word program just launches but without opening the file and without any error messages
when i tried to pass the same file link to word program via windows Command prompt instead it gives me "can not locate the internet server or proxy server" message
i tried enabling (Allow trusted locations on my network) option and adding the website to the trusted locations
i tried also adding ForceShellExecute registry value as explained in the following answer, but it failed also
https://superuser.com/questions/1375679/microsoft-word-unable-to-open-https-link-within-document
working environment is windows 10 x64 and office 365 - 32 bit

Activating Matlab error: License checkout failed. License Manager Error -9

Im on Linux Manjaro.
I tried everything that came to my mind but I'm still getting this error:
[john#john-pc bin]$ sudo ./matlab
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file.
To run on this computer, you must run the Activation client to reactivate your license.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2020a/9
Diagnostic Information:
Feature: MATLAB
License path: /root/.matlab/R2020a_licenses:/usr/local/MATLAB/R2020a/licenses/license.dat:/usr/local/MATLAB/R2020a
/licenses/license_john-pc_40911196_R2020a.lic
Licensing error: -9,57.
I ran ./activate_matlab.sh and activated it through the license file AND login into MathWorks online. I deleted the installation .lic in R2020a/license/ and created a new one. I tried creating a license file with every mac address I could find. Nothing works. I keep getting this error. Only once I managed to use Matlab, which was right after installing it. Then after the first time closing it I'm I have been stuck on this error for 2 days. Please help me.
Okay, I wrote to MathWorks support. And they gave me a link to their forum where I found the solution. Here it is:
https://www.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9
I had to go all the way up to copying my HostID etc and set my login as root and run Matlab with sudo
But in case the link dies here it is from the MathWorks post:
The best way to resolve a License Manager Error -9 is by reactivating MATLAB with the activation client.
Windows
The activation client is located here:
C:\Program Files\MATLAB\R20XXx\bin\winXX\activate_matlab.exe
Mac
Open Finder.
Go to "Applications".
Right-click or control-click on the MATLAB application icon. (e.g. MATLAB_R2015b.app)
Click on "Show Package Contents".
Open "Activate.app".
Linux
The activation client is located here:
/usr/local/MATLAB/R20XXx/bin/activate_matlab.sh
Once you have launched the MATLAB activation client:
Select "Activate automatically using the internet."
Log into your MathWorks account.
Select the correct license.
The username field should auto-populate with the correct user name. Leave it as is.
Confirm the activation information.
Click "finish" to complete the activation process.
Restart MATLAB.
Still seeing a License Manager Error -9?
The username in the license file does not match
The Host ID in the license file does not match
You have a Designated Computer MATLAB license and MATLAB is already running under a different user account on this computer.
Confirm your Username and Host ID using the activation client:
Run the activation client and select "Activate manually without using the Internet."
Choose “I do not have a license file. Help me with the next steps.”
Copy your Host ID and Computer Login Name.
Click the back arrow 2 times and choose “Activate automatically using the Internet” then input the appropriate username.
Launch MATLAB using the appropriate user account.
Activation client requires elevated privileges to run? Connection error when Activating automatically? Still seeing a License Manager Error – 9?
How do I activate MATLAB without an internet connection?
https://www.mathworks.com/matlabcentral/answers/259627

SCCM 1802 - Scheduled deployment WOL not working, but RightClickTools WOL works

I have been trying to figure out why Wake On Lan works for Right Click Tools, but not for SCCM Scheduled Deployments.
In the wolmgr.log file I found this happening every five seconds: "Failed to get WOL inbox on AMT Proxy component. Wait 5 seconds... SMS_WAKEONLAN_MANAGER 9/19/2018 11:32:24 AM 480 (0x01E0)".
In the wolcmgr.log file I don't see any errors except this happening about four times a day, which I think is referring to the endless errors shown in the other log file: "CBaseCounter::Initialize - Registered performance counter "Total Number of Packets failed" SMS_WAKEONLAN_COMMUNICATION_MANAGER 9/19/2018 2:01:59 AM 9496 (0x2518)"
I have tried to look up these error messages and haven't found anything to help me get this resolved.
I have tried various ports, including the default (9) and 12287, currently it is on 7. We are being told to use subnet directed broadcasts by our network team due to some limitations with our Cisco network configuration.
I do have a SQL Server Agent (ADK) service that was disabled. I enabled it and it starts but turns off immediately. I don't know if that is related at all. I did have some deployment issues with Windows 7 drivers giving errors during the task sequence, even though they were installing. So I installed a Windows 8.1 ADK after seeing an article about bugs with the latest Win10 ADK and SCCM Task Sequences installing Win7 drivers. I've since then installed Win10 1703 ADK, which works on one of my other SCCM servers on Win7 deployments fine, and I was having this WOL problem before installing 1703 ADK.
Under Administration > System Status > Site Status > Management Point, when I show messages I see these:
*Description Severity
Type Site code
Date / Time System
Component Message ID
Thread ID Process ID
The Wake On LAN component has failed to read the site control file settings. Possible cause: The information is not yet available. Solution: The component is waiting for the information to become available and will retry obtaining the information at its next interval. Error
Milestone CML
9/20/2018 12:47:56 PM SMS_WAKEONLAN_MANAGER
6500 3384
3988
Description Severity
Type Site code
Date / Time System
Component Message ID
Thread ID Process ID
The Wake On LAN component has failed to read the site control file settings. Possible cause: The information is not yet available. Solution: The component is waiting for the information to become available and will retry obtaining the information at its next interval. Error
Milestone CML
9/20/2018 9:39:03 AM SMS_WAKEONLAN_MANAGER
6500 2924
2636*
ADK SQL Server Agent
SCCM WOL configuration
WOL ports
wolmgr.log file screen shot
RightClickTools WOL Configuration

Return a checked-out license in MATLAB/Lincese Manager (Flexera Software)

I have a MATLAB server which hosts a license manager (LMTOOLS by Flexera Software LLC) and few clients.
When you run use a toolbox function such as datestr(busdate(date)) you automatically checkout the Financial Instruments toolbox from the server. The license is returned to the server only when you close the session. Is there a way to force a particular client to return the license? A user forgetting to close his/her session can affect everyone as the administrator has no way to return the license to the server.
You can use:
lmutil lmstat -a -c "MYPATH\network.lic" --> to check license-borrower details
Output: ......john.doe PCNAME PCNAME (vxx) (SERVER/3300 123), start Tue 8/5 10:30
I tried using:
lmutil lmremove -c "MYPATH\network.lic" Fin_Instruments_Toolbox john.doe PCNAME PCNAME
but it returned just 1 line output lmutil - Copyright (c) 1989-2012 Flexera Software... and did not check-in the borrowed license. Any idea how to do this without closing the borrowing Matlab session? I even disconnected the client from the network but that didn't help.
Useful links: weblink1 weblink2
There's no way to do that - the client has to close their MATLAB session.
Mathworks use Flexnet and doesn't allow 'reread' or 'lmremove' like the other editors that use Flexnet. If I must make available a token I try the following solutions :
stop/start of the license server;
block the IP address of the computer where the toolbox is used.
Start/stop :
The users that have a token can use it during 20 minutes before lost it if the license server doesn't respond, but some new users can't take a token. Before make this, I check the number of Tcp/IP ports opened for the license service. I know that below 180/190 sessions (users), I can make a start/stop of the server.
If the faulty client doesn't make an other checkout after the start of the license server, the token will be available for other users.
If the user use a floating (CN) license and try to make an 'OUT' too rapidly (like a while(1)), I modify the option file to block the user by putting an 'EXCLUDE' for the user - a log file that grows continuously could be dangerous for the server. Or, if the user takes too many CN tokens for the same toolbox, I put a 'MAX' directive for him.
Block the IP address :
If the client using a token doesn't contact the server during 4 hours, the server consider that the token is 'Idle' and get it, it makes an 'IN', then the token is available. I use a 'Iptable' command to block the IP of the user's computer. This is only valid if the computer isn't shared between many users like a cluster node. The 4 hours is the value of the 'TIMEOUT' directive, but don't hope to reduce this value, even if you change it in the option file, you can only increase it. The minimum value is locked by Mathworks.

FLEXNET LICENCING ERROR :-15,10

I am using Matlab R2013b and I need to configure flexnet licence manager. I have the licence .dat and .lic files. I have tried many times to configure but I keep getting this flexnet error message:
[Detecting lmgrd processes...] License server status: 78#user
License file(s) on user: C:\Program Files\MATLAB\R2013b\licenses\license.dat:
lmgrd is not running: Cannot connect to license server system. The
license server manager (lmgrd) has not been started yet, the wrong
port#host or license file is being used, or the port or hostname in
the license file has been changed. Server name: 127.0.0.1 License
path: 78#user; FLEXnet Licensing error:-15,10. System Error: 10061
"WinSock: Connection refused" For further information, refer to the
FLEXnet Licensing documentation, available at
"www.flexerasoftware.com".
Please, any ideas what exactly I should do? Thank you.