You don't state what version you are using.
1) You can define UGS_LICENSE_BUNDLE to point to TOTALMACH
2) You can use the Siemens licensing tool to set the bundle
Be aware at some point the licensing tool was changed to use the registry, and from that verison of NX onwards, the registry value over-rides the ENV variable
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled