ops

Usage

fugue [global options] ops [option] [<alias> | <FID>] [job_id]

Arguments

[<alias> | <FID>]
FID or alias of the process whose status is being checked

Options

Global options are detailed here.

-s | --start start_time>
Start Time, ex: -s “01/31/2017 15:33”.
-e | --end end_time>
End Time, ex: -e “01/31/2017 15:33”.
--first
Filter for the first batch of operations performed.
--last
Filter for the last batch of operations performed.
--verbose
Display a detailed view of operations run for a process.
--json
Emit output as JSON. The JSON flag displays command output in JSON format, which is useful for automation.
-h | --help
Show help text. The help flag is available throughout the CLI in both an application-level and command-level context. It enables a user to view help text for any command within the Fugue CLI.

Definition

When Fugue is running a process, work is broken up into cloud “operations” that are grouped by “job”.

The fugue ops command displays fine-grained job status information for the Fugue process matching the specified <fid> or <alias>.

Review our Terminology here.

Examples

Checking the Details of a Process with ops

To get the specific details for a specific process, enter the ops command with the FID or alias as an argument. The Fugue CLI returns the status.

$ fugue ops [<alias> | <FID>]

Example usage with FID:

$ fugue ops fb80c8ff-49ef-1234-abcd-1234abcdef98765

Example usage with alias:

$ fugue ops example-network

Example Output (edited to condense the sample):

$ fugue ops fb80c8ff-49ef-1234-abcd-1234abcdef98765

Job Id      Instruction                                    Started    Last Updated    Status
----------  ---------------------------------------------  ---------  --------------  --------
1506123456  aws.ec2.create_dhcp_options                    10:04am    10:04am         Success
1506123456  aws.ec2.create_internet_gateway                10:04am    10:04am         Success
1506123456  aws.ec2.create_vpc                             10:04am    10:04am         Success
1506123456  aws.ec2.associate_dhcp_options                 10:04am    10:04am         Success
1506123456  aws.ec2.attach_internet_gateway                10:04am    10:04am         Success
1506123456  aws.ec2.create_route_table                     10:04am    10:04am         Success
1506123456  aws.ec2.attach_internet_gateway                10:04am    10:04am         Success
1506123456  aws.ec2.create_route_table                     10:04am    10:04am         Success
1506123456  aws.ec2.create_security_group                  10:04am    10:04am         Success
1506123456  aws.ec2.create_subnet                          10:04am    10:04am         Success
1506123456  aws.ec2.create_vpc_peering_connection          10:04am    10:04am         Success
1506123456  aws.ec2.modify_vpc_attribute                   10:04am    10:04am         Success
1506123456  aws.ec2.accept_vpc_peering_connection          10:04am    10:04am         Success
1506123456  aws.ec2.associate_route_table                  10:04am    10:04am         Success
1506123456  aws.ec2.modify_subnet_attribute                10:04am    10:04am         Success
1506123456  aws.ec2.modify_vpc_peering_connection_options  10:04am    10:04am         Success
1506123456  aws.ec2.revoke_security_group_egress           10:04am    10:04am         Success
1506123456  aws.ec2.revoke_security_group_egress           10:04am    10:04am         Success
1506123456  aws.ec2.authorize_security_group_egress        10:04am    10:04am         Success
1506123456  aws.ec2.authorize_security_group_ingress       10:04am    10:04am         Success
1506123456  aws.ec2.create_route                           10:04am    10:04am         Success
1506123456  aws.ec2.create_tags                            10:04am    10:04am         Success

To see the job details in --verbose format use the following:

Note: We’ve included the --last flag to limit the output to the last batch of operations that were performed, and edited to provide a sample below.

$ fugue ops example-network --verbose --last

    - http_code: 200
      last_updated: 1506089144
      status: Success
      job_id: 1506123456
      fid: df41ce00-7d16-4de6-81ac-c654afcc9083
      operation: aws.ec2.create_tags
      running: False
      attempts: 1
      code: Success
      resource_name: df41ce00-7d16-4de6-81ac-c654afcc9083.10495af0-e65c-5232-a80f-6070e260d4af.tags
      started: 1506089144

    - http_code: 200
      last_updated: 1506123456
      status: Success
      job_id: 1506089140
      fid: df41ce00-7d16-4de6-81ac-c654afcc9083
      operation: aws.ec2.create_tags
      running: False
      attempts: 1
      code: Success
      resource_name: df41ce00-7d16-4de6-81ac-c654afcc9083.9e9a6951-2f46-5771-85e3-9c461d1a7c65.tags
      started: 1506089144