xpbs (1) - Linux Manuals
xpbs: GUI front end to PBS commands
NAME
xpbs - GUI front end to PBS commands
SYNOPSIS
xpbs [-admin]DESCRIPTION
The xpbs command provides a user-friendly point-and-click interface to PBS commands. Please see the sections below for a tour and tutorials. Also, within every dialog box, a Help button can be found for assistance.OPTIONS
- -admin
- A mode where additional buttons are made available for terminating PBS servers, starting/stopping/disabling/enabling queues, and running/rerunning jobs.
GETTING STARTED
Running xpbs will initialize the X resource database from various sources in the following order:- 1.
- The RESOURCE_MANAGER property on the root window (updated via xrdb) with settings usually defined in the .Xdefaults file
- 2.
- Preference settings defined by the system administrator in the global xpbsrc file
- 3.
- User's ~/.xpbsrc file - this file defines various X resources like fonts, colors, list of PBS hosts to query, criteria for listing queues and jobs, and various view states. See PREFERENCES section below for a list of resources that can be set.
RUNNING XPBS
To run xpbs as a regular, non-privileged user, type:
Also, be sure that the PBS client commands are in the default PATH because xpbs will call these commands.
THE XPBS DISPLAY
This section describes the main parts of the xpbs display. The main window is composed of 5 distinct areas (subwindows) arranged vertically (one on top of another) in the following order:-
1) Menu
2) Hosts
3) Queues
4) Jobs
5) Info
Menu. The Menu area is composed of a row of command buttons that signal some action with a click of the left mouse button. The buttons are:
-
- Manual Update
- to update the information on hosts, queues, and jobs.
- Auto Update
-
same as
except updating is done automatically every
<some specified> number of minutes.
- Track Job
- for periodically checking for returned output files of jobs.
- Preferences
- for setting certain parameters such as the list of server host(s) to query.
- Help
- contains some help information.
- About
- tells of the author and who to send comments, bugs, suggestions to.
- Close
- for exiting
xpbs plus saving the current setup information (if anything had changed) in the user's $HOME/.xpbsrc file. Information saved include the selected host(s), queue(s), job(s), the different jobs listing criteria, the view states (i.e. minimized/maximized) of the Hosts, Queues, Jobs, and INFO regions, and anything in the Preferences section.
Hosts. The Hosts area is composed of a leading horizontal HOSTS bar, a listbox, and a set of command buttons. The HOSTS bar contains a minimize/maximize button, identified by a dot or a rectangular image, for displaying or iconizing the Hosts region. The listbox displays information about favorite server host(s), and each entry is meant to be selected via a single left mouse button click, shift key + mouse button 1 click for contiguous selection, or cntrl key + mouse button 1 click for non-contiguous selection. The command buttons represent actions on selected host(s), and commonly found buttons are:
-
- detail
- for obtaining detailed information about selected server host(s). This functionality can also be achieved by double clicking on an entry in the Hosts listbox.
- Submit
- for submitting a job to any of the queues managed by the selected host(s).
- terminate
- for terminating PBS servers on selected host(s). (-admin only)
The server hosts can be chosen by specifying in the ~/.xpbsrc file (or .Xdefaults) the resource:
-
*serverHosts:
Queues. The Queues area is composed of a leading horizontal QUEUES bar, a listbox, and a set of command buttons. The QUEUES bar lists the hosts that are consulted when listing queues; the bar also contains a minimize/maximize button for displaying or iconizing the Queues region. The listbox displays information about queues managed by the server host(s) selected from the Hosts listbox; each listbox entry is meant to be selected (highlighted) via a single left mouse button click, shift key + mouse button 1 click for contiguous selection, or cntrl key + mouse button 1 click for non-contiguous selection. The command buttons represent actions for operating on selected queue(s), and commonly found buttons are:
-
- detail
- for obtaining detailed information about selected queue(s). This functionality can also be achieved by double clicking on a Queues listbox entry.
- stop
- for stopping the selected queue(s). (-admin only)
- start
- for starting the selected queue(s). (-admin only)
- disable
- for disabling the selected queue(s). (-admin only)
- enable
- for enabling the selected queue(s). (-admin only)
Jobs. The Jobs area is composed of a leading horizontal JOBS bar, a listbox, and a set of command buttons. The JOBS bar lists the queues that are consulted when listing jobs; the bar also contains a minimize/maximize button for displaying or iconizing the Jobs region. The listbox displays information about jobs that are found in the queue(s) selected from the Queues listbox; each listbox entry is meant to be selected (highlighted) via a single left mouse button click, shift key + mouse button 1 click for contiguous selection, or cntrl key + mouse button 1 click for non-contiguous selection. The region just above the Jobs listbox shows a collection of command buttons whose labels describe criteria used for filtering the Jobs listbox contents. The list of jobs can be selected according to the owner of jobs (Owners), job state (Job_States), name of the job (Job_Name), type of hold placed on the job (Hold_Types), the account name associated with the job (Account_Name), checkpoint attribute (Checkpoint), time the job is eligible for queueing/execution (Queue_Time), resources requested by the job (Resources), priority attached to the job (Priority), and whether or not the job is rerunnable (Rerunnable). The selection criteria can be modified by clicking on any of the appropriate command buttons to bring up a selection box. The criteria command buttons are accompanied by a button, which when clicked, will update the contents of the Jobs listbox based on the new selection criteria. Please see qselect(1B) for more details on how the jobs are filtered.
Finally, to the right of the listbox, the Jobs region is accompanied by the following command buttons, for operating on selected job(s):
-
- detail
- for obtaining detailed information about selected job(s). This functionality can also be achieved by double clicking on a Jobs listbox entry.
- modify
- for modifying attributes of the selected job(s).
- delete
- for deleting the selected job(s).
- hold
- for placing some type of hold on selected job(s).
- release
- for releasing held job(s).
- signal
- for sending signals to selected job(s) that are running.
- msg
- for writing a message string into the output streams of the selected job(s).
- move
- for moving selected job(s) into some specified destination queue.
- order
- for exchanging order of two selected jobs in a queue.
- run
- for running selected job(s). (-admin only)
- rerun
- for requeueing selected job(s) that are running. (-admin only)
Info. The Info Area shows the progress of the commands' executed by xpbs. Look into this box for errors. The INFO bar also contains a minimize/maximize button for displaying or iconizing the Info region.
WIDGETS USED IN XPBS
Some of the widgets used in xpbs and how they are manipulated are described in the following:
- 1.
-
listbox - can be multi-selectable (a number of entries can be
selected/highlighted using a mouse click) or single-selectable (one entry
can be highlighted at a time). For a multi-selectable listbox,
the following operations are allowed:
-
- a.
- single click with mouse button 1 to select/highlight an entry.
- b.
- shift key + mouse button 1 to contiguously select more than one entry.
- c.
- cntrl key + mouse button 1 to non-contiguously select more than one entry. NOTE: For systems running Tk < 4.0, the newly selected item is reshuffled to appear next to already selected items.
- d.
-
click the
button to select all
entries or deselect all entries at once.
- e.
- double clicking an entry usually activates some action that uses the selected entry as a parameter.
-
- 2.
-
scrollbar - usually appears either vertically or
horizontally and contains 5 distinct areas that are mouse
clicked to achieve different effects:
-
- top arrow
- Causes the view in the associated widget to shift up by one unit (i.e. the object appears to move down one unit in its window). If the button is held down the action will auto-repeat.
- top gap
- Causes the view in the associated window to shift up by one less than the number of units in the window (i.e. the portion of the object that used to appear at the very top of the window will now appear at the very bottom). If the button is held down the action will auto-repeat.
- slider
- Pressing button 1 in this area has no immediate effect except to cause the slider to appear sunken rather than raised. However, if the mouse is moved with the button down then the slider will be dragged, adjusting the view as the mouse is moved.
- bottom gap
- Causes the view in the associated window to shift down by one less than the number of units in the window (i.e. the portion of the object that used to appear at the very bottom of the window will now appear at the very top). If the button is held down the action will auto-repeat.
- bottom arrow
- Causes the view in the associated window to shift down by one unit (i.e. the object appears to move up one unit in its window). If the button is held down the action will auto-repeat.
-
- 3.
-
entry - brought into focus with a click of the left
mouse button. To manipulate this widget, simply type in
the text value. Use of arrow keys, mouse selection of
text for deletion or overwrite, copying and pasting with
sole use of mouse buttons are permitted.
This widget is usually accompanied by a scrollbar for
horizontally scanning a long text entry string.
- 4.
-
matrix of entry boxes - usually shown as several
rows of entry widgets where a number of entries (called
fields) can be found per row. The matrix is accompanied by
up/down arrow buttons for paging through the rows of data,
and each group of fields gets one scrollbar for horizontally
scanning long entry strings. Moving from field to field can
be done using the <Tab>, <Cntrl-f>, or <Cntrl-b> (move
backwards) keys.
- 5.
- spinbox - a combination of an entry widget and a horizontal scrollbar. The entry widget will only accept values that fall within a defined list of valid values, and incrementing through the valid values is done by clicking on the up/down arrows.
- 6.
- button - a rectangular region appearing either raised or pressed that invokes an action when clicked with the left mouse button. When the button appears pressed, then hitting the <RETURN> key will automatically select the button.
- 7.
- text - an editor like widget. This widget is brought into focus with a click of the left mouse button. To manipulate this widget, simply type in the text. Use of arrow keys, backspace/delete key, mouse selection of text for deletion or overwrite, copying and pasting with sole use of mouse buttons are permitted. This widget is usually accompanied by a scrollbar for vertically scanning a long entry.
SUBMITTING JOBS
Submitting a PBS job requires only to manipulate the widgets found in the Submit window. The submit dialog box is composed of 4 distinct regions:
The Job Script file region is at the upper left, the OPTIONS
region containing various widgets for setting job attributes
is scattered all over the dialog box, the OTHER OPTIONS is
located just below the Job Script file region, and Command
Buttons region is at the bottom.
The job script region is composed of a header box, the text
box, FILE entry box, and a couple of buttons labeled
and
If you have a script file containing PBS options
and executable lines, then type the name of the file on the
FILE entry box, and then click on the
button. The
various widgets in the Submit window will get loaded with
values found in the script file. The script file text box
will only be loaded with executable lines (non-PBS) found
in the script. The job script header box has a
entry box that can be modified to specify the PBS
directive to look for when parsing a script file for PBS
options.
If you don't have a script file, you can start typing the
executable lines of the job in the file text box.
To submit a job, perform the following steps:
NOTE: The script FILE entry box is accompanied by a
button that you click to save the current widget values to
the specified file in a form that can later be read by xpbs
or by the qsub command.
NOTE: Be sure the files are accessible from the host where
xpbs was run (i.e. .rhosts appropriately set).
When an output file for a job being monitored is found, then the
button (the one that originally invoked the Track Job
dialog box) will turn into a different color, and the
listbox, located in the Track Job dialog box,
is then loaded with the corresponding job id(s). Then double click
on a job id to see the contents of the output file and the error file.
Click
if you want to cancel tracking.
If the xpbs command fails, the
command exits with a value greater than zero.
MODIFYING ATTRIBUTES OF JOBS
Modifying a PBS job requires only to manipulate the widgets found
in the Modify window. To modify a job or jobs, do the following
steps:
DELETING JOBS
Deleting a PBS job requires only to manipulate the widgets found
in the Delete window. To delete a job or jobs, do the following
steps:
TRACKING RETURNED OUTPUT FILES
If you want to be informed of returned output files of
current jobs, and be able to quickly see the
contents of those files, then enable the
feature as follows:
button located in the Menu bar to
bring up the Track Job dialog box.
to test the existence of the files. RSH is whatever you set the remote shell
command to in the corresponding entry box.
LEAVING XPBS
Click on the Close button located in the Menu bar to leave xpbs.
If anything had changed, it will bring up a dialog box asking for a confirmation
in regards to saving state information like the view states (minimize/maximize) of
the HOSTS, QUEUES, JOBS, and INFO subwindows, and various criteria for
listing queues and jobs. The information is saved in ~/.xpbsrc file.
PREFERENCES
The resources that can be set in the X resources file, ~/.xpbsrc, are:
{ <arch-type1> resname1 resname2 ... resnameN }
{ <arch-type2> resname1 resname2 ... resnameN }
{ <arch-typeN> resname1 resname2 ... resnameN }
XPBS AND PBS COMMANDS
xpbs calls PBS commands as follows:
EXIT STATUS
Upon successful processing, the xpbs exit status will be a value of zero.
SEE ALSO
qalter(1B), qdel(1B), qhold(1B), qmove(1B), qmsg(1B), qrerun(1B),
qrls(1B), qselect(1B), qsig(1B), qstat(1B), qorder(1B), qsub(1B),
qdisable(8B), qenable(8B), qrun(8B), qstart(8B), qstop(8B), qterm(8B).