EM 12c : Creating Blackout Using "emcli create_blackout" Fails with "The blackout end_time cannot be in the past" (Doc ID 2244202.1)

Last updated on MARCH 27, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.4.0 and later
Information in this document applies to any platform.

Symptoms

Attempting to create blackout using the emcli command fails:

emcli create_blackout -name=testing -add_targets=LISTENER_domainname:oracle_listener -propagate_targets -reason=Blkout_By_BlackOut -schedule="duration::30"
Error: The blackout end_time cannot be in the past

Creating the blackout via the console works fine without any errors.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms