Unsupported content This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

Creating or modifying an operation


The portal provides a standard interface for defining all types of operations except provisioning. A simple wizard steps you through the process of creating an operation. 

To create an operation, specify the type of operation, the content that defines the operation, and its targets. You can also optionally specify the notifications the operation generates and a schedule for when it runs. 

This topic describes the full capabilities available when you create an operation. It includes the sections listed below. For a compact example demonstrating how to create a typical operation, see Example-of-creating-an-operation.

Types of operations

The following operation types are possible in BladeLogic Portal:

  • Batch — Concatenates a series of jobs. To define a Batch operation, you must identify a Batch Job in BMC Server Automation.
  • Compliance — Determines whether BMC Server Automation components satisfy compliance rules established for a component template. To define a Compliance operation, you must identify a Compliance Job that was defined in BMC Server Automation or select a component template and define your own operation. 
    You can also select an SCAP Compliance Job. When you run an operation based on an SCAP Compliance Job, the portal presents a different set of results. You can view SCAP Compliance results by target and by rule–like you would any Compliance operation–but there are no built-in remediation options. 
  • Deploy — Deploys content to one or more target servers or BMC Server Automation components. To define a Deploy operation, you must identify a Deploy Job that was defined in BMC Server Automation or select content to deploy (such as a BLPackage) and define your own operation
  • NSH Script — Deploys and executes a Network Shell (NSH) script. To define an NSH Script operation, you must identify an NSH Script Job that was defined in BMC Server Automation or select an NSH script and define your own operation.
  • Patch Analysis — Examines the patch configuration on one or more servers based on a collection of patches called a patch catalog. To define a Patch Analysis operation, you must identify a Patching Job that was defined in BMC Server Automation or select a patch catalog and define your own operation. For a detailed description, see Creating-or-modifying-a-Patch-Analysis-operation.
  • Provisioning — Creates a new instance of a virtual machine (VM), including all computing, storage, and network capabilities and an unattended installation of an operating system. Optional post-install procedures can configure the newly provisioned VM. Although the process of creating a Provisioning wizard includes steps common to all portal operations, other steps are different enough that the procedure is described separately in Creating-a-Provisioning-operation.

Note

This release does not support operations based on jobs that use an integration with BMC Remedy ITSM to obtain approvals.

To create or modify an operation

  1. To create or modify an operation, do one of the following actions from the operations list page:
    • Click the Create Operation drop-down list and select a type of operation.
    • Position your cursor over an existing operation and click Edit.

      The Create Operation page opens. It presents the steps you must follow to create or modify an operation. Headings in a ribbon of chevrons at the top of the page identify each step. After you provide all required information, proceed to the next page by clicking Next (at bottom left) or clicking the next chevron.

      At any time you can click Back (at bottom left, not the browser's Back button) to display the previous page in the process.

      The blue boxes at right summarize the information provided for each step in the process.
      CreateOperationWindow.gif
  2. Depending on the type of job you selected, the Operation wizard requires you to complete different pages. Each row in the table below provides links to the steps required for each page.

    Tip

    Press "f" to view the table in full screen view.

    Operation Type

    Definition

    Content

    Targets

    Local Properties

    Parameters

    Notifications

    Schedule & Run

    Batch

    RequiredInfoIcon.gif

    RequiredInfoIcon.gif

    View onlyInfoIcon.gif

    n/a

    n/a

    View onlyInfoIcon.gif

    View onlyInfoIcon.gif

    Compliance

    RequiredInfoIcon.gif

    RequiredInfoIcon.gif

    Required for operations based on templates; view only for operations based on jobsInfoIcon.gif

    n/a

    n/a

    Optional for operations based on templates; view only for operations based on jobsInfoIcon.gif

    Optional for operations based on templates; view only for operations based on jobsInfoIcon.gif

    Deploy

    RequiredInfoIcon.gif

    RequiredInfoIcon.gif

    View only InfoIcon.gif 

    Applicable only to operations based on packagesInfoIcon.gif

    n/a

    View only InfoIcon.gif 

    View only InfoIcon.gif 

    NSH Script

    RequiredInfoIcon.gif

    RequiredInfoIcon.gif

    Required for operations based on scripts; view only for operations based on jobs InfoIcon.gif 

    n/a

    Applicable only to operations based on NSH scriptsInfoIcon.gif

    Optional for operations based on scripts; view only for operations based on jobs InfoIcon.gif 

    Optional for operations based on scripts; view only for operations based on jobsInfoIcon.gif

    Patch Analysis

    Provisioning

  3. When you are done defining the operation, take any of the following actions:
    • Click  Execute Now  to save the operation and run it immediately.
    • Click Finish to save a new operation or   Update  to save a modified operation.

Notes

  • After you complete the Content page, you can click Finish to save the operation even if some pages are incomplete.
  • If you select a job on the Content page, all other steps in the wizard become read-only and you can click Finish to save the operation. However, there are two exceptions:
    • If you are defining a Deploy operation and you select a Deploy Job as content, the job could potentially require you to provide a value for a local property, so the Local Properties step remains active.
    • If you are defining an NSH Script operation and you select an NSH Script Job as content, the job could potentially require you to provide a value for a parameter, so the Parameters step remains active.

The following sections describe in detail each page in the Operation wizard, and the steps required for each page.

Definition

The Definition page provides general information about the operation.

The Definition page includes the following options:

Option

Description

Name

Name of the operation

Operating System

Patch Analysis operations only: Select the operating system for which you want to define a Patch Analysis operation. Choose from the following operating systems:

  • IBM AIX (only applicable to operations based on Patch Analysis Jobs already created in BMC Server Automation)
  • Red Hat Linux
  • Oracle Solaris
  • SUSE
  • Microsoft Windows

Use Existing Analysis Job

or

Create Analysis Job from Catalog 

Patch Analysis operations only; not applicable for the AIX operating system:

  • Select Use Existing Analysis Job to base an operation on a Patch Analysis Job already created in BMC Server Automation.
  • Select Create Analysis Job from Catalog to base an operation on a patch catalog. This option lets you choose the patches that the operation analyzes.

Description

Descriptive text for the operation

Security Group

The Security Group option specifies your current role in BSA or realm in BNA. If you are assigned to more than one role or realm, this option is available. If you are assigned to only one role or realm, this option defaults to that role or realm and you cannot edit this option.

Advanced Settings

(Provisioning operations only): Select to use advanced options when defining a VMware Provisioning operation.

By default, the wizard for defining a VMware operation requires three simple steps. If you select the Advanced Settings option, the wizard requires additional information, but you have more flexibility when configuring compute, storage, and network resources and additional choices for post-provisioning, job scheduling and notifications.

Back to list of steps

Content

The Content page specifies the content that an operation uses when it executes. You can only specify content when creating an operation; for an existing operation, you cannot modify content. Typically, when specifying content, you select a BMC Server Automation job.

Important

If you use the Content page to select a BMC Server Automation job, you cannot modify other options in the Operations wizard. All steps are complete, denoted by green checks in the ribbon at the top of the page. You can optionally view the other steps in the wizard.

ReadOnlySteps.gif

Use any of the following types of content to define an operation:

Operation type

Possible content

Batch

Batch Job

Compliance

Component template
Compliance Job (select an SCAP Compliance Job to create an SCAP Compliance operation) 

Deploy

Deploy Job
BLPackage
Various types of deployable software packages

NSH Script

NSH Script Job
NSH script 

Patch

Patching Job

Provisioning

Virtual Guest Package (VGP)

Note

Currently, the portal does not support jobs that are defined in BMC Server Automation to require approvals using integration with BMC Remedy ITSM.

Find content by using any of the procedures described below:

Perform a text search to identify the job or other material that forms the basis of an operation.

  1. Select Search content, enter a text string in the text box at right, and then click Search Search.gif. You can click Search.gif without entering any text to show all possible content.
    The results of the search appear in a list. For each item in the list, the portal provides the BMC Server Automation folder where the item is stored.
    Results of a search return the first 100 items found.

    OperationContent.gif
     
  2. Optionally, use the filters at left to refine your search.

    OperationContentLimited.gif

    When performing a search, you can limit results to certain types of content. For example, if you are defining a Compliance operation and you want to limit content to templates, select Template. Search results then display only templates.If you do not choose to limit search results, the portal displays all types of content.To clear all filtering choices, click clear all.
  3. In the list, select an item to use in this operation. 

    OperationSelectItem2Inclusion.png


  4. When you make a selection, you are prompted to select a job group unless you have selected a job. Navigate to the job group where this operation can be stored in BMC Server Automation. Select it and click OK.
    If you selected a job in the previous step, a job group is already assigned and you cannot modify it.
    A default job group may already be assigned for all users at your site or for your portal security group. If a default job group is already assigned, you are not prompted to choose one.
  5. Deploy Operations only: If you are defining a Deploy operation and the content you select is not an existing BMC Server Automation job, you can optionally specify a deploy template, which encapsulates the deploy settings to be used for the new operation.
    Click here for the steps to specify a deploy template.
    1. Next to the Deploy Template field, click Browse.
      SelectDeployTemplate.gif

      A window shows possible deploy templates. (The list of possible deploy templates can be assigned for a portal security group or the entire site.)
    2. Select a Deploy job in the list of templates.
      The Deploy job appears in the Selected Deploy Template field. To remove a Deploy template, select the Deploy job again from the list of possible Deploy jobs. 

      PatchingRemediationDeployTab.gif 
    3. Optionally, inspect the settings of the template by clicking Details. The portal lists settings for the selected job, such as its logging level and reboot settings. To return to the list of template jobs, click Templates.

      PatchingRemediationDeployTabSettingsTab.gif
      NoteMany options are available for controlling the behavior of a Deploy Job (that is, a deploy template) used for remediation purposes. See here for a complete list. For instructions on using BMC Server Automation to implement those options, see Setting deploy options for remediation jobs.
    4. If you have selected a Deploy template that is defined as an Advanced Deploy job in BMC Server Automation, you can schedule the individual phases of the remediation operation (that is, simulate, stage, and commit). Take the following steps:
      1. Click the Phase Schedules and Execution tab.

        PatchingRemediationDeployTabScheduleTab.gif
      2. Take any of the following actions:

        • If you do not want to schedule the phases of the remediation action, select Do not execute. 
        • If you want to schedule all phases to run sequentially, select Execute sequentially and then specify a time zone and a start time for when execution begins.
        • If you want to schedule each phase individually, select Execute selected phases. Select a time zone. Then specify a start time for each phase that you want to schedule. Instead of setting a start time, you can click After Previous Phase to indicate that the phase should begin after the previous phase completes. You can also click Not Scheduled to specify that a particular phase is not scheduled.
    5. Click OK. The settings in the Deploy job that the template identifies are used to define the Deploy operation you are creating.

Navigate to a job or other material that forms the basis of an operation.

  1. Select the Browse tab. A list of folders appears at left. 

    OperationContentBrowse1.gif
  2. Navigate to the folder containing the content you want to use. If the folder holds content that is appropriate for this type of operation, the content appears in the list at right. 
  3. Select an item from the list to use in this operation.

    OperationContentSelectByBrowseInclusion.png


    To find content, you may need to navigate through a folder structure. As you traverse folders, a trail of "bread crumbs" appears above the Folder list. You can select any name in the bread crumbs to display the contents of that folder.

  4. When you make a selection, you are prompted to select a job group unless you have selected a job. Navigate to the job group where this operation can be stored in BMC Server Automation. Select it and click OK.
    If you selected a job in the previous step, a job group is already assigned and you cannot modify it.
    A default job group may already be assigned for all users at your site or for your portal security group. If a default job group is already assigned, you are not prompted to choose one.
  5. Deploy Operations only: If you are defining a Deploy operation and the content you select is not an existing BMC Server Automation job, you can optionally specify a deploy template, which encapsulates the deploy settings to be used for the new operation.
    Click here for the steps to specify a deploy template.
    1. Next to the Deploy Template field, click Browse.
      SelectDeployTemplate.gif

      A window shows possible deploy templates. (The list of possible deploy templates can be assigned for a portal security group or the entire site.)
    2. Select a Deploy job in the list of templates.
      The Deploy job appears in the Selected Deploy Template field. To remove a Deploy template, select the Deploy job again from the list of possible Deploy jobs. 

      PatchingRemediationDeployTab.gif 
    3. Optionally, inspect the settings of the template by clicking Details. The portal lists settings for the selected job, such as its logging level and reboot settings. To return to the list of template jobs, click Templates.

      PatchingRemediationDeployTabSettingsTab.gif
      NoteMany options are available for controlling the behavior of a Deploy Job (that is, a deploy template) used for remediation purposes. See here for a complete list. For instructions on using BMC Server Automation to implement those options, see Setting deploy options for remediation jobs.
    4. If you have selected a Deploy template that is defined as an Advanced Deploy job in BMC Server Automation, you can schedule the individual phases of the remediation operation (that is, simulate, stage, and commit). Take the following steps:
      1. Click the Phase Schedules and Execution tab.

        PatchingRemediationDeployTabScheduleTab.gif
      2. Take any of the following actions:

        • If you do not want to schedule the phases of the remediation action, select Do not execute. 
        • If you want to schedule all phases to run sequentially, select Execute sequentially and then specify a time zone and a start time for when execution begins.
        • If you want to schedule each phase individually, select Execute selected phases. Select a time zone. Then specify a start time for each phase that you want to schedule. Instead of setting a start time, you can click After Previous Phase to indicate that the phase should begin after the previous phase completes. You can also click Not Scheduled to specify that a particular phase is not scheduled.
    5. Click OK. The settings in the Deploy job that the template identifies are used to define the Deploy operation you are creating.

Use the Preferred Content tab to select content that an administrator has chosen for you.

Administrators populate the Preferred Content tab by using BMC Server Automation and setting the IS_HIGHLIGHTED property for certain jobs to True.

  1. Select the Preferred Content tab.
  2. Using search or browse, find the preferred content you want to use. To show all applicable preferred content, click load all.
  3. Select an item to use in this operation.

    OperationContentPreferredInclusion.png


  4. When you make a selection, you are prompted to select a job group unless you have selected a job. Navigate to the job group where this operation can be stored in BMC Server Automation. Select it and click OK.
    If you selected a job in the previous step, a job group is already assigned and you cannot modify it.
    A default job group may already be assigned for all users at your site or for your portal security group. If a default job group is already assigned, you are not prompted to choose one.
  5. Deploy Operations only: If you are defining a Deploy operation and the content you select is not an existing BMC Server Automation job, you can optionally specify a deploy template, which encapsulates the deploy settings to be used for the new operation.
    Click here for the steps to specify a deploy template.
    1. Next to the Deploy Template field, click Browse.
      SelectDeployTemplate.gif

      A window shows possible deploy templates. (The list of possible deploy templates can be assigned for a portal security group or the entire site.)
    2. Select a Deploy job in the list of templates.
      The Deploy job appears in the Selected Deploy Template field. To remove a Deploy template, select the Deploy job again from the list of possible Deploy jobs. 

      PatchingRemediationDeployTab.gif 
    3. Optionally, inspect the settings of the template by clicking Details. The portal lists settings for the selected job, such as its logging level and reboot settings. To return to the list of template jobs, click Templates.

      PatchingRemediationDeployTabSettingsTab.gif
      NoteMany options are available for controlling the behavior of a Deploy Job (that is, a deploy template) used for remediation purposes. See here for a complete list. For instructions on using BMC Server Automation to implement those options, see Setting deploy options for remediation jobs.
    4. If you have selected a Deploy template that is defined as an Advanced Deploy job in BMC Server Automation, you can schedule the individual phases of the remediation operation (that is, simulate, stage, and commit). Take the following steps:
      1. Click the Phase Schedules and Execution tab.

        PatchingRemediationDeployTabScheduleTab.gif
      2. Take any of the following actions:

        • If you do not want to schedule the phases of the remediation action, select Do not execute. 
        • If you want to schedule all phases to run sequentially, select Execute sequentially and then specify a time zone and a start time for when execution begins.
        • If you want to schedule each phase individually, select Execute selected phases. Select a time zone. Then specify a start time for each phase that you want to schedule. Instead of setting a start time, you can click After Previous Phase to indicate that the phase should begin after the previous phase completes. You can also click Not Scheduled to specify that a particular phase is not scheduled.
    5. Click OK. The settings in the Deploy job that the template identifies are used to define the Deploy operation you are creating.

Back to list of steps

Targets

The  Targets  page specifies  the targets that an operation acts on when it executes. For targets, you can choose servers, server groups, components, or component groups.

Note

You cannot modify targets when the operation you are creating is based on a job that was defined in BMC Server Automation. In that case, you must use the targets defined in the job.

To specify targets

  1. To specify targets, do one of the following:
    • If you selected a job on the Content page of the operation wizard and targets were already defined for the job, you do not have to specify additional targets. The procedure is complete.
    • If you selected a job as content and targets are already defined for that job but you want to modify the list of existing targets, proceed to the next step
    • If you are modifying an existing operation and targets are already defined, you may want to show those targets. If so, click Load selected targets in the blue information box for the Targets section at right. Then proceed to the next step.

      LoadSelectedTargets.png

    • If you selected something other than a job on the Content page of the operation wizard, you must specify targets. Proceed to the next step.
  2. Find targets by following either of the procedures described below:

    1. Select the Search tab
    2. Enter a text string in the Search text box.
      Your text is matched against any text visible on screen, such as part of a server name or description.
      Search strings cannot include spaces or hyphens.
      Note that for server searches, you enter data into an elliptical text field. The elliptical shape distinguishes server searches from other types of search.
    3. Optionally, use the filters at left to refine your search.
    4. In the list, select one or more targets to use in this operation. If a target has already been selected (denoted by a green check), you can remove it from the list by selecting it again.

      OperationTargetsSearch.gif

    1. Select the Browse tab. A list of folders appears at left.

      OperationTargetsFolders.gif
    2. Navigate to the folder containing the target you want to use and select it. If a selected folder contains targets, they appear in the list of potential targets.
    3. Optionally, you can inspect the properties of potential targets by clicking ExceptionIcon.gif and selecting Show properties. A dialog box shows the properties of the target, as defined in BMC Server Automation. 
      Inspecting properties allows you to learn more about a target before you take any action on it. You can inspect the properties of groups and folders as well as individual targets.
    4. Select one or more targets to use in this operation. If a target has already been selected (denoted by a green check), click the target to remove it from the list of selected targets. In addition to selecting individual targets, you can also select groups and folders as targets.

      OperationTargetsSelected.gif

Back to list of steps

Notifications

The Notifications page defines notifications that are generated based on conditions you specify. For example, you can instruct the portal to send an email when an operation fails or aborts.

Back to list of steps

Schedule and Run

The Schedule & Run  page is where you schedule the execution of an operation. From this page, you can also run an operation immediately.

Note

If an operation uses a deploy template based on an Advanced Deploy Job in BMC Server Automation, you cannot set a schedule using the Schedule & Run page. Instead, the operation uses the schedule defined in the deploy template.

OperationSchedule2.png

To run an operation immediately

At the bottom, click Execute Now. The operation is saved and runs immediately.

After you have defined content for an operation, the Execute Now option is always available.

To schedule an operation

  1. Specify a time for the operation to run by clicking the clock icon ClockIcon.gifbeside Start At.
    An interface similar to a digital clock appears.
    DigitalClock.gif
  2. Set the hour and time. Then click AM or PM to toggle between those choices.
  3. At right of the clock icon, select a time zone.
  4. Set the interval at which the operation runs:
    • Run Once
    • Daily
    • Weekly—If you select this option, you must also select the day of the week and specify the weekly interval, such as every 2 weeks.
    • Monthly—If you select this option, you must also select one of the following options for when the operation runs:
      • A date, such as Day 15.
      • A weekday, such as Second Monday,.
      • The last day of the month.
    • Interval—If you select this option, you must also select the first date for running the operation and the interval at which it runs afterwards, such as every 8 hours.
  5. Click SetSchedule.gif.
    The operation appears in the list of scheduled operations.

To delete a scheduled operations

Select the operation and click Remove DeleteIcon.gif.

Requesting job approvals

If you integrate BladeLogic Portal with BMC Atrium Orchestrator, you can request a job approval through BMC Remedy ITSM Change Management for any BladeLogic Portal operation. 

If the content of an operation is a job already defined in BMC Server Automation and that job is defined to require job approval, the portal shows that job approval information in a read-only format. If the BMC Server Automation job does not include job approval, the portal does provide any options for job approval.

BAOApproval Information.gif

To request job approval 

  1. For Approval Type, select one of the following options:
    • Manual Approval—Use this option for jobs that require a BMC Remedy ITSM administrator to review the job details and impact level prior to approving execution. By default, this option generates a change request with a Change Timing value of Normal.
    • No Approval Required—Use this option if you are not required to enter the additional BMC Remedy ITSM parameters. If a job type requires approval and you select No approval, the approval mechanism is bypassed and the job executes either immediately or as scheduled.
    • Emergency Approval—Use this option for jobs that need immediate attention and must be run immediately. By default, this option generates a change request with a Change Timing value of Emergency and an Urgency value of High.
    • Automatic Approval—Use this option for change requests that use an Approval Process Configuration form to automatically approve the request. By default, this option generates a change request with a Change Timing value of No impact.
  2. If you want to customize the approval request, click Show Advanced Options and provide the information for any of the following options:
    • Change Type—Enter the type of change being requested.
    • Impact—Select the scope of the change being requested. For example, is the job targeted for one server or a large number of servers? The default value is Minor/Localized.
    • Risk Level—Select the severity of the change being requested.

Back to list of steps

Local Properties

In the Local Properties page, you can review and modify values for local properties that are used when a Deploy job in BMC Server Automation deploys a BLPackage for which local properties have been defined. Typically, local properties are used to deploy a package multiple times to the same target server.

The Local Properties page is active only when either of the following conditions are true:

  • The content type (defined on the Content page) is a BLPackage and local properties have been defined for the BLPackage.
  • The content type is a Deploy job and the job is defined to deploy a BLPackage for which local properties have been defined.

OperationLocalProperties.gif

To modify a local property value

  1. Click the name of a local property. A dialog box displays information and options about the property.

    EditLocalProperty.gif
  2. Modify the local property value by clicking in the Value text box and entering a new value.
  3. Click OK.

Back to list of steps

Parameters

In the Parameters page, you can review and modify values for parameters that are used when an NSH Script Job in BMC Server Automation runs a script. The Parameters page is only available when you create or modify an NSH Script operation.

Any values you enter on the Parameters page override default values that were defined for parameters in the script. This page also lets you choose whether parameter flags and values should be used when the job runs. For more information on creating an NSH script, see Adding a Network Shell script.

When entering a string value for a parameter, you can parameterize the string by inserting a variable that represents a property value. When the job runs, the property references are resolved using values defined for target servers. You can only insert property references in this way when the script is defined in BMC Server Automation to use either the "runscript" or the "copy and execute" command (that is, you chose the first or third script types when defining the Network Shell script). Property references cannot be used when Network Shell scripts execute centrally against target servers because the property references cannot be resolved for each target server.

OperationParameters.gif

To modify parameter values

  1. Click the name of a parameter. 
    A dialog box displays information and options about the parameter.

    EditParameter.gif
  2. Modify parameter values by taking any of the following actions: 
    • To specify whether the operation should use a flag for this parameter, for Flag runtime usage, select one of the following options:
      • Use — The operation uses the parameter flag.
      • Ignore — The operation does not use the parameter flag.
        If the Network Shell script is defined so the job requires a flag for this parameter, you cannot modify the setting.
    • To modify the value of the parameter, click in the Value text box and enter a new value.
      You can only modify parameters that are defined to be editable when the Network Shell script was created. 
      If you want to include a reference to a property in the parameter, enter a variable bracketed with double question marks (such as ??WINDIR??/rsc). Alternatively, you can click Properties to find and select the appropriate property.
    • To specify whether the operation should use a value for this parameter, for Value runtime usage, select one of the following options:
      • Use — The operation uses this parameter value.
      • Ignore — The operation does not use this parameter value.
        If the Network Shell script is defined so the job requires a value for this parameter, this cell is set to Required and you cannot modify the setting. 
        If the parameter is defined so it does not accept a value, and the parameter has never had a value associated with it, you cannot modify the setting.
  3. Click OK.

Back to list of steps

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*