How to set environment variables on computes nodes

For ISV application you have to set some environments variables on the compute node.
You can set this variable by hand, but if you have many nodes it can be long.
So, the idea of this post is how can set them attaumaticaly ?

 Use the HPCS tools :

You can set cluster wilde variable by using cluscgf in a Administrator cmd line windows :
   "cluscfg setenvs name=value"

ex. : cluscfg setenvs LM_LICENSE_FILE= license_server@74000

So each time you will submit a job this variable will be set for the job

 Use command line :

Select the nodes into the node management view and run the following command
 "setx name value /M"
This command will add this environement variable in the system of all the selected nodes

NOTE : /M set the variable for the system

ex. : setx PATH "%PATH%;\\headnode\Apps\bin" /M