Logo

dev-resources.site

for different kinds of informations.

Grid Engine Commands

Published at
9/23/2024
Categories
operations
gridengine
altair
hpc
Author
nerdflash28
Categories
4 categories in total
operations
open
gridengine
open
altair
open
hpc
open
Author
11 person written this
nerdflash28
open
Grid Engine Commands

QSTAT Command

  • To check the status of the jobs we use the qstat command
qstat

# to get information about specific job
qstat -j <job-id>

# to get the full information of the resources
qstat -f 

# to get the full details of all the jobs running
qstat -F

# To get the filter for a queue we use
qstat -q queue_list

# to filter by queue state 
qstat -qs {a|c|d|o|s|u|A|C|D|E|S}

# to filter jobs by users
qstat -u <userid>

# to show all user's job
qstat -u \*

Enter fullscreen mode Exit fullscreen mode

QSUB

  • To submit a batch job we use the qsub command
# Example 1: to submit a simple bash job
qsub <script_path>

# Example 2: To submit an advanced batch job we use
qsub -cwd -S /bin/bash -i /data/example.in -o /results/example.out -j y example.sh arg1 arg2
# Options explained:
# -cwd: job will be executed from the same directory
# -S: bash shell will be assigned to interpret the submitted job
# -i: this file will be used as an input
# -o: this file will be used to show output
# -j y: this will merge the error into the same as the output file

# Example 3: advanced script
qsub -N example3 -P project_test -p -28 -l a=lx-amd64 example.sh
# Options explained:
# -N: this will be submitted by the given name, instead of the script name
# -P: this job will be submitted to project_test
# -p: this will assign lower priority to the given job than normal priority
# -l: this will request for amd64 resource on the scheduler

# Example 4: to submit a binary job
qsub -b y firefox

Enter fullscreen mode Exit fullscreen mode

Job Submission Script

#!/bin/bash

#$ -N example3
#$ -P "project-name"
#$ -o test.out -e error.err
#$ -l mem=6G
#$ -l cpu=2

# command to be executed
echo "just a test"
Enter fullscreen mode Exit fullscreen mode

QDEL

  • qdel is used to delete a job in the queue
# Force delete a job in the queue
qdel -f <job-id>

# to delete specific tasks of a job
qdel <job-id> -t <task-range>

# to delete all the jobs from a specific user, only possible for managers
qdel -u <user-list> "*"
Enter fullscreen mode Exit fullscreen mode

How to check for the list of the nodes

  • To check the list of the current nodes we use the qhost command
qhost

# To check the jobs running under the specific hosts we use
qhost -q -j
Enter fullscreen mode Exit fullscreen mode
operations Article's
30 articles in total
Favicon
Rohit Singhal’s Supply Chain Leadership: Mastering Data Across SAP, Kinaxis, Oracle EBS, and PLM Systems for Seamless Operations
Favicon
The Rise of AIOps: How AI is Transforming IT Operations
Favicon
Configure monit service in AL2023
Favicon
Transform IT Operations with Callgoose SQIBS
Favicon
Navigating Alert Fatigue: Strategies for Site Reliability Engineers (SREs) and DevOps Professionals
Favicon
Kubernetes Operators for Custom Applications (e.g., Databases)
Favicon
Configuring Node Taints and Tolerations in Kubernetes for Advanced Scheduling
Favicon
Kubernetes Operators: Automating Application Management with Custom Controllers
Favicon
Fleet Management 101: Streamlining Operations for Maximum Efficiency
Favicon
Unit tests so you don't lose your levitating plant
Favicon
The Future of DevOps πŸš€πŸ”„
Favicon
Ops Team Specialist Supporting Scalable Operations & System Reliability
Favicon
Streamlining Business Operations with Python and AI Automation
Favicon
Operators (if,else if,ternary operator,switch)
Favicon
Transpiling, Do you know what it is?
Favicon
Prevention: It's Time to Save Those Millions
Favicon
Improve SDLC with DevOps
Favicon
Scaling Your OpsTeam Strategies for Managing Growth and Complexity
Favicon
Elevating Ops Teams Strategies for Operational Excellence
Favicon
Create a Supplier Database In 3 Steps
Favicon
Grid Engine Commands
Favicon
Devops
Favicon
Streamlining Operations & Boosting Growth: How Microsoft Dynamics is Reshaping the Business Landscape πŸš€
Favicon
Running Gitea with PostgreSQL on Kubernetes
Favicon
Snowflake Grants : Read only
Favicon
Installing AWS CloudWatch Agent on On-Premises Servers Using SSM
Favicon
How to Publish a Java Artifact Built with Gradle to a Nexus Repository part 1
Favicon
hugo is a cli based tool, does it have a CMS interface? it seems inconvinient using command line than using a cms interface
Favicon
Streamlining Workday Operations: 5 Powerful Benefits of Testing Tools
Favicon
C# - String methods

Featured ones: