Announcement Banner

ChrisCB1

updated

8 years ago

C

ChrisCB1

1 Rookie

•

8 Posts

0

1763

July 12th, 2018 13:00

Impact policy syntax

Hey alls,

Im trying to create and modify job impact policies and I cant figure out the syntax.  I can create a new policy, but I cant modify a policy.

              ID: monTest2

     Description: -

          System: -

Impact Intervals

              Impact: Low

               Begin: Sunday 00:00

                 End: Monday 02:00

              Impact: Paused

               Begin: Monday 02:00

                 End: Monday 12:00

              Impact: Low

               Begin: Monday 12:00

                 End: Sunday 00:00

I want to remove the "paused" schedule and replace with a different schedule.

I have tried the following:

ISILONTEST-1# isi job policies modify montest2 --remove-impact paused

Error in field(s): remove_impact

Field: remove_impact has error: A property was present that is not defined by the schema. Input validation failed.

ISILONTEST-1# isi job policies modify montest2 --remove-impact paused --remove-begin monday 02:00 --remove-end monday 12:00

Option --remove-begin has an error:

Could not parse monday as an impact interval.

Usage:

    isi job policies modify

        [--description ]

        [--impact (low | medium | high | paused) | --clear-impact | --add-impact (low | medium | high | paused) | --remove-impact (low | medium |

          high | paused)]

        [--begin | --clear-begin | --add-begin | --remove-begin ]

        [--end | --clear-end | --add-end | --remove-end ]

        [--reset-intervals]

        [{--help | -h}]

See 'isi job policies modify --help' for more information.

I cant figure out the syntax.  Anyone have any ideas?  Thx

  • crklosterman

    450 Posts

    1490

    1

    Posted July 13th, 2018 07:00

    So for reference, please review the CLI Administration Guide:

    https://support.emc.com/docu84280_OneFS-8.1.0-CLI-Administration-Guide.pdf?language=en_US

    Look at pages 466-467

    You're overthinking it a bit.  Simple repro:

    isilon-1# isi job policies view chrisTestPolicy

                  ID: chrisTestPolicy

         Description: -

              System: -

    Impact Intervals

                  Impact: Low

                   Begin: Sunday 00:00

                     End: Monday 02:00

                  Impact: Paused

                   Begin: Monday 02:00

                     End: Monday 09:00

                  Impact: Low

                   Begin: Monday 09:00

                     End: Sunday 00:00

    You don't really want to remove an impact, you want to change the impact during that time period, and it'll update the times accordingly.

    So I could do this for instance:

    isilon-1# isi job policies modify chrisTestPolicy --impact medium --begin 'Monday 02:00' --end 'Monday 09:00'

    isilon-1# isi job policies view chrisTestPolicy

                  ID: chrisTestPolicy

         Description: -

              System: -

    Impact Intervals

                  Impact: Low

                   Begin: Sunday 00:00

                     End: Monday 02:00

                  Impact: Medium

                   Begin: Monday 02:00

                     End: Monday 09:00

                  Impact: Low

                   Begin: Monday 09:00

                     End: Sunday 00:00

    Or this:

    isilon-1# isi job policies modify chrisTestPolicy --impact low --begin 'Monday 02:00' --end 'Monday 09:00'

    isilon-1# isi job policies view chrisTestPolicy

                  ID: chrisTestPolicy

         Description: -

              System: -

    Impact Intervals

                  Impact: Low

                   Begin: Sunday 00:00

                     End: Sunday 00:00

    Hope this helps, if so please mark the answer as helpful or solved.

    ~Chris

  • ChrisCB1

    1 Rookie

    •

    8 Posts

    1490

    0

    Posted July 16th, 2018 08:00

    Thanks, Chris.

    This helps.  I can use this as a workaround.  I have some polices that use high/med/paused and I was hoping I could remove all the med schedules.  I will just go schedule by schedule and replace them one at a time.

    This is my production policy:

    Impact Intervals

                  Impact: High

                   Begin: Sunday 00:00

                     End: Sunday 19:30

                  Impact: Medium

                   Begin: Sunday 19:30

                     End: Monday 06:00

                  Impact: Paused

                   Begin: Monday 06:00

                     End: Monday 18:00

                  Impact: Medium

                   Begin: Monday 18:00

                     End: Tuesday 06:00

                  Impact: Paused

                   Begin: Tuesday 06:00

                     End: Tuesday 18:00

                  Impact: Medium

                   Begin: Tuesday 18:00

                     End: Wednesday 06:00

                  Impact: Paused

                   Begin: Wednesday 06:00

                     End: Wednesday 18:00

                  Impact: Medium

                   Begin: Wednesday 18:00

                     End: Thursday 06:00

                  Impact: Paused

                   Begin: Thursday 06:00

                     End: Thursday 18:00

                  Impact: Medium

                   Begin: Thursday 18:00

                     End: Friday 06:00

                  Impact: Paused

                   Begin: Friday 06:00

                     End: Friday 18:00

                  Impact: High

                   Begin: Friday 18:00

                     End: Sunday 00:00

    Thanks

    -Chris