Crontab Import

Standard jobs and run-parts jobs (on Linux only) scheduled in cron tables can be imported into the Dollar Universe Tasks and Uprocs (on the selected node). Dollar Universe not only supplements the scheduling functions offered by cron, but also enables production to be monitored across many machines.

The run-parts jobs (on Linux only) are displayed by user entry in the wizard (step 1). For example, if root is the run part user: "root (run part)". These jobs are not selected by default. Selected scripts are moved to the Uproc directory (they are added to the Uproc’s files). The run-part command in the /etc/crontab file is never displayed in the Wizard and the line is never disabled (commented).

To import cron jobs, Dollar Universe IO server must be run by root or a user with administrator rights (installation by an administrator is not enough). If the IO server is not run by an administrator, the Crontab can't be imported.

Task Selection

The displayed list shows the cron tables sorted by user.

The cron wizard will display no job for a run-part job if there is no script in the directory targeted by the run-parts utility.

Statuses:

In the User column, check one or more boxes to select cron jobs to be imported (use the Select All or Unselect All buttons).

Click Next at the bottom of the window. Double-click on the title bar if the buttons are not visible.

Task List Preview

This window lists all the cron jobs selected in the previous window.

At this point, the jobs have not yet been created in Dollar Universe nor commented in the cron tables.

Cron Task List Preview – Toolbar:

User: user defined variables

Generic: system variables needed by Dollar Universe to run the job

From a Uproc (if chosen): Refer to section "Uproc Details".

From a Task: (if chosen): Refer to section "Task Details".

The next name is automatically attributed to the Task MU: <SUBMISSION ACCOUNT>_<DUAS NODE NAME>.

!XX!: means that XX is a specific Dollar Universe variable

CONVINDEX: is an index, automatically incremented during the job conversion

CMD: is the job command line

To modify the Task name:

Click the arrow and select a name in the list or

Click the arrow and select New to open the "cron Wizard Rename Pattern" window

Cron Wizard Rename Pattern:

!#!: insert a global index.

!YYYY!: insert the current year.

!MM!: insert the current month number (01 to 12).

!MMM! : insert the month name on 3 characters.

!DD!: insert the day of the month.

!OWNER!: insert the crontab owner (user name of the job).

!CONVINDEX!: insert the index automatically generated during the cron import.

Click Next at the bottom of the window to start the job conversion (no Undo available).

User Update

This window lists the submission accounts used in the cron jobs to import, which are not defined in Dollar Universe.

If all the submission accounts for the cron jobs to import exist in Dollar Universe, this window does not appear.

You can click on the Update button to update the description for the submission account used; refer to section "V6 Submission Account Details".

To cancel an import, click on the Abort button in the toolbar.

Click Next. The missing accounts will be automatically created.

Import

Each job selected from the previous screen will be imported:

To cancel an import, click on the Abort button in the toolbar.

Click Close to close the Wizard.

Information Window

For more information on cron security, refer to the UNIX system documentation.

Principles of cron Security: crontab can be run if the user’s name appears in the file /usr/lib/cron/cron.allow.

In other words, for each user: (Y=allowed, N=forbidden):

cron files status

cron.allow missing

cron.allow without user

cron.allow with user

cron.allow empty

cron.deny missing

Only Root

N

Y

N

cron.deny without user

 

N

Y

N

cron.deny with user

 

N

Y

N

cron.deny empty

 

N

Y

N

The following messages are displayed in the "Tips" zone:

Local Admin UVMS Users (this type of user has administrative rights on UVMS):

cron files status

cron.allow missing

cron.allow not empty

cron.allow empty

cron.deny missing

The cron.allow file is missing.

The cron.deny file is missing.

Only root crontab is enabled.

The cron.deny file is missing.

The cron.allow file enables named users.

The cron.allow file is empty. All user crontabs are disabled.

cron.deny not empty

The cron.allow file is missing.

The cron.deny file disables named users.

The cron.allow file enables named users and the cron.deny file disables named users.

The cron.allow file is empty.

All user crontabs are disabled.

cron.deny empty

The cron.allow file is missing.

The cron.deny file is empty.

All user crontabs are enabled.

The cron.deny file is empty.

The cron.allow file enables named users.

The cron.allow file is empty.

The cron.deny file is empty.

All user crontabs are disabled.

Regular UVMS users (this type of user has restricted access to the administration mode of UVC):

cron files status

cron.allow missing

cron.allow without user

cron.allow with user

cron.allow empty

cron.deny missing

User crontab is disabled

User crontab is disabled

User crontab is enabled

User crontab is disabled

cron.deny without user

User crontab is enabled

User crontab is disabled

User crontab is enabled

User crontab is disabled

cron.deny with user

User crontab is disabled

User crontab is disabled

User crontab is enabled

User crontab is disabled

cron.deny empty

User crontab is enabled

User crontab is disabled

User crontab is enabled

User crontab is disabled