-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with -uf and false users. Better user checking altogether.
Node_search now utilizes the pwd module specifically getpwnam to search /etc/passwd to see if a user exists instead of going through qconf -suserl. This way, if the user does indeed exist but hasn't submitted a job in awhile or whatever the case is, they will still be recognized as a real user instead of a nonsense of error of they may or may not exist. This also solves the issue of -uf showing that any import to it has access to the general_access and debug queues. The man page was updated to reflect this under BUGS.
- Loading branch information
Showing
3 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.\" Manpage for node_search.py. | ||
.\" Contact [email protected] to correct typos or errors. | ||
.TH man 1 "8 SEPT 2017" "1.0.4" "node_search man page" | ||
.TH man 1 "15 SEPT 2017" "1.1.0" "node_search man page" | ||
.SH NAME | ||
node_search \- get node, user, or host-group information from Univa Grid Engine | ||
.SH SYNOPSIS | ||
|
@@ -104,10 +104,10 @@ specifed host-group, then the output will show all of the machines/nodes that be | |
or host-group. Each one of those nodes will also show its core usage (used vs total). This will be | ||
the same behavior that occurs if \fB--details\fR is used to modify \fB-a \fR or\fB --all\fR. If \fB--details | ||
\fRis modifying a user, then all of the nodes the specified user is running will be displayed along with all | ||
of the processes that user owns and the respective memory usage, CPU%, and time. This is useful for when a job submitted | ||
through UGE spawns or starts multiple processes which are not necessarily tracked by UGE. If the user has any | ||
pending jobs then those will be shown as well. If \fB--details \fRis modifying the \fB-uf \fRoption, then it will | ||
display all of the nodes which belong to the host-groups the specified user has access to. | ||
of the processes that user owns and the respective memory usage, CPU%, and run time of each process. This is | ||
useful for when a job submitted through UGE spawns or starts multiple processes which are not necessarily tracked | ||
by UGE. If the user has any pending jobs then those will be shown as well. If \fB--details \fRis modifying the | ||
\fB-uf \fRoption, then it will display all of the nodes which belong to the host-groups the specified user has access to. | ||
|
||
." END OPTIONS !! | ||
|
||
|
@@ -136,11 +136,11 @@ something along the lines of less/more. e.g. node_search.py -uf JohnDoe33 --deta | |
.TP | ||
\fBnode_search.py -u JohnDoe | ||
\fRDisplay the user JohnDoe and their jobs along with core usage and the nodes the jobs are running | ||
on. | ||
on. Will display total memory usage per node as used by user JohnDoe. | ||
|
||
|
||
.SH BUGS | ||
\fRnode_search.py -uf fake_user \- will act as if it is a real user. | ||
\fRNo known bugs at the current moment in time. | ||
Report any new findings to [email protected]. | ||
.SH AUTHOR | ||
\fRCody Kankel ([email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters