Files
SERVtomaste/docs/LICENSE-SERVER-INFO.md

269 lines
6.4 KiB
Markdown
Raw Normal View History

# License Server Host Information
**Updated:** 2025-12-01
**Server:** dalidou (ThinkPad W520)
**Status:** OPERATIONAL
---
## Quick Reference - What to Tell Siemens
For your permanent NX license, provide:
```
Hostname: dalidou
CID: COMPOSITE=88F027D30355
Port: 28000
```
---
## Server Details
| Field | Value |
|-------|-------|
| **Hostname** | `dalidou` |
| **Composite ID (CID)** | `COMPOSITE=88F027D30355` |
| **Ethernet MAC Address** | `f0:de:f1:e6:e4:6a` |
| **Host ID (no colons)** | `f0def1e6e46a` |
| **Local Network IP (Wi-Fi)** | `192.168.86.50` |
| **Tailscale IP** | `100.80.199.40` |
| **NX License Port** | `28000` |
### All CIDs (from getcid command)
| Interface | CID | MAC |
|-----------|-----|-----|
| **enp0s25 (Ethernet)** | `COMPOSITE=88F027D30355` | F0DEF1E6E46A |
| wlp3s0 (Wi-Fi) | `COMPOSITE=F3B17C78293B` | 2477036FCD80 |
**Use the Ethernet CID** - it's more stable.
---
## Current License Configuration
**Permanent license valid until:** March 2, 2026
| License | Status |
|---------|--------|
| NX93300 (NX Design for Industrial Design) | 1 seat |
| SC13500 (Simcenter Structures) | 1 seat |
| TC10101 (Tc Author) | 1 seat |
| TC50100 (Teamcenter Rapid Start) | 1 seat |
| NX35050 (NX Value Based Licensing) | 50 tokens |
| + many more features | See license file |
---
## Client Setup (Windows Laptops)
### Step 1: Set Environment Variable
1. Open **System Properties** (`Win + R``sysdm.cpl`)
2. Click **Advanced****Environment Variables**
3. Under **System variables**, click **New**
4. Add:
- **Variable name:** `SPLM_LICENSE_SERVER`
- **Variable value:** `28000@dalidou;28000@100.80.199.40;29000@DESKTOP-PRECISION`
### Step 2: Verify in Siemens Licensing Tool
1. Open **Siemens Licensing Tool**
2. Go to **Environment Settings**
3. Confirm all servers show **Connection status: Successful**
### License Server Priority
| Priority | Server | Use Case |
|----------|--------|----------|
| 1st | `28000@dalidou` | Local network (fastest) |
| 2nd | `28000@100.80.199.40` | Remote via Tailscale |
| 3rd | `29000@DESKTOP-PRECISION` | Fallback if dalidou down |
---
## Server Installation (Already Done on Dalidou)
### Location
```
/opt/Siemens/LicenseServer/
├── lmgrd # FlexNet license manager
├── saltd # Siemens vendor daemon (v5)
├── ugslmd -> saltd # Symlink for compatibility
├── lmutil # License utilities
├── License_Ugslmd.lic # License file
└── logs/
└── lmgrd.log # Server log
```
### Systemd Service
```bash
# Service file: /etc/systemd/system/siemens-lmgrd.service
sudo systemctl status siemens-lmgrd # Check status
sudo systemctl start siemens-lmgrd # Start
sudo systemctl stop siemens-lmgrd # Stop
sudo systemctl restart siemens-lmgrd # Restart
```
### Manual Commands
```bash
cd /opt/Siemens/LicenseServer
# Check license status
./lmutil lmstat -a
# Check specific feature
./lmutil lmstat -f NX93300
# View log
tail -50 logs/lmgrd.log
# Start manually (if systemd not working)
./lmgrd -c License_Ugslmd.lic -l logs/lmgrd.log
```
### Firewall
```bash
# Port 28000 is open
sudo ufw status | grep 28000
```
---
## Updating the License File
When you receive a new license from Siemens:
1. **Edit the SERVER line** to match dalidou:
```
SERVER dalidou ANY 28000
VENDOR ugslmd
```
2. **Copy to dalidou:**
```bash
scp new_license.lic root@dalidou:/opt/Siemens/LicenseServer/License_Ugslmd.lic
```
3. **Restart the service:**
```bash
ssh root@dalidou "systemctl restart siemens-lmgrd"
```
4. **Verify:**
```bash
ssh root@dalidou "cd /opt/Siemens/LicenseServer && ./lmutil lmstat -a"
```
---
## ThinkPad Setup (When Repaired)
On your ThinkPad, follow the same **Client Setup** steps above:
1. Set `SPLM_LICENSE_SERVER` environment variable:
```
28000@dalidou;28000@100.80.199.40
```
2. Make sure **Tailscale** is installed and connected
3. Test with Siemens Licensing Tool
That's it - no license server installation needed on the ThinkPad!
---
## Troubleshooting
### License server not responding
```bash
# Check if running
ssh root@dalidou "ps aux | grep lmgrd"
# Check log for errors
ssh root@dalidou "tail -50 /opt/Siemens/LicenseServer/logs/lmgrd.log"
# Restart
ssh root@dalidou "systemctl restart siemens-lmgrd"
```
### Can't connect from laptop - Tailscale connectivity issues
**Problem:** Windows laptop can't reach dalidou via Tailscale (100.80.199.40), but local network (192.168.86.50) works fine.
**Quick Fix (if on same local network):**
Update `SPLM_LICENSE_SERVER` environment variable to prioritize local IP:
1. Open **PowerShell as Administrator**
2. Run:
```powershell
[System.Environment]::SetEnvironmentVariable('SPLM_LICENSE_SERVER', '28000@192.168.86.50;28000@100.80.199.40', 'Machine')
```
3. Restart NX
Or via GUI:
- `Win + R``sysdm.cpl`
- **Advanced** → **Environment Variables**
- Edit `SPLM_LICENSE_SERVER` to: `28000@192.168.86.50;28000@100.80.199.40`
**Root Cause:** The hostname `dalidou` resolves to Tailscale IP via DNS, which may be unreachable if Tailscale connectivity is broken between devices.
**Verification steps:**
```powershell
# Test local connection (should succeed)
Test-NetConnection -ComputerName 192.168.86.50 -Port 28000
# Test Tailscale connection (may fail)
Test-NetConnection -ComputerName 100.80.199.40 -Port 28000
# Check what dalidou resolves to
Resolve-DnsName dalidou
```
### Tailscale disconnection issues on Windows
If Tailscale keeps disconnecting on Windows:
1. Run in PowerShell (Admin):
```powershell
tailscale set --unattended
Restart-Service -Name "Tailscale"
```
2. Disable key expiry in Tailscale admin console: https://login.tailscale.com/admin/machines
### "All licenses in use" error
Only 1 seat per license - close NX on other machines first.
---
## SolidWorks (Future)
When setting up SolidWorks SNL license:
| Field | Value |
|-------|-------|
| Server Name | `dalidou` |
| MAC Address | `F0DEF1E6E46A` |
| License Server Port | `25734` |
---
## Port Reference
| Service | Port | Protocol |
|---------|------|----------|
| Siemens lmgrd (NX) | 28000 | TCP |
| SolidWorks SNL | 25734 | TCP |
---
## History
| Date | Change |
|------|--------|
| 2025-12-01 | Installed Siemens License Server v5.0.0 on dalidou |
| 2025-12-01 | Configured systemd auto-start service |
| 2025-12-01 | Set up SPLM_LICENSE_SERVER on Precision |
| 2025-12-01 | Temporary license active until Dec 3 |