3 Creating, Editing, and Using Jobs

This chapter describes how to create and edit jobs in Enterprise Manager for JBoss EAP.

To create and edit jobs, follow these steps:

  1. In Enterprise Manager Cloud Control 13c, click Enterprise, then Job, then click Activity.
  2. On the Job Activity Page, select a job type from the Create Job menu and click Go.

    Select one of the following:

    • JBoss Status
    • Reload JBoss
    • Restart JBoss
    • Restart JBoss (CLI)

    Note:

    The difference between Restart JBoss and Restart JBoss (CLI) includes the following:
    • Restart JBoss uses JMX to send a restart command to JBoss. This immediately shuts down the server and can be considered dangerous. Only use this if you are certain JBoss can be shutdown immediately without any issues.
    • Restart JBoss (CLI) is the safer way to restart JBoss, but requires that the Oracle Management Agent is on the same host as JBoss.
  3. In the General tab of the Create <Job Type> page, provide a name for the job and add the individual targets or one composite target such as a Group.
    • Note: If you are editing a job, then modify the job name and the selected targets.

  4. In the Parameters tab of the Create <Job Type> page, from the Options menu, select an appropriate option to make the job function according when it starts.

    You can select one of these options as shown in the following table.

    Job Parameters Options

    Job Type Available Options
    JBoss Status Use SSL – Enter ‘y’ if you are using an SSL Connection
    Reload JBoss Use SSL – Enter ‘y’ if you are using an SSL Connection
    Restart JBoss Use SSL – Enter ‘y’ if you are using an SSL Connection
    Restart JBoss (CLI)

    Full qualified path to jboss-cli.sh or jboss-cli.bat – This gives the plug-in access to call the CLI.

    Optional arguments to pass when calling jboss-cli.sh or jboss-cli.bat – These are additional arguments you may want to provide when restarting Jboss.

  5. In the Credentials tab of the Create <Job Type> Job page, select an appropriate option for credentials.

    You can choose to use the preferred credentials that are already set or override the preferred credentials with new credentials. In either case, you need to provide credentials for the agent host.

    To set the preferred credentials, click Preferences at the top-right corner of the Cloud Control console. From the left-vertical navigation bar, click Preferred Credentials. Cloud Control displays the Preferred Credentials page. On this page you can set the preferred credentials.
  6. In the Schedule tab of the Create <Job Type> Job page, schedule the job.
  7. In the Access tab of the Create <Job Type> Job page, define or modify the access you want other users to have to this job.
  8. Click Submit to create the job.