pbsdsh and enviornment variable PBS_VNODENUM

Sam_20878
Sam_20878 Altair Community Member
edited December 2023 in Community Q&A

The documentation I have been able to find on the usage of pbsdsh says that each instance of an executable spawned by pbsdsh will be given a unique environment variable PBS_VNODENUM, and that each instance can get its "identity" from that variable.  I have tested pbsdsh on two different systems, and it looks like PBS_VNODENUM is not defined at all.  Am I dealing with outdated information or what?  Is anything available to replace PBS_VNODENUM?

Answers

  • Adarsh_20887
    Adarsh_20887
    Altair Employee
    edited December 2023

    PBS_VNODENUM is not a  PBS Environment variable. 

    However thre is PBS_NODENUM -  Index into $PBS_NODEFILE , Starts at Zero.

    if they have the below value , then it is mother superior node

    • PBS_TASKNUM=1
    • PBS_NODENUM=0

    PBS_TASKNUM:  The task (process) number for the job on this vnode