Skip to content
Cody Kankel edited this page May 17, 2017 · 9 revisions

node_search

  • node_search.py allows a user, while on the CRC's front end(or your own if you cloned it) to view information otherwise not easily obtained/ugly.

  • Not every use is displayed. Check the man page for more details.

Below are example outputs of using node_search

./node_search.py -l (displays information on the General_Access host-group)

general_access                                                                  
--------------------------------------------------------------------------------
Total Cores:                            4008                                    
Used Cores:                             3986                                    
Free Cores:                             22                                      
Disabed/Error Cores:                    0                                       

Total Nodes:                            167                                     
Used Nodes:                             167                                     
Disabled/Error Nodes:                   0                                       
Empty Nodes:

./node_search.py -d (displays information on the Debug Queue)

debug                                                                           
--------------------------------------------------------------------------------
Total Cores:                            224                                     
Used Cores:                             16                                      
Free Cores:                             208                                     
Disabled Cores:                         16                                      

Total Nodes:                            30                                      
Used Nodes:                             4                                       
Disabled Nodes:                         2                                       
Empty Nodes:                            26  

./node_search.py -u johndoe33 (displays information on John Doe)

Job information for JohnDoe33.

Node name                                         Used Cores  Total Cores       
--------------------------------------------------------------------------------
long@d16copt026.crc.nd.edu                                32  32                  
    Job ID              Job Name            Num Cores           MAX Memory Used 
    55555                  JobName                32                  67.123G             
User Jobs on node: 1

Node name                                         Used Cores  Total Cores       
--------------------------------------------------------------------------------
long@d16copt028.crc.nd.edu                                32  32                  
    Job ID              Job Name            Num Cores           MAX Memory Used
    55556                  JobName                32                  64.121G             
User Jobs on node: 1
----
JohnDoe33's Total Running Jobs: 2
       
################################################################################
                              JohnDoe33's pending jobs:                               
################################################################################
    555557 0.57631 JobName   JohnDoe33          qw    12/02/2016 22:08:29    32       

./node_search.py -uf JohnDoe33 (Show which host groups JohnDoe33 has access to)

Host-group info pertaining to JohnDoe33:
--------------------------------------------------------------------------------
User belongs to the following user-lists:
@DoeHostGroup

User has access to the following host-groups:
@DoeHostGroup
@dqcneh
@general_access
--------------------------------------------------------------------------------

./node_search.py -d -v (Visually represent the Debug Queue)

                                            debug Queue                                             
----------------------------------------------------------------------------------------------------
Total Cores:                                      224                                               
Used Cores:                                       16                                                
Free Cores:                                       208                                               
Disabled Cores:                                   16                                                
Total Nodes:                                      30                                                
----------------------------------------------------------------------------------------------------
                     [0] = Open Core    [~] = Used Core    [#] = Disabled Core                      

[O][O][O][O][O][O][O][O][~][~][~][~][~][~][~][~][O][O][O][O][O][O][O][O][O][O][O][O][O][O]
[O][O][~][~][~][~][~][~][~][~][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O]
[O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O]
[O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O]
[O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O]
[O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O]
[O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O][O]
[O][O][O][O][O][O][O][O][O][O][O][O][O][O][#][#][#][#][#][#][#][#][#][#][#][#][#][#][#][#]

----------------------------------------------------------------------------------------------------
Clone this wiki locally