Dynamic SCALE

If you want to run SCALE commands on a device, you currently also normally have to create the instruction in Tachyon Instruction Management Studio (TIMS) and add the necessary SCALE commands, then upload the instruction to the 1E Platform and execute it through the UI.

Dynamic SCALE allows you to simply write the SCALE snippet, then have it run from the platform automatically.

To use this feature, you must enable code signing. Refer to Code signing certificate.

To run a SCALE snippet dynamically, create the SCALE snippet as a file. Here is an example:

Copy
@p = OperatingSystem.GetProcesses();
@result = select p.ProcessId ParentProcId, p1.ProcessId ChildProcId, p.Executable Parent, p1.Executable Child from @p p join @p p1 on p.ProcessId = p1.ParentProcessId where p.Executable = "svchost.exe";

This snippet returns all processes whose parent process executable is svchost.exe. The last line of the file should always assign to a table called @result. 

Assuming the file was saved as example.scale, you can now execute it dynamically like this:

Copy
invoke-1EDynamic -scale example.scale -targetscope urth-dev