<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hpcguide.tau.ac.il/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Shosh</id>
	<title>HPC Guide - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://hpcguide.tau.ac.il/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Shosh"/>
	<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Special:Contributions/Shosh"/>
	<updated>2026-04-21T04:32:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Submitting_a_job_to_a_slurm_queue&amp;diff=1531</id>
		<title>Submitting a job to a slurm queue</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Submitting_a_job_to_a_slurm_queue&amp;diff=1531"/>
		<updated>2025-10-23T06:20:08Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Accessing the System ==&lt;br /&gt;
&lt;br /&gt;
To submit jobs to SLURM at Tel Aviv University, you need to access the system through one of the following login nodes:&lt;br /&gt;
&lt;br /&gt;
* slurmlogin.tau.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Requirements for Access ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Group Membership&amp;#039;&amp;#039;&amp;#039;: You must be part of the &amp;quot;power&amp;quot; group to access the resources.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;University Credentials&amp;#039;&amp;#039;&amp;#039;: Use your Tel Aviv University username and password to log in.&lt;br /&gt;
&lt;br /&gt;
These login nodes are your starting point for submitting jobs, checking job status, and managing your SLURM tasks.&lt;br /&gt;
&lt;br /&gt;
=== SSH Example ===&lt;br /&gt;
&lt;br /&gt;
To access the system using SSH, use the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Replace &amp;#039;your_username&amp;#039; with your actual Tel Aviv University username&lt;br /&gt;
ssh your_username@slurmlogin.tau.ac.il&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your connection will be automatically routed to one of the login nodes:&lt;br /&gt;
powerslurm-login, powerslurm-login2, or powerslurm-login3.&lt;br /&gt;
&lt;br /&gt;
If you have an SSH key set up for password-less login, you can specify it like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Replace &amp;#039;your_username&amp;#039; and &amp;#039;/path/to/your/private_key&amp;#039; accordingly&lt;br /&gt;
ssh -i /path/to/your/private_key your_username@slurmlogin.tau.ac.il&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Environment Modules ==&lt;br /&gt;
&lt;br /&gt;
Environment Modules in SLURM allow users to dynamically modify their shell environment, providing an easy way to load and unload different software applications, libraries, and their dependencies. This system helps avoid conflicts between software versions and ensures the correct environment for running specific applications.&lt;br /&gt;
&lt;br /&gt;
Here are some common commands to work with environment modules:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#List Available Modules: To see all the modules available on the system, use:&lt;br /&gt;
module avail&lt;br /&gt;
&lt;br /&gt;
#To search for a specific module by name (e.g., `gcc`), use:&lt;br /&gt;
module avail gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#Get Detailed Information About a Module: The `module spider` command provides detailed information about a module, including versions, dependencies, and descriptions:&lt;br /&gt;
module spider gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#View Module Settings: To see what environment variables and settings will be modified by a module, use:&lt;br /&gt;
module show gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#Load a Module: To set up the environment for a specific software, use the `module load` command. For example, to load GCC version 12.1.0:&lt;br /&gt;
module load gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#List Loaded Modules: To view all currently loaded modules in your session, use:&lt;br /&gt;
module list&lt;br /&gt;
&lt;br /&gt;
#Unload a Module: To unload a specific module from your environment, use:&lt;br /&gt;
module unload gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#Unload All Modules:** If you need to clear your environment of all loaded modules, use:&lt;br /&gt;
module purge&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;By using these commands, you can easily manage the software environments needed for different tasks, ensuring compatibility and reducing potential conflicts between software versions.&lt;br /&gt;
&lt;br /&gt;
== Basic Job Submission Commands ==&lt;br /&gt;
&lt;br /&gt;
=== Finding Your Account and Partition ===&lt;br /&gt;
&lt;br /&gt;
Before submitting a job, you need to know which partitions you have permission to use.&lt;br /&gt;
&lt;br /&gt;
Run the command `&amp;lt;code&amp;gt;check_my_partitions&amp;lt;/code&amp;gt;` to view a list of all the partitions you have permission to send jobs to.&lt;br /&gt;
&lt;br /&gt;
== Submitting Jobs==&lt;br /&gt;
sbatch: Submits a job script for batch processing.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    sbatch --ntasks=1 --time=10 -p power-general-shared-pool -A public-users_v2 --qos=public pre_process.bash&lt;br /&gt;
   # This command submits pre_process.bash to the power-general partition for 10 minutes. &lt;br /&gt;
   # With 1 GPU:&lt;br /&gt;
    sbatch --gres=gpu:1 -p gpu-general-pool -A public-users_v2 --qos=public gpu_job.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Submitting Multiple Jobs ===&lt;br /&gt;
&lt;br /&gt;
If you need to submit many similar jobs (hundreds or more), you should use a **Slurm job array**. Submitting each job individually using separate `sbatch` commands places a heavy load on the scheduler, slowing down job processing across the cluster. Job arrays allow you to bundle many related jobs together as a single submission. This is more efficient and easier to manage.&lt;br /&gt;
&lt;br /&gt;
Each task in the array runs independently like a separate job, but the array is submitted as a single job ID for scheduling and tracking purposes.&lt;br /&gt;
You can customize the behavior of each task using the environment variable &amp;lt;code&amp;gt;SLURM_ARRAY_TASK_ID&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Script Example: Job Array ====&lt;br /&gt;
&lt;br /&gt;
This script submits a job array with 100 tasks, each processing a different input file. The array reduces scheduler load and simplifies job tracking.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=array_job            # Job name&lt;br /&gt;
#SBATCH --account=public-users_v2       # Account name&lt;br /&gt;
#SBATCH --partition=power-general-shared-pool       # Partition name&lt;br /&gt;
#SBATCH --qos=public                    # qos type&lt;br /&gt;
#SBATCH --time=02:00:00                 # Max run time (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=1                      # Number of tasks per array job&lt;br /&gt;
#SBATCH --nodes=1                       # Number of nodes&lt;br /&gt;
#SBATCH --cpus-per-task=1               # CPUs per task&lt;br /&gt;
#SBATCH --mem-per-cpu=4G                # Memory per CPU&lt;br /&gt;
#SBATCH --array=1-100                   # Array range: 100 tasks&lt;br /&gt;
#SBATCH --output=array_job_%A_%a.out    # Output file: Job ID and array task ID&lt;br /&gt;
#SBATCH --error=array_job_%A_%a.err     # Error file: Job ID and array task ID&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Starting SLURM array task&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Array Task ID: $SLURM_ARRAY_TASK_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on node(s): $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Your application commands go here&lt;br /&gt;
# You can use $SLURM_ARRAY_TASK_ID to customize behavior per task&lt;br /&gt;
# ./my_program input_${SLURM_ARRAY_TASK_ID}.txt&lt;br /&gt;
echo &amp;quot;Task completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example:&lt;br /&gt;
* The job array consists of 100 tasks.&lt;br /&gt;
* Each task runs the same script but with a different input file.&lt;br /&gt;
* You access the task ID using the environment variable &amp;lt;code&amp;gt;SLURM_ARRAY_TASK_ID&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The output and error logs are separated per task using &amp;lt;code&amp;gt;%A&amp;lt;/code&amp;gt; (job ID) and &amp;lt;code&amp;gt;%a&amp;lt;/code&amp;gt; (array task ID).&lt;br /&gt;
&lt;br /&gt;
==== Script Example: Job Array with different parameters per task ====&lt;br /&gt;
&lt;br /&gt;
This script submits a job array with 3 tasks. Each task runs the same program with a different input file: `data1.txt`, `data2.txt`, and `data3.txt`.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=array_job            # Job name&lt;br /&gt;
#SBATCH --account=public-users_v2       # Account name&lt;br /&gt;
#SBATCH --partition=power-general-shared-pool       # Partition name&lt;br /&gt;
#SBATCH --qos=public                    # qos type&lt;br /&gt;
#SBATCH --time=01:00:00                 # Max run time (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=1                      # Number of tasks per array job&lt;br /&gt;
#SBATCH --nodes=1                       # Number of nodes&lt;br /&gt;
#SBATCH --cpus-per-task=1               # CPUs per task&lt;br /&gt;
#SBATCH --mem-per-cpu=2G                # Memory per CPU&lt;br /&gt;
#SBATCH --array=1-3                     # Run 3 tasks with IDs 1, 2, 3&lt;br /&gt;
#SBATCH --output=array_%A_%a.out        # Output file: Job ID and task ID&lt;br /&gt;
#SBATCH --error=array_%A_%a.err         # Error file: Job ID and task ID&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Starting SLURM array task&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Array Task ID: $SLURM_ARRAY_TASK_ID&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Each task runs the program with a different input file&lt;br /&gt;
./my_program data${SLURM_ARRAY_TASK_ID}.txt&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Task completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Writing Single SLURM Job Scripts===&lt;br /&gt;
&lt;br /&gt;
Here is a simple job script example:&lt;br /&gt;
&lt;br /&gt;
==== Basic Script====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=my_job             # Job name&lt;br /&gt;
#SBATCH --account=public-users_v2     # Account name&lt;br /&gt;
#SBATCH --partition=power-general-shared-pool       # Partition name&lt;br /&gt;
#SBATCH --qos=public                  # qos type&lt;br /&gt;
#SBATCH --time=02:00:00               # Max run time (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=1                    # Number of tasks&lt;br /&gt;
#SBATCH --nodes=1                     # Number of nodes&lt;br /&gt;
#SBATCH --cpus-per-task=1             # CPUs per task&lt;br /&gt;
#SBATCH --mem-per-cpu=4G              # Memory per CPU&lt;br /&gt;
#SBATCH --output=my_job_%j.out        # Output file&lt;br /&gt;
#SBATCH --error=my_job_%j.err         # Error file&lt;br /&gt;
#SBATCH --mail-user=&amp;lt;your email&amp;gt;      # Your mail address to receive an email&lt;br /&gt;
#SBATCH --mail-type=END,FAIL          # The mail will be sent upon ending the script successfully or not&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Starting my SLURM job&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on nodes: $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Your application commands go here&lt;br /&gt;
# ./my_program&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Job completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To ask for x cores interactively:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --ntasks=1 --cpus-per-task=x  --partition=power-general-public-pool --account=public-users_v2 --qos=public --nodes=1 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, need for now also to set slurm parameters inside the script, or within the interactive job:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export SLURM_TASKS_PER_NODE=48&lt;br /&gt;
export SLURM_CPUS_ON_NODE=48&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Script for 1 GPU ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=gpu_job             # Job name&lt;br /&gt;
#SBATCH --account=my_account           # Account name&lt;br /&gt;
#SBATCH --partition=gpu-general-pool   # Partition name&lt;br /&gt;
#SBATCH --qos=my_qos                   # qos type&lt;br /&gt;
#SBATCH --time=02:00:00                # Max run time&lt;br /&gt;
#SBATCH --ntasks=1                     # Number of tasks&lt;br /&gt;
#SBATCH --nodes=1                      # Number of nodes&lt;br /&gt;
#SBATCH --cpus-per-task=1              # CPUs per task&lt;br /&gt;
#SBATCH --gres=gpu:1                   # Number of GPUs&lt;br /&gt;
#SBATCH --mem-per-cpu=4G               # Memory per CPU&lt;br /&gt;
#SBATCH --output=my_job_%j.out         # Output file&lt;br /&gt;
#SBATCH --error=my_job_%j.err          # Error file&lt;br /&gt;
&lt;br /&gt;
module load python/python-3.8&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Starting GPU job&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on nodes: $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Your GPU commands go here&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Job completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
For excluding a node, one may add the following&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
#SBATCH --exclude=compute-0-[100-103],compute-0-67&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Importance of Correct RAM Usage in Jobs===&lt;br /&gt;
&lt;br /&gt;
When writing SLURM job scripts, it&amp;#039;s crucial to understand and correctly specify the memory requirements for your job. &lt;br /&gt;
&lt;br /&gt;
Proper memory allocation ensures efficient resource usage and prevents job failures due to out-of-memory (OOM) errors.&lt;br /&gt;
&lt;br /&gt;
==== Why Correct RAM Usage Matters ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Resource Efficiency&amp;#039;&amp;#039;&amp;#039;: Allocating the right amount of memory helps in optimal resource utilization, allowing more jobs to run simultaneously on the cluster.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Job Stability&amp;#039;&amp;#039;&amp;#039;: Underestimating memory requirements can lead to OOM errors, causing your job to fail and waste computational resources.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Performance&amp;#039;&amp;#039;&amp;#039;: Overestimating memory needs can lead to underutilization of resources, potentially delaying other jobs in the queue.&lt;br /&gt;
&lt;br /&gt;
==== How to Specify Memory in SLURM ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;--mem&amp;#039;&amp;#039;&amp;#039;: Specifies the total memory required for the job.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;--mem-per-cpu&amp;#039;&amp;#039;&amp;#039;: Specifies the memory required per CPU.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#SBATCH --mem=4G              # Total memory for the job&lt;br /&gt;
#SBATCH --mem-per-cpu=2G      # Memory per CPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interactive Jobs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#Start an interactive session:&lt;br /&gt;
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --pty bash&lt;br /&gt;
&lt;br /&gt;
#Specify a compute node:&lt;br /&gt;
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --nodelist=&amp;quot;compute-0-12&amp;quot; --pty bash&lt;br /&gt;
&lt;br /&gt;
#Using GUI:&lt;br /&gt;
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --x11 /bin/bash&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Submitting RELION Jobs===&lt;br /&gt;
&lt;br /&gt;
To submit a RELION job interactively on the &amp;lt;code&amp;gt;gpu-relion&amp;lt;/code&amp;gt; queue with X11 forwarding, use the following steps:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#Start an interactive session with X11:&lt;br /&gt;
srun --ntasks=1 -p gpu-relion-pool -A gpu-relion-users_v2 --qos=owner --x11 --pty bash&lt;br /&gt;
#Load the RELION module:&lt;br /&gt;
module load relion/relion-4.0.1&lt;br /&gt;
#Launch RELION:&lt;br /&gt;
relion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running matlab example==&lt;br /&gt;
In this example there are 3 files:&lt;br /&gt;
&lt;br /&gt;
myTable.m ⇒ This matlab file calculates something&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fprintf(&amp;#039;=======================================\n&amp;#039;);&lt;br /&gt;
fprintf(&amp;#039; a             b             c              d             \n&amp;#039;);&lt;br /&gt;
fprintf(&amp;#039;=======================================\n&amp;#039;);&lt;br /&gt;
while 1&lt;br /&gt;
                for j = 1:10&lt;br /&gt;
                                a = sin(10*j);&lt;br /&gt;
                                b = a*cos(10*j);&lt;br /&gt;
                                c = a + b;&lt;br /&gt;
                                d = a - b;&lt;br /&gt;
                                fprintf(&amp;#039;%+6.5f   %+6.5f   %+6.5f   %+6.5f   \n&amp;#039;,a,b,c,d);&lt;br /&gt;
                end&lt;br /&gt;
end&lt;br /&gt;
fprintf(&amp;#039;=======================================\n&amp;#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
my_table_script.sh ⇒ This script executes the matlab program. Need just to run qsub with this script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#SBATCH --mem=50mg&lt;br /&gt;
#SBATCH --partition power-general-shared-pool&lt;br /&gt;
#SBATCH -A public-users_v2&lt;br /&gt;
hostname&lt;br /&gt;
&lt;br /&gt;
cd /a/home/cc/tree/taucc/staff/dvory/matlab&lt;br /&gt;
&lt;br /&gt;
matlab -nodisplay -nosplash -nodesktop -r &amp;quot;run(myTable());exit;&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
run_in_loop.sh ⇒ However, one may also generate many jobs with this file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
for i in {1..100}&lt;br /&gt;
&lt;br /&gt;
do&lt;br /&gt;
&lt;br /&gt;
        sbatch my_table_script.sh&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Running my job is with the command (after doing chmod +x &amp;#039;run_in_loop.sh&amp;#039;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./run_in_loop.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AlphaFold==&lt;br /&gt;
&lt;br /&gt;
AlphaFold is a deep learning tool designed for predicting protein structures.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Guides:&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
&lt;br /&gt;
[https://hpcguide.tau.ac.il/index.php?title=Alphafold AlphaFold Guide]&lt;br /&gt;
&lt;br /&gt;
[https://hpcguide.tau.ac.il/index.php?title=Alphafold3 AlphaFold3 Guide]&lt;br /&gt;
&lt;br /&gt;
==Common SLURM Commands==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#View all queues (partitions):&lt;br /&gt;
sinfo&lt;br /&gt;
#View all jobs:&lt;br /&gt;
squeue&lt;br /&gt;
#View details of a specific job:&lt;br /&gt;
scontrol show job &amp;lt;job_number&amp;gt;&lt;br /&gt;
#Get information about partitions:&lt;br /&gt;
scontrol show partition&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting &amp;amp; Tips ==&lt;br /&gt;
&lt;br /&gt;
=== Common Errors ===&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;code&amp;gt;srun: error: Unable to allocate resources: No partition specified or system default partition&amp;lt;/code&amp;gt;  &amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;Solution:&amp;#039;&amp;#039;&amp;#039; Always specify a partition. Example:  &amp;lt;code&amp;gt;srun --pty -c 1 --mem=2G -p power-general /bin/bash&amp;lt;/code&amp;gt;&lt;br /&gt;
# Job failed, and upon doing scontrol show job job_id or when running sacct -j job_id -o JobID,JobName,State%20  &amp;lt;br /&amp;gt;you see:   &amp;lt;code&amp;gt;JobState=OUT_OF_MEMORY Reason=OutOfMemory&amp;lt;/code&amp;gt;  or :&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
JobID           JobName                State &lt;br /&gt;
------------ ---------- -------------------- &lt;br /&gt;
71             oom_test        OUT_OF_MEMORY &lt;br /&gt;
71.batch          batch        OUT_OF_MEMORY &lt;br /&gt;
71.extern        extern            COMPLETED &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;it means that the ram requested for the job was not enough, please resubmit the job again with more ram. see [https://wikihpc.tau.ac.il/index.php?title=Slurm_user_guide#Estimating_RAM_Usage below] for help with understanding how much ram your job may need.&lt;br /&gt;
&lt;br /&gt;
=== Chain Jobs ===&lt;br /&gt;
Use the &amp;lt;code&amp;gt;--depend&amp;lt;/code&amp;gt; flag to set job dependencies.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sbatch --ntasks=1 --time=60 -p power-general -A power-general-users --depend=45001 do_work.bash&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Always Specify Resources ===&lt;br /&gt;
When submitting jobs, ensure you include all required resources like partition, memory, and CPUs to avoid job failures.&lt;br /&gt;
&lt;br /&gt;
=== Attaching to Running Jobs ===&lt;br /&gt;
If you need to monitor or interact with a running job, use &amp;lt;code&amp;gt;sattach&amp;lt;/code&amp;gt;. This command allows you to attach to a job&amp;#039;s input, output, and error streams in real-time.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sattach &amp;lt;job_id&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To view job steps of a specific job, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scontrol show job &amp;lt;job_id&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for sections labeled &amp;quot;StepId&amp;quot; within the output. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For specific job steps, use:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sattach &amp;lt;job_id.step_id&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;sattach&amp;lt;/code&amp;gt; is particularly useful for interactive jobs, where you can provide input directly. For non-interactive jobs, it acts like &amp;lt;code&amp;gt;tail -f&amp;lt;/code&amp;gt;, allowing you to monitor the output stream.&lt;br /&gt;
&lt;br /&gt;
=== Estimating RAM Usage ===&lt;br /&gt;
&lt;br /&gt;
When writing SLURM job scripts, it&amp;#039;s crucial to understand and correctly specify the memory requirements for your job. Proper memory allocation ensures efficient resource usage and prevents job failures due to out-of-memory (OOM) errors.&lt;br /&gt;
&lt;br /&gt;
==== Tips for Estimating RAM Usage ====&lt;br /&gt;
&lt;br /&gt;
* Check Application Documentation: Refer to the official documentation or user guides for memory-related information.&lt;br /&gt;
* Run a Small Test Job: Submit a smaller version of your job and monitor its memory usage using commands like `free -m`, `top`, or `htop`.&lt;br /&gt;
* Use Profiling Tools: Tools like `valgrind`, `gprof`, or built-in profilers can help you understand memory usage.&lt;br /&gt;
* Analyze Previous Jobs: Review SLURM logs and job statistics for insights into memory consumption of past jobs.&lt;br /&gt;
* Consult with Peers or Experts: Ask colleagues or experts who have experience with similar workloads.&lt;br /&gt;
&lt;br /&gt;
==== Example: Monitoring Memory Usage ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#SBATCH --job-name=memory_test&lt;br /&gt;
#SBATCH --account=your_account&lt;br /&gt;
#SBATCH --partition=your_partition&lt;br /&gt;
#SBATCH --qos=your_qos&lt;br /&gt;
#SBATCH --time=01:00:00&lt;br /&gt;
#SBATCH --ntasks=1&lt;br /&gt;
#SBATCH --cpus-per-task=1&lt;br /&gt;
#SBATCH --mem=4G&lt;br /&gt;
#SBATCH --output=memory_test.out&lt;br /&gt;
#SBATCH --error=memory_test.err&lt;br /&gt;
&lt;br /&gt;
# Monitor memory usage&lt;br /&gt;
echo &amp;quot;Memory usage before running the job:&amp;quot;&lt;br /&gt;
free -m&lt;br /&gt;
&lt;br /&gt;
# Your application commands go here&lt;br /&gt;
# ./your_application&lt;br /&gt;
&lt;br /&gt;
# Monitor memory usage after running the job&lt;br /&gt;
echo &amp;quot;Memory usage after running the job:&amp;quot;&lt;br /&gt;
free -m&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== General Tips ====&lt;br /&gt;
&lt;br /&gt;
* Start Small: Begin with a conservative memory request and increase it based on observed usage.&lt;br /&gt;
* Consider Peak Usage: Plan for peak memory usage to avoid OOM errors.&lt;br /&gt;
* Use SLURM&amp;#039;s Memory Reporting: Use `sacct` to view memory usage statistics.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sacct -j &amp;lt;job_id&amp;gt; --format=JobID,JobName,MaxRSS,Elapsed&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Submitting_a_job_to_a_slurm_queue&amp;diff=1530</id>
		<title>Submitting a job to a slurm queue</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Submitting_a_job_to_a_slurm_queue&amp;diff=1530"/>
		<updated>2025-10-23T06:18:53Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Accessing the System ==&lt;br /&gt;
&lt;br /&gt;
To submit jobs to SLURM at Tel Aviv University, you need to access the system through one of the following login nodes:&lt;br /&gt;
&lt;br /&gt;
* slurmlogin.tau.ac.il&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Requirements for Access ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Group Membership&amp;#039;&amp;#039;&amp;#039;: You must be part of the &amp;quot;power&amp;quot; group to access the resources.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;University Credentials&amp;#039;&amp;#039;&amp;#039;: Use your Tel Aviv University username and password to log in.&lt;br /&gt;
&lt;br /&gt;
These login nodes are your starting point for submitting jobs, checking job status, and managing your SLURM tasks.&lt;br /&gt;
&lt;br /&gt;
=== SSH Example ===&lt;br /&gt;
&lt;br /&gt;
To access the system using SSH, use the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Replace &amp;#039;your_username&amp;#039; with your actual Tel Aviv University username&lt;br /&gt;
ssh your_username@slurmlogin.tau.ac.il&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your connection will be automatically routed to one of the login nodes:&lt;br /&gt;
powerslurm-login, powerslurm-login2, or powerslurm-login3.&lt;br /&gt;
&lt;br /&gt;
If you have an SSH key set up for password-less login, you can specify it like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Replace &amp;#039;your_username&amp;#039; and &amp;#039;/path/to/your/private_key&amp;#039; accordingly&lt;br /&gt;
ssh -i /path/to/your/private_key your_username@slurmlogin.tau.ac.il&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Environment Modules ==&lt;br /&gt;
&lt;br /&gt;
Environment Modules in SLURM allow users to dynamically modify their shell environment, providing an easy way to load and unload different software applications, libraries, and their dependencies. This system helps avoid conflicts between software versions and ensures the correct environment for running specific applications.&lt;br /&gt;
&lt;br /&gt;
Here are some common commands to work with environment modules:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#List Available Modules: To see all the modules available on the system, use:&lt;br /&gt;
module avail&lt;br /&gt;
&lt;br /&gt;
#To search for a specific module by name (e.g., `gcc`), use:&lt;br /&gt;
module avail gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#Get Detailed Information About a Module: The `module spider` command provides detailed information about a module, including versions, dependencies, and descriptions:&lt;br /&gt;
module spider gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#View Module Settings: To see what environment variables and settings will be modified by a module, use:&lt;br /&gt;
module show gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#Load a Module: To set up the environment for a specific software, use the `module load` command. For example, to load GCC version 12.1.0:&lt;br /&gt;
module load gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#List Loaded Modules: To view all currently loaded modules in your session, use:&lt;br /&gt;
module list&lt;br /&gt;
&lt;br /&gt;
#Unload a Module: To unload a specific module from your environment, use:&lt;br /&gt;
module unload gcc/gcc-12.1.0&lt;br /&gt;
&lt;br /&gt;
#Unload All Modules:** If you need to clear your environment of all loaded modules, use:&lt;br /&gt;
module purge&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;By using these commands, you can easily manage the software environments needed for different tasks, ensuring compatibility and reducing potential conflicts between software versions.&lt;br /&gt;
&lt;br /&gt;
== Basic Job Submission Commands ==&lt;br /&gt;
&lt;br /&gt;
=== Finding Your Account and Partition ===&lt;br /&gt;
&lt;br /&gt;
Before submitting a job, you need to know which partitions you have permission to use.&lt;br /&gt;
&lt;br /&gt;
Run the command `&amp;lt;code&amp;gt;check_my_partitions&amp;lt;/code&amp;gt;` to view a list of all the partitions you have permission to send jobs to.&lt;br /&gt;
&lt;br /&gt;
== Submitting Jobs==&lt;br /&gt;
sbatch: Submits a job script for batch processing.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    sbatch --ntasks=1 --time=10 -p power-general -A power-general-users pre_process.bash&lt;br /&gt;
   # This command submits pre_process.bash to the power-general partition for 10 minutes. &lt;br /&gt;
   # With 1 GPU:&lt;br /&gt;
    sbatch --gres=gpu:1 -p gpu-general -A gpu-general-users gpu_job.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Submitting Multiple Jobs ===&lt;br /&gt;
&lt;br /&gt;
If you need to submit many similar jobs (hundreds or more), you should use a **Slurm job array**. Submitting each job individually using separate `sbatch` commands places a heavy load on the scheduler, slowing down job processing across the cluster. Job arrays allow you to bundle many related jobs together as a single submission. This is more efficient and easier to manage.&lt;br /&gt;
&lt;br /&gt;
Each task in the array runs independently like a separate job, but the array is submitted as a single job ID for scheduling and tracking purposes.&lt;br /&gt;
You can customize the behavior of each task using the environment variable &amp;lt;code&amp;gt;SLURM_ARRAY_TASK_ID&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Script Example: Job Array ====&lt;br /&gt;
&lt;br /&gt;
This script submits a job array with 100 tasks, each processing a different input file. The array reduces scheduler load and simplifies job tracking.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=array_job            # Job name&lt;br /&gt;
#SBATCH --account=public-users_v2       # Account name&lt;br /&gt;
#SBATCH --partition=power-general-shared-pool       # Partition name&lt;br /&gt;
#SBATCH --qos=public                    # qos type&lt;br /&gt;
#SBATCH --time=02:00:00                 # Max run time (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=1                      # Number of tasks per array job&lt;br /&gt;
#SBATCH --nodes=1                       # Number of nodes&lt;br /&gt;
#SBATCH --cpus-per-task=1               # CPUs per task&lt;br /&gt;
#SBATCH --mem-per-cpu=4G                # Memory per CPU&lt;br /&gt;
#SBATCH --array=1-100                   # Array range: 100 tasks&lt;br /&gt;
#SBATCH --output=array_job_%A_%a.out    # Output file: Job ID and array task ID&lt;br /&gt;
#SBATCH --error=array_job_%A_%a.err     # Error file: Job ID and array task ID&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Starting SLURM array task&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Array Task ID: $SLURM_ARRAY_TASK_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on node(s): $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Your application commands go here&lt;br /&gt;
# You can use $SLURM_ARRAY_TASK_ID to customize behavior per task&lt;br /&gt;
# ./my_program input_${SLURM_ARRAY_TASK_ID}.txt&lt;br /&gt;
echo &amp;quot;Task completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example:&lt;br /&gt;
* The job array consists of 100 tasks.&lt;br /&gt;
* Each task runs the same script but with a different input file.&lt;br /&gt;
* You access the task ID using the environment variable &amp;lt;code&amp;gt;SLURM_ARRAY_TASK_ID&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The output and error logs are separated per task using &amp;lt;code&amp;gt;%A&amp;lt;/code&amp;gt; (job ID) and &amp;lt;code&amp;gt;%a&amp;lt;/code&amp;gt; (array task ID).&lt;br /&gt;
&lt;br /&gt;
==== Script Example: Job Array with different parameters per task ====&lt;br /&gt;
&lt;br /&gt;
This script submits a job array with 3 tasks. Each task runs the same program with a different input file: `data1.txt`, `data2.txt`, and `data3.txt`.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=array_job            # Job name&lt;br /&gt;
#SBATCH --account=public-users_v2       # Account name&lt;br /&gt;
#SBATCH --partition=power-general-shared-pool       # Partition name&lt;br /&gt;
#SBATCH --qos=public                    # qos type&lt;br /&gt;
#SBATCH --time=01:00:00                 # Max run time (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=1                      # Number of tasks per array job&lt;br /&gt;
#SBATCH --nodes=1                       # Number of nodes&lt;br /&gt;
#SBATCH --cpus-per-task=1               # CPUs per task&lt;br /&gt;
#SBATCH --mem-per-cpu=2G                # Memory per CPU&lt;br /&gt;
#SBATCH --array=1-3                     # Run 3 tasks with IDs 1, 2, 3&lt;br /&gt;
#SBATCH --output=array_%A_%a.out        # Output file: Job ID and task ID&lt;br /&gt;
#SBATCH --error=array_%A_%a.err         # Error file: Job ID and task ID&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Starting SLURM array task&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Array Task ID: $SLURM_ARRAY_TASK_ID&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Each task runs the program with a different input file&lt;br /&gt;
./my_program data${SLURM_ARRAY_TASK_ID}.txt&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Task completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Writing Single SLURM Job Scripts===&lt;br /&gt;
&lt;br /&gt;
Here is a simple job script example:&lt;br /&gt;
&lt;br /&gt;
==== Basic Script====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=my_job             # Job name&lt;br /&gt;
#SBATCH --account=public-users_v2     # Account name&lt;br /&gt;
#SBATCH --partition=power-general-shared-pool       # Partition name&lt;br /&gt;
#SBATCH --qos=public                  # qos type&lt;br /&gt;
#SBATCH --time=02:00:00               # Max run time (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=1                    # Number of tasks&lt;br /&gt;
#SBATCH --nodes=1                     # Number of nodes&lt;br /&gt;
#SBATCH --cpus-per-task=1             # CPUs per task&lt;br /&gt;
#SBATCH --mem-per-cpu=4G              # Memory per CPU&lt;br /&gt;
#SBATCH --output=my_job_%j.out        # Output file&lt;br /&gt;
#SBATCH --error=my_job_%j.err         # Error file&lt;br /&gt;
#SBATCH --mail-user=&amp;lt;your email&amp;gt;      # Your mail address to receive an email&lt;br /&gt;
#SBATCH --mail-type=END,FAIL          # The mail will be sent upon ending the script successfully or not&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Starting my SLURM job&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on nodes: $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Your application commands go here&lt;br /&gt;
# ./my_program&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Job completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To ask for x cores interactively:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srun --ntasks=1 --cpus-per-task=x  --partition=power-general-public-pool --account=public-users_v2 --qos=public --nodes=1 --pty bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, need for now also to set slurm parameters inside the script, or within the interactive job:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export SLURM_TASKS_PER_NODE=48&lt;br /&gt;
export SLURM_CPUS_ON_NODE=48&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Script for 1 GPU ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=gpu_job             # Job name&lt;br /&gt;
#SBATCH --account=my_account           # Account name&lt;br /&gt;
#SBATCH --partition=gpu-general-pool   # Partition name&lt;br /&gt;
#SBATCH --qos=my_qos                   # qos type&lt;br /&gt;
#SBATCH --time=02:00:00                # Max run time&lt;br /&gt;
#SBATCH --ntasks=1                     # Number of tasks&lt;br /&gt;
#SBATCH --nodes=1                      # Number of nodes&lt;br /&gt;
#SBATCH --cpus-per-task=1              # CPUs per task&lt;br /&gt;
#SBATCH --gres=gpu:1                   # Number of GPUs&lt;br /&gt;
#SBATCH --mem-per-cpu=4G               # Memory per CPU&lt;br /&gt;
#SBATCH --output=my_job_%j.out         # Output file&lt;br /&gt;
#SBATCH --error=my_job_%j.err          # Error file&lt;br /&gt;
&lt;br /&gt;
module load python/python-3.8&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Starting GPU job&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on nodes: $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Your GPU commands go here&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Job completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
For excluding a node, one may add the following&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
#SBATCH --exclude=compute-0-[100-103],compute-0-67&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Importance of Correct RAM Usage in Jobs===&lt;br /&gt;
&lt;br /&gt;
When writing SLURM job scripts, it&amp;#039;s crucial to understand and correctly specify the memory requirements for your job. &lt;br /&gt;
&lt;br /&gt;
Proper memory allocation ensures efficient resource usage and prevents job failures due to out-of-memory (OOM) errors.&lt;br /&gt;
&lt;br /&gt;
==== Why Correct RAM Usage Matters ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Resource Efficiency&amp;#039;&amp;#039;&amp;#039;: Allocating the right amount of memory helps in optimal resource utilization, allowing more jobs to run simultaneously on the cluster.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Job Stability&amp;#039;&amp;#039;&amp;#039;: Underestimating memory requirements can lead to OOM errors, causing your job to fail and waste computational resources.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Performance&amp;#039;&amp;#039;&amp;#039;: Overestimating memory needs can lead to underutilization of resources, potentially delaying other jobs in the queue.&lt;br /&gt;
&lt;br /&gt;
==== How to Specify Memory in SLURM ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;--mem&amp;#039;&amp;#039;&amp;#039;: Specifies the total memory required for the job.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;--mem-per-cpu&amp;#039;&amp;#039;&amp;#039;: Specifies the memory required per CPU.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&amp;#039;:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#SBATCH --mem=4G              # Total memory for the job&lt;br /&gt;
#SBATCH --mem-per-cpu=2G      # Memory per CPU&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interactive Jobs===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#Start an interactive session:&lt;br /&gt;
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --pty bash&lt;br /&gt;
&lt;br /&gt;
#Specify a compute node:&lt;br /&gt;
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --nodelist=&amp;quot;compute-0-12&amp;quot; --pty bash&lt;br /&gt;
&lt;br /&gt;
#Using GUI:&lt;br /&gt;
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --x11 /bin/bash&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Submitting RELION Jobs===&lt;br /&gt;
&lt;br /&gt;
To submit a RELION job interactively on the &amp;lt;code&amp;gt;gpu-relion&amp;lt;/code&amp;gt; queue with X11 forwarding, use the following steps:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#Start an interactive session with X11:&lt;br /&gt;
srun --ntasks=1 -p gpu-relion-pool -A gpu-relion-users_v2 --qos=owner --x11 --pty bash&lt;br /&gt;
#Load the RELION module:&lt;br /&gt;
module load relion/relion-4.0.1&lt;br /&gt;
#Launch RELION:&lt;br /&gt;
relion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running matlab example==&lt;br /&gt;
In this example there are 3 files:&lt;br /&gt;
&lt;br /&gt;
myTable.m ⇒ This matlab file calculates something&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fprintf(&amp;#039;=======================================\n&amp;#039;);&lt;br /&gt;
fprintf(&amp;#039; a             b             c              d             \n&amp;#039;);&lt;br /&gt;
fprintf(&amp;#039;=======================================\n&amp;#039;);&lt;br /&gt;
while 1&lt;br /&gt;
                for j = 1:10&lt;br /&gt;
                                a = sin(10*j);&lt;br /&gt;
                                b = a*cos(10*j);&lt;br /&gt;
                                c = a + b;&lt;br /&gt;
                                d = a - b;&lt;br /&gt;
                                fprintf(&amp;#039;%+6.5f   %+6.5f   %+6.5f   %+6.5f   \n&amp;#039;,a,b,c,d);&lt;br /&gt;
                end&lt;br /&gt;
end&lt;br /&gt;
fprintf(&amp;#039;=======================================\n&amp;#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
my_table_script.sh ⇒ This script executes the matlab program. Need just to run qsub with this script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#SBATCH --mem=50mg&lt;br /&gt;
#SBATCH --partition power-general-shared-pool&lt;br /&gt;
#SBATCH -A public-users_v2&lt;br /&gt;
hostname&lt;br /&gt;
&lt;br /&gt;
cd /a/home/cc/tree/taucc/staff/dvory/matlab&lt;br /&gt;
&lt;br /&gt;
matlab -nodisplay -nosplash -nodesktop -r &amp;quot;run(myTable());exit;&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
run_in_loop.sh ⇒ However, one may also generate many jobs with this file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
for i in {1..100}&lt;br /&gt;
&lt;br /&gt;
do&lt;br /&gt;
&lt;br /&gt;
        sbatch my_table_script.sh&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Running my job is with the command (after doing chmod +x &amp;#039;run_in_loop.sh&amp;#039;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./run_in_loop.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AlphaFold==&lt;br /&gt;
&lt;br /&gt;
AlphaFold is a deep learning tool designed for predicting protein structures.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Guides:&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
&lt;br /&gt;
[https://hpcguide.tau.ac.il/index.php?title=Alphafold AlphaFold Guide]&lt;br /&gt;
&lt;br /&gt;
[https://hpcguide.tau.ac.il/index.php?title=Alphafold3 AlphaFold3 Guide]&lt;br /&gt;
&lt;br /&gt;
==Common SLURM Commands==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#View all queues (partitions):&lt;br /&gt;
sinfo&lt;br /&gt;
#View all jobs:&lt;br /&gt;
squeue&lt;br /&gt;
#View details of a specific job:&lt;br /&gt;
scontrol show job &amp;lt;job_number&amp;gt;&lt;br /&gt;
#Get information about partitions:&lt;br /&gt;
scontrol show partition&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting &amp;amp; Tips ==&lt;br /&gt;
&lt;br /&gt;
=== Common Errors ===&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;code&amp;gt;srun: error: Unable to allocate resources: No partition specified or system default partition&amp;lt;/code&amp;gt;  &amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;Solution:&amp;#039;&amp;#039;&amp;#039; Always specify a partition. Example:  &amp;lt;code&amp;gt;srun --pty -c 1 --mem=2G -p power-general /bin/bash&amp;lt;/code&amp;gt;&lt;br /&gt;
# Job failed, and upon doing scontrol show job job_id or when running sacct -j job_id -o JobID,JobName,State%20  &amp;lt;br /&amp;gt;you see:   &amp;lt;code&amp;gt;JobState=OUT_OF_MEMORY Reason=OutOfMemory&amp;lt;/code&amp;gt;  or :&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
JobID           JobName                State &lt;br /&gt;
------------ ---------- -------------------- &lt;br /&gt;
71             oom_test        OUT_OF_MEMORY &lt;br /&gt;
71.batch          batch        OUT_OF_MEMORY &lt;br /&gt;
71.extern        extern            COMPLETED &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;it means that the ram requested for the job was not enough, please resubmit the job again with more ram. see [https://wikihpc.tau.ac.il/index.php?title=Slurm_user_guide#Estimating_RAM_Usage below] for help with understanding how much ram your job may need.&lt;br /&gt;
&lt;br /&gt;
=== Chain Jobs ===&lt;br /&gt;
Use the &amp;lt;code&amp;gt;--depend&amp;lt;/code&amp;gt; flag to set job dependencies.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sbatch --ntasks=1 --time=60 -p power-general -A power-general-users --depend=45001 do_work.bash&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Always Specify Resources ===&lt;br /&gt;
When submitting jobs, ensure you include all required resources like partition, memory, and CPUs to avoid job failures.&lt;br /&gt;
&lt;br /&gt;
=== Attaching to Running Jobs ===&lt;br /&gt;
If you need to monitor or interact with a running job, use &amp;lt;code&amp;gt;sattach&amp;lt;/code&amp;gt;. This command allows you to attach to a job&amp;#039;s input, output, and error streams in real-time.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sattach &amp;lt;job_id&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To view job steps of a specific job, use the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scontrol show job &amp;lt;job_id&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for sections labeled &amp;quot;StepId&amp;quot; within the output. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For specific job steps, use:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sattach &amp;lt;job_id.step_id&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;sattach&amp;lt;/code&amp;gt; is particularly useful for interactive jobs, where you can provide input directly. For non-interactive jobs, it acts like &amp;lt;code&amp;gt;tail -f&amp;lt;/code&amp;gt;, allowing you to monitor the output stream.&lt;br /&gt;
&lt;br /&gt;
=== Estimating RAM Usage ===&lt;br /&gt;
&lt;br /&gt;
When writing SLURM job scripts, it&amp;#039;s crucial to understand and correctly specify the memory requirements for your job. Proper memory allocation ensures efficient resource usage and prevents job failures due to out-of-memory (OOM) errors.&lt;br /&gt;
&lt;br /&gt;
==== Tips for Estimating RAM Usage ====&lt;br /&gt;
&lt;br /&gt;
* Check Application Documentation: Refer to the official documentation or user guides for memory-related information.&lt;br /&gt;
* Run a Small Test Job: Submit a smaller version of your job and monitor its memory usage using commands like `free -m`, `top`, or `htop`.&lt;br /&gt;
* Use Profiling Tools: Tools like `valgrind`, `gprof`, or built-in profilers can help you understand memory usage.&lt;br /&gt;
* Analyze Previous Jobs: Review SLURM logs and job statistics for insights into memory consumption of past jobs.&lt;br /&gt;
* Consult with Peers or Experts: Ask colleagues or experts who have experience with similar workloads.&lt;br /&gt;
&lt;br /&gt;
==== Example: Monitoring Memory Usage ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#SBATCH --job-name=memory_test&lt;br /&gt;
#SBATCH --account=your_account&lt;br /&gt;
#SBATCH --partition=your_partition&lt;br /&gt;
#SBATCH --qos=your_qos&lt;br /&gt;
#SBATCH --time=01:00:00&lt;br /&gt;
#SBATCH --ntasks=1&lt;br /&gt;
#SBATCH --cpus-per-task=1&lt;br /&gt;
#SBATCH --mem=4G&lt;br /&gt;
#SBATCH --output=memory_test.out&lt;br /&gt;
#SBATCH --error=memory_test.err&lt;br /&gt;
&lt;br /&gt;
# Monitor memory usage&lt;br /&gt;
echo &amp;quot;Memory usage before running the job:&amp;quot;&lt;br /&gt;
free -m&lt;br /&gt;
&lt;br /&gt;
# Your application commands go here&lt;br /&gt;
# ./your_application&lt;br /&gt;
&lt;br /&gt;
# Monitor memory usage after running the job&lt;br /&gt;
echo &amp;quot;Memory usage after running the job:&amp;quot;&lt;br /&gt;
free -m&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== General Tips ====&lt;br /&gt;
&lt;br /&gt;
* Start Small: Begin with a conservative memory request and increase it based on observed usage.&lt;br /&gt;
* Consider Peak Usage: Plan for peak memory usage to avoid OOM errors.&lt;br /&gt;
* Use SLURM&amp;#039;s Memory Reporting: Use `sacct` to view memory usage statistics.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sacct -j &amp;lt;job_id&amp;gt; --format=JobID,JobName,MaxRSS,Elapsed&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1492</id>
		<title>Security installations</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1492"/>
		<updated>2024-09-26T12:25:59Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EDR - Falcon (for ubuntu 22 and ubuntu 24) ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Falcon client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/edr/falcon-sensor_7.18.0-17106_amd64.deb falcon-sensor_7.18.0-17106_amd64.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
dpkg -i falcon-sensor_7.18.0-17106_amd64.deb&lt;br /&gt;
&lt;br /&gt;
systemctl restart falcon-sensor.service&lt;br /&gt;
&lt;br /&gt;
Need to run below command to register the program (Only for new installation):&lt;br /&gt;
&lt;br /&gt;
/opt/CrowdStrike/falconctl -s --cid=24E96F03F42840719A7F1DC3287E03B9-59&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1491</id>
		<title>Security installations</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1491"/>
		<updated>2024-09-26T12:22:33Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EDR - Falcon (for ubuntu 22 and ubuntu 24) ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Falcon client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/edr/falcon-sensor_7.18.0-17106_amd64.deb falcon-sensor_7.18.0-17106_amd64.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
dpkg -i falcon-sensor_7.18.0-17106_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Now you need to run below command to register the program:&lt;br /&gt;
&lt;br /&gt;
/opt/CrowdStrike/falconctl -s --cid=24E96F03F42840719A7F1DC3287E03B9-59&lt;br /&gt;
&lt;br /&gt;
systemctl restart falcon-sensor.service&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1490</id>
		<title>Security installations</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1490"/>
		<updated>2024-09-26T12:21:11Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EDR - Falcon (for ubuntu 22 and ubuntu 24) ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Falcon client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/edr/falcon-sensor_7.18.0-17106_amd64.deb falcon-sensor_7.18.0-17106_amd64.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
dpkg -i falcon-sensor_7.18.0-17106_amd64.deb&lt;br /&gt;
&lt;br /&gt;
Now you need to run below command to register the program:&lt;br /&gt;
&lt;br /&gt;
/opt/CrowdStrike/falconctl -s --cid=24E96F03F42840719A7F1DC3287E03B9-59&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1489</id>
		<title>Security installations</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1489"/>
		<updated>2024-09-26T12:19:51Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EDR - Falcon (for ubuntu 22 and ubuntu 24) ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Falcon client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/edr/falcon-sensor_7.18.0-17106_amd64.deb falcon-sensor_7.18.0-17106_amd64.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
dpkg -i falcon-sensor_7.18.0-17106_amd64.deb&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1488</id>
		<title>Security installations</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Security_installations&amp;diff=1488"/>
		<updated>2024-09-26T12:18:32Z</updated>

		<summary type="html">&lt;p&gt;Shosh: Created page with &amp;quot;== NAC - Forescout security software for Linux ==     Download and install the Forescout client:  [http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EDR - Falcon ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Falcon client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/edr/falcon-sensor_7.18.0-17106_amd64.deb falcon-sensor_7.18.0-17106_amd64.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
dpkg -i falcon-sensor_7.18.0-17106_amd64.deb&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1487</id>
		<title>NAC and EDR for Linux</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1487"/>
		<updated>2024-09-26T12:17:53Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EDR - Falcon ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Falcon client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/edr/falcon-sensor_7.18.0-17106_amd64.deb falcon-sensor_7.18.0-17106_amd64.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
dpkg -i falcon-sensor_7.18.0-17106_amd64.deb&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1486</id>
		<title>NAC and EDR for Linux</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1486"/>
		<updated>2024-09-26T12:17:36Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EDR - Falcon ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Falcon client:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/edr/falcon-sensor_7.18.0-17106_amd64.deb falcon-sensor_7.18.0-17106_amd64.deb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
dpkg -i falcon-sensor_7.18.0-17106_amd64.deb&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1485</id>
		<title>NAC and EDR for Linux</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1485"/>
		<updated>2024-09-23T12:39:18Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1484</id>
		<title>NAC and EDR for Linux</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1484"/>
		<updated>2024-09-23T12:38:57Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz|ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1483</id>
		<title>NAC and EDR for Linux</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1483"/>
		<updated>2024-09-23T12:38:06Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd secure_connector&lt;br /&gt;
&lt;br /&gt;
./install.sh&lt;br /&gt;
&lt;br /&gt;
systemctl start SecureConnector.service&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1482</id>
		<title>NAC and EDR for Linux</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1482"/>
		<updated>2024-09-23T12:37:11Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
[http://hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
tar -zxvf ForeScoutSecureConnector_64_visible_daemon.tar.gz&lt;br /&gt;
cd secure_connector&lt;br /&gt;
./install.sh&lt;br /&gt;
systemctl start SecureConnector.service&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1480</id>
		<title>NAC and EDR for Linux</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=NAC_and_EDR_for_Linux&amp;diff=1480"/>
		<updated>2024-09-23T12:25:52Z</updated>

		<summary type="html">&lt;p&gt;Shosh: Created page with &amp;quot;== NAC - Forescout security software for Linux ==     Download and install the Forescout client: hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz|For...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== NAC - Forescout security software for Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install the Forescout client:&lt;br /&gt;
[[hpcguide.tau.ac.il/nac/ForeScoutSecureConnector_64_visible_daemon.tar.gz|ForeScoutSecureConnector_64_visible_daemon.tar.gz]]&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Submitting_a_job_to_a_slurm_queue&amp;diff=1475</id>
		<title>Submitting a job to a slurm queue</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Submitting_a_job_to_a_slurm_queue&amp;diff=1475"/>
		<updated>2024-09-18T06:07:48Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SLURM (Simple Linux Utility for Resource Management) is a job scheduler used on many high-performance computing systems. It manages and allocates resources such as compute nodes and controls job execution.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the System ===&lt;br /&gt;
To submit jobs to the SLURM scheduler at Tel Aviv University, you must access the system through one of the designated login nodes. These nodes act as the gateway for submitting and managing your SLURM jobs. The available login nodes are:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;powerslurm-login.tau.ac.il&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;powerslurm-login2.tau.ac.il&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Login Requirements: ====&lt;br /&gt;
&lt;br /&gt;
# Membership in the &amp;quot;power&amp;quot; group: Ensure you are a part of the &amp;quot;power&amp;quot; group which grants the necessary permissions for accessing the HPC resources.&lt;br /&gt;
# University Credentials: Log in using your Tel Aviv University credentials. This ensures secure access and that your job submissions are appropriately accounted for under your user profile.&lt;br /&gt;
&lt;br /&gt;
Remember, these login nodes are the initial point of contact for all your job management tasks, including job submission, monitoring, and other SLURM-related operations.&lt;br /&gt;
&lt;br /&gt;
=== Basic Job Submission Commands ===&lt;br /&gt;
====Finding your account and partition====&lt;br /&gt;
In order to submit jobs to slurm, one needs to know the accounts and partitions she belongs to. Each account may belong to one or more partitions.&lt;br /&gt;
&lt;br /&gt;
To see the account I belong to, please type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sacctmgr show associations where user=dvory format=Account%20&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you know your partition, and would like to know which account you need to specify when using it, please do (on powerslurm-login)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check_allowed_account -p &amp;lt;partition&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check_allowed_account -p power-general&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Example for submitting jobs====&lt;br /&gt;
# sbatch: Submit a batch job script.&lt;br /&gt;
#* Example: &amp;lt;code&amp;gt;sbatch --ntasks=1 --time=10 -p power-general -A power-general-users pre_process.bash&amp;lt;/code&amp;gt;&lt;br /&gt;
#* This submits &amp;lt;code&amp;gt;pre_process.bash&amp;lt;/code&amp;gt; with 1 task for 10 minutes.&lt;br /&gt;
#* Example of chaining jobs: &amp;lt;code&amp;gt;sbatch --ntasks=128 --time=60 -p power-general -A power-general-users --depend=45001 do_work.bash&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Example with GPU: &amp;lt;code&amp;gt;sbatch --ntasks=1 --time=10 --gres=gpu:2 -p gpu-general -A gpu-general-users pre_process.bash&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;sbatch --gres=gpu:1 -p gpu-general -A gpu-general-users gpu_job.sh&amp;lt;/code&amp;gt; &lt;br /&gt;
# srun: Submit an interactive job with MPI (Message Passing Interface), often called a &amp;quot;job step.&amp;quot;&lt;br /&gt;
#* Example: &amp;lt;code&amp;gt;srun --ntasks=2 -p power-general -A power-general-users --label hostname&amp;lt;/code&amp;gt;&lt;br /&gt;
#* With MPI: &amp;lt;code&amp;gt;srun -intasks=2 -p power-general -A power-general-users --label hostname&amp;lt;/code&amp;gt;&lt;br /&gt;
# sattach: Attach stdin/out/err to an existing job or job step.&lt;br /&gt;
&lt;br /&gt;
=== Interactive Job Examples ===&lt;br /&gt;
* Opening a bash shell: &amp;lt;code&amp;gt;srun --ntasks=56 -p power-general -A power-general-users  --pty bash&amp;lt;/code&amp;gt;&lt;br /&gt;
* Specifying compute nodes: &amp;lt;code&amp;gt;srun --ntasks=56 -p power-general -A power-general-users --nodelist=&amp;quot;compute-0-12&amp;quot; --pty bash&amp;lt;/code&amp;gt;&lt;br /&gt;
* Using GUI: &amp;lt;code&amp;gt;srun --ntasks=56 -p power-general -A power-general-users --x11 /bin/bash&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Script Examples: ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#SBATCH --job-name=my_job             # Job name&lt;br /&gt;
#SBATCH --account=power-general-users # Account name for billing&lt;br /&gt;
#SBATCH --partition=power-general     # Partition name&lt;br /&gt;
#SBATCH --time=02:00:00               # Time allotted for the job (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=4                    # Number of tasks (processes)&lt;br /&gt;
#SBATCH --cpus-per-task=1             # Number of CPU cores per task&lt;br /&gt;
#SBATCH --mem-per-cpu=4G              # Memory per CPU core&lt;br /&gt;
#SBATCH --output=my_job_%j.out        # Standard output and error log (%j expands to jobId)&lt;br /&gt;
#SBATCH --error=my_job_%j.err         # Separate file for standard error&lt;br /&gt;
&lt;br /&gt;
# Load modules or software if required&lt;br /&gt;
# module load python/python-3.8&lt;br /&gt;
&lt;br /&gt;
# Print some information about the job&lt;br /&gt;
echo &amp;quot;Starting my SLURM job&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on nodes: $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Run your application, this could be anything from a custom script to standard applications&lt;br /&gt;
# ./my_program&lt;br /&gt;
# python my_script.py&lt;br /&gt;
&lt;br /&gt;
# End of script&lt;br /&gt;
echo &amp;quot;Job completed&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Script example with GPU ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#SBATCH --job-name=my_job             # Job name&lt;br /&gt;
#SBATCH --account=my_account          # Account name for billing&lt;br /&gt;
#SBATCH --partition=long              # Partition name&lt;br /&gt;
#SBATCH --time=02:00:00               # Time allotted for the job (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=4                    # Number of tasks (processes)&lt;br /&gt;
#SBATCH --cpus-per-task=1             # Number of CPU cores per task&lt;br /&gt;
#SBATCH --gres=gpu:NUMBER_OF_GPUS     # number of GPU&amp;#039;s to use in the job&lt;br /&gt;
#SBATCH --mem-per-cpu=4G              # Memory per CPU core&lt;br /&gt;
#SBATCH --output=my_job_%j.out        # Standard output and error log (%j expands to jobId)&lt;br /&gt;
#SBATCH --error=my_job_%j.err         # Separate file for standard error&lt;br /&gt;
&lt;br /&gt;
# Load modules or software if required&lt;br /&gt;
module load python/python-3.8&lt;br /&gt;
&lt;br /&gt;
# Print some information about the job&lt;br /&gt;
echo &amp;quot;Starting my SLURM job&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on nodes: $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Run your application, this could be anything from a custom script to standard applications&lt;br /&gt;
# ./my_program&lt;br /&gt;
# python my_script.py&lt;br /&gt;
&lt;br /&gt;
# End of script&lt;br /&gt;
echo &amp;quot;Job completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example with GUI&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
srun  --pty -c 1 --mem=2G -p &amp;lt;power-xxx&amp;gt; --x11 /bin/bash&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Error Handling ===&lt;br /&gt;
* On some clusters, specifying resources is necessary. Without them, the job may fail.&lt;br /&gt;
** Example error: &amp;lt;code&amp;gt;srun: error: Unable to allocate resources: No partition specified or system default partition&amp;lt;/code&amp;gt;&lt;br /&gt;
** Correct usage: &amp;lt;code&amp;gt;srun --pty -c 1 --mem=2G -p power-yoren /bin/bash&amp;lt;/code&amp;gt;&lt;br /&gt;
* Be aware that specifying GPU resources is crucial for jobs&lt;br /&gt;
&lt;br /&gt;
=== SLURM Information Commands ===&lt;br /&gt;
&lt;br /&gt;
* sinfo: View all queues (partitions).&lt;br /&gt;
* squeue: View all jobs.&lt;br /&gt;
* scontrol show partition: View all partitions.&lt;br /&gt;
* scontrol show job &amp;lt;job_number&amp;gt;: View a job&amp;#039;s attributes.&lt;br /&gt;
&lt;br /&gt;
=== Tips for Managing SLURM Jobs ===&lt;br /&gt;
&lt;br /&gt;
* Chain jobs by using the &amp;lt;code&amp;gt;--depend&amp;lt;/code&amp;gt; flag in &amp;lt;code&amp;gt;sbatch&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Use &amp;lt;code&amp;gt;salloc&amp;lt;/code&amp;gt; for interactive jobs that require specific resources for a limited time.&lt;br /&gt;
* &amp;lt;code&amp;gt;srun&amp;lt;/code&amp;gt; is versatile for both interactive and batch jobs, especially with MPI.&lt;br /&gt;
* Always specify necessary resources in clusters where defaults are not set.&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Submitting_a_job_to_a_slurm_queue&amp;diff=1474</id>
		<title>Submitting a job to a slurm queue</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Submitting_a_job_to_a_slurm_queue&amp;diff=1474"/>
		<updated>2024-09-18T06:07:13Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SLURM (Simple Linux Utility for Resource Management) is a job scheduler used on many high-performance computing systems. It manages and allocates resources such as compute nodes and controls job execution.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the System ===&lt;br /&gt;
To submit jobs to the SLURM scheduler at Tel Aviv University, you must access the system through one of the designated login nodes. These nodes act as the gateway for submitting and managing your SLURM jobs. The available login nodes are:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;powerslurm-login.tau.ac.il&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;powerslurm-login2.tau.ac.il&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Login Requirements: ====&lt;br /&gt;
&lt;br /&gt;
# Membership in the &amp;quot;power&amp;quot; group: Ensure you are a part of the &amp;quot;power&amp;quot; group which grants the necessary permissions for accessing the HPC resources.&lt;br /&gt;
# University Credentials: Log in using your Tel Aviv University credentials. This ensures secure access and that your job submissions are appropriately accounted for under your user profile.&lt;br /&gt;
&lt;br /&gt;
Remember, these login nodes are the initial point of contact for all your job management tasks, including job submission, monitoring, and other SLURM-related operations.&lt;br /&gt;
&lt;br /&gt;
=== Basic Job Submission Commands ===&lt;br /&gt;
====Finding your account and partition====&lt;br /&gt;
In order to submit jobs to slurm, one needs to know the accounts and partitions she belongs to. Each account may belong to one or more partitions.&lt;br /&gt;
&lt;br /&gt;
To see the account I belong to, please type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sacctmgr show associations where user=dvory format=Account%20&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you know your partition, and would like to know which account you need to specify when using it, please do (on powerslurm-login)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check_allowed_account -p &amp;lt;partition&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check_allowed_account -p power-general&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Example for submitting jobs====&lt;br /&gt;
# sbatch: Submit a batch job script.&lt;br /&gt;
#* Example: &amp;lt;code&amp;gt;sbatch --ntasks=1 --time=10 -p power-general -A power-general-users pre_process.bash&amp;lt;/code&amp;gt;&lt;br /&gt;
#* This submits &amp;lt;code&amp;gt;pre_process.bash&amp;lt;/code&amp;gt; with 1 task for 10 minutes.&lt;br /&gt;
#* Example of chaining jobs: &amp;lt;code&amp;gt;sbatch --ntasks=128 --time=60 -p power-general -A power-general-users --depend=45001 do_work.bash&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Example with GPU: &amp;lt;code&amp;gt;sbatch --ntasks=1 --time=10 --gres=gpu:2 -p gpu-general -A gpu-general-users pre_process.bash&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;sbatch --gres=gpu:1 -p gpu-general -A gpu-general-users gpu_job.sh&amp;lt;/code&amp;gt; &lt;br /&gt;
# srun: Submit an interactive job with MPI (Message Passing Interface), often called a &amp;quot;job step.&amp;quot;&lt;br /&gt;
#* Example: &amp;lt;code&amp;gt;srun --ntasks=2 -p power-general -A power-general-users --label hostname&amp;lt;/code&amp;gt;&lt;br /&gt;
#* With MPI: &amp;lt;code&amp;gt;srun -intasks=2 -p power-general -A power-general-users --label hostname&amp;lt;/code&amp;gt;&lt;br /&gt;
# sattach: Attach stdin/out/err to an existing job or job step.&lt;br /&gt;
&lt;br /&gt;
=== Interactive Job Examples ===&lt;br /&gt;
* Opening a bash shell: &amp;lt;code&amp;gt;srun --ntasks=56 -p power-general -A power-general-users  --pty bash&amp;lt;/code&amp;gt;&lt;br /&gt;
* Specifying compute nodes: &amp;lt;code&amp;gt;srun --ntasks=56 -p power-general -A power-general-users --nodelist=&amp;quot;compute-0-12&amp;quot; --pty bash&amp;lt;/code&amp;gt;&lt;br /&gt;
* Using GUI: &amp;lt;code&amp;gt;srun --ntasks=56 -p power-general -A power-general-users --x11 /bin/bash&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Script Examples: ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#SBATCH --job-name=my_job             # Job name&lt;br /&gt;
#SBATCH --account=power-general-users # Account name for billing&lt;br /&gt;
#SBATCH --partition=power-general     # Partition name&lt;br /&gt;
#SBATCH --time=02:00:00               # Time allotted for the job (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=4                    # Number of tasks (processes)&lt;br /&gt;
#SBATCH --cpus-per-task=1             # Number of CPU cores per task&lt;br /&gt;
#SBATCH --mem-per-cpu=4G              # Memory per CPU core&lt;br /&gt;
#SBATCH --output=my_job_%j.out        # Standard output and error log (%j expands to jobId)&lt;br /&gt;
#SBATCH --error=my_job_%j.err         # Separate file for standard error&lt;br /&gt;
&lt;br /&gt;
# Load modules or software if required&lt;br /&gt;
# module load python/python-3.8&lt;br /&gt;
&lt;br /&gt;
# Print some information about the job&lt;br /&gt;
echo &amp;quot;Starting my SLURM job&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on nodes: $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Run your application, this could be anything from a custom script to standard applications&lt;br /&gt;
# ./my_program&lt;br /&gt;
# python my_script.py&lt;br /&gt;
&lt;br /&gt;
# End of script&lt;br /&gt;
echo &amp;quot;Job completed&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Script example with GPU ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#SBATCH --job-name=my_job             # Job name&lt;br /&gt;
#SBATCH --account=my_account          # Account name for billing&lt;br /&gt;
#SBATCH --partition=long              # Partition name&lt;br /&gt;
#SBATCH --time=02:00:00               # Time allotted for the job (hh:mm:ss)&lt;br /&gt;
#SBATCH --ntasks=4                    # Number of tasks (processes)&lt;br /&gt;
#SBATCH --cpus-per-task=1             # Number of CPU cores per task&lt;br /&gt;
#SBATCH --gres=gpu:NUMBER_OF_GPUS     # number of GPU&amp;#039;s to use in the job&lt;br /&gt;
#SBATCH --mem-per-cpu=4G              # Memory per CPU core&lt;br /&gt;
#SBATCH --output=my_job_%j.out        # Standard output and error log (%j expands to jobId)&lt;br /&gt;
#SBATCH --error=my_job_%j.err         # Separate file for standard error&lt;br /&gt;
&lt;br /&gt;
# Load modules or software if required&lt;br /&gt;
module load python/3.8&lt;br /&gt;
&lt;br /&gt;
# Print some information about the job&lt;br /&gt;
echo &amp;quot;Starting my SLURM job&amp;quot;&lt;br /&gt;
echo &amp;quot;Job ID: $SLURM_JOB_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Running on nodes: $SLURM_JOB_NODELIST&amp;quot;&lt;br /&gt;
echo &amp;quot;Allocated CPUs: $SLURM_JOB_CPUS_PER_NODE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Run your application, this could be anything from a custom script to standard applications&lt;br /&gt;
# ./my_program&lt;br /&gt;
# python my_script.py&lt;br /&gt;
&lt;br /&gt;
# End of script&lt;br /&gt;
echo &amp;quot;Job completed&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example with GUI&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
srun  --pty -c 1 --mem=2G -p &amp;lt;power-xxx&amp;gt; --x11 /bin/bash&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Error Handling ===&lt;br /&gt;
* On some clusters, specifying resources is necessary. Without them, the job may fail.&lt;br /&gt;
** Example error: &amp;lt;code&amp;gt;srun: error: Unable to allocate resources: No partition specified or system default partition&amp;lt;/code&amp;gt;&lt;br /&gt;
** Correct usage: &amp;lt;code&amp;gt;srun --pty -c 1 --mem=2G -p power-yoren /bin/bash&amp;lt;/code&amp;gt;&lt;br /&gt;
* Be aware that specifying GPU resources is crucial for jobs&lt;br /&gt;
&lt;br /&gt;
=== SLURM Information Commands ===&lt;br /&gt;
&lt;br /&gt;
* sinfo: View all queues (partitions).&lt;br /&gt;
* squeue: View all jobs.&lt;br /&gt;
* scontrol show partition: View all partitions.&lt;br /&gt;
* scontrol show job &amp;lt;job_number&amp;gt;: View a job&amp;#039;s attributes.&lt;br /&gt;
&lt;br /&gt;
=== Tips for Managing SLURM Jobs ===&lt;br /&gt;
&lt;br /&gt;
* Chain jobs by using the &amp;lt;code&amp;gt;--depend&amp;lt;/code&amp;gt; flag in &amp;lt;code&amp;gt;sbatch&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Use &amp;lt;code&amp;gt;salloc&amp;lt;/code&amp;gt; for interactive jobs that require specific resources for a limited time.&lt;br /&gt;
* &amp;lt;code&amp;gt;srun&amp;lt;/code&amp;gt; is versatile for both interactive and batch jobs, especially with MPI.&lt;br /&gt;
* Always specify necessary resources in clusters where defaults are not set.&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
	<entry>
		<id>https://hpcguide.tau.ac.il/index.php?title=Palo_Alto_VPN_for_linux&amp;diff=1442</id>
		<title>Palo Alto VPN for linux</title>
		<link rel="alternate" type="text/html" href="https://hpcguide.tau.ac.il/index.php?title=Palo_Alto_VPN_for_linux&amp;diff=1442"/>
		<updated>2024-01-18T08:58:50Z</updated>

		<summary type="html">&lt;p&gt;Shosh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For security reason TelAviv University starts a VPN with double authentication standard.&lt;br /&gt;
&lt;br /&gt;
In order to do that users have to check/fill in their mobile phone at myTAU page&lt;br /&gt;
(https://mytau.tau.ac.il/GetResource.php) and enroll to the service.&lt;br /&gt;
Then you need install GoogleAuthenticator on you mobile device and register it at TAU.&lt;br /&gt;
&lt;br /&gt;
After that you may download and install PaloAlto GlobalProtect VPN client on your device (all&lt;br /&gt;
operation systems are supported: IOS, Android, Linux MAC and even Window)&lt;br /&gt;
&lt;br /&gt;
The steps:&lt;br /&gt;
==Enrollment==&lt;br /&gt;
Go to https://mytau.tau.ac.il/GetResource.php&lt;br /&gt;
&lt;br /&gt;
Choose the “1” then “2” :&lt;br /&gt;
&lt;br /&gt;
Then you will receive SMS with 2-minute code and enter it immediately to the filed:&lt;br /&gt;
Then you will be redirected to the QR code for GoogleAuthenticator account setup:&lt;br /&gt;
Scan it using your mobile Google Authenticator app using “+” on bottom right corner of mobile device&lt;br /&gt;
and enter the generated code from mobile GoogleAuthenticator to the field and press the green button.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
Download and install VPN client, from the browser, go to:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://hpcguide.tau.ac.il/vpn/PanGPLinux-5.3.4-c5.tgz GlobalProtect-5.3.4]&lt;br /&gt;
&lt;br /&gt;
[https://hpcguide.tau.ac.il/vpn/PanGPLinux-6.0.1-c6.tgz GlobalProtect-6.0.1]&lt;br /&gt;
&lt;br /&gt;
[https://hpcguide.tau.ac.il/vpn/PanGPLinux-6.1.1-c4.tgz GlobalProtect-6.1.1]&lt;br /&gt;
&lt;br /&gt;
Linux package should be extracted and installed appropriated version:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Debian/Ubuntu&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dpkg -i GlobalProtect_UI_deb-6.0.1.1-6.deb&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Redhat/Centos&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;yum localinstall GlobalProtect_UI_rpm-6.0.1.1-6.rpm&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configure==&lt;br /&gt;
&lt;br /&gt;
[[File:Paloalto3.PNG|thumb|right]]&lt;br /&gt;
&lt;br /&gt;
Execute and configure VPN client on Linux (another OS are similar) :&lt;br /&gt;
&lt;br /&gt;
Open client by pressing on the relevant icon (&amp;quot;1&amp;quot; as in the picture on the right)&lt;br /&gt;
&lt;br /&gt;
And enter address &amp;#039;&amp;#039;&amp;#039;vpn.tau.ac.il&amp;#039;&amp;#039;&amp;#039; (&amp;quot;2&amp;quot; as in the picture on the right)&lt;br /&gt;
&lt;br /&gt;
==Errors==&lt;br /&gt;
===SSL Error===&lt;br /&gt;
On latest ubuntu version, ubuntu 22.04, after installing and configuring globalprotect VPN, you get this error:&lt;br /&gt;
&lt;br /&gt;
[[File:784px-Vpn ssl error.png|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fix only for globalprotect====&lt;br /&gt;
create new &amp;lt;code&amp;gt;ssl.conf&amp;lt;/code&amp;gt; file on your pc with the following content:&lt;br /&gt;
vim ~/ssl.conf&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
openssl_conf = openssl_init&lt;br /&gt;
[openssl_init]&lt;br /&gt;
ssl_conf = ssl_sect&lt;br /&gt;
[ssl_sect]&lt;br /&gt;
system_default = system_default_sect&lt;br /&gt;
[system_default_sect]&lt;br /&gt;
Options = UnsafeLegacyRenegotiation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Then find this file:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo find / -name PanGPUI.desktop -type f&amp;lt;/code&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;code&amp;gt;locate PanGPUI.desktop&amp;lt;/code&amp;gt; (may need to do sudo updatedb before running this one)&lt;br /&gt;
there should be at least 2 path with this file, ignore this one --&amp;gt; &amp;lt;code&amp;gt;/opt/paloaltonetworks/globalprotect/PanGPUI.desktop&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On my linux, kubuntu 22.04 the file is here: &amp;lt;code&amp;gt;/etc/xdg/autostart/PanGPUI.desktop&amp;lt;/code&amp;gt;&lt;br /&gt;
enter this file and change it from:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[Desktop Entry]&lt;br /&gt;
Name=PanGPUI&lt;br /&gt;
Type=Application&lt;br /&gt;
Exec=/opt/paloaltonetworks/globalprotect/PanGPUI&lt;br /&gt;
Terminal=false&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[Desktop Entry]&lt;br /&gt;
Name=PanGPUI&lt;br /&gt;
Type=Application&lt;br /&gt;
Exec=OPENSSL_CONF=~/ssl.conf /opt/paloaltonetworks/globalprotect/PanGPUI&lt;br /&gt;
Terminal=false&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After restarting you pc, globalprotect will autostart with the custom ssl settings&lt;br /&gt;
&lt;br /&gt;
====Global fix====&lt;br /&gt;
here is how to workaround it:&lt;br /&gt;
&lt;br /&gt;
open  &amp;lt;code&amp;gt;/usr/lib/ssl/openssl.cnf&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
comment out this section:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# [openssl_init]&lt;br /&gt;
&lt;br /&gt;
# providers = provider_sect&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;add this new section under the commented one from earlier:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[openssl_init]&lt;br /&gt;
ssl_conf = ssl_sect&lt;br /&gt;
&lt;br /&gt;
[ssl_sect]&lt;br /&gt;
system_default = system_default_sect&lt;br /&gt;
&lt;br /&gt;
[system_default_sect]&lt;br /&gt;
Options = UnsafeLegacyRenegotiation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;reboot globalprotect app and the error should be fixed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;source:https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1960268&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TAU credentials==&lt;br /&gt;
[[File:Paloalto4.PNG|thumb|right]]&lt;br /&gt;
Fill in pop-upped windows with your TAU credentials:&lt;br /&gt;
&lt;br /&gt;
Open your mobile GoogleAuthenticator and enter code from there&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Congratulations: you are done!&lt;/div&gt;</summary>
		<author><name>Shosh</name></author>
	</entry>
</feed>