Loading

×Sorry to interrupt
This page has an error. You might just need to refresh it.
[NoErrorObjectAvailable] Uncaught ReferenceError: addCTracking is not defined
Failing descriptor: {markup://c:KM_ArticleThemeLayout}

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Maintenance schedules do not honor local timezone in vRealize Operations Manager 6.7 or later (59350)

Last Updated: 8/25/2023Categories: InformationalTotal Views: 2915Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

When configuring a maintenance schedule in vRealize Operations Manager 6.7, you may observe the following error:

'Stop on' date is in the past for selected Time Zone, despite the local timezone being correctly set within the product.

Resolution

This is a known issue affecting vRealize Operations Manager 6.7 and later.
Currently there is no resolution.

This issue will be addressed in a future release or vRealize Operations Manager.

Workaround

To work around the issue, use the REST API to edit Maintenance Schedules.
Use one of the following options for cURL or Postman.

cURL

Log into the vRealize Operations Manager Primary node as root via SSH or console.

Run the following command to export a list of all existing Maintenance Schedules:

curl -k -H "Accept: application/json" -H "Content-type: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:password' -X GET https://ip/suite-api/api/maintenanceschedules  > /tmp/schedules.txt

Note: Replace password with the local admin user password and ip with the IP address of the vRealize Operations Manager Primary node.

Example: curl -k -H "Accept: application/json" -H "Content-type: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:Secret123!' -X GET https://192.168.3.10/suite-api/api/maintenanceschedules  > /tmp/schedules.txt

Run the following command to convert the exported list to JSON format:

python -mjson.tool /tmp/schedules.txt > /tmp/schedules-f.txt

Open /tmp/schedules-f.txt in a text editor.

Find the Maintenance Schedule you want to edit, make the desired edits, and remove all other lines around the Maintenance Schedule.

Note: Only one Maintenance Schedule can be updated at a time, so only one Maintenance Schedule should be left in the file.  Once complete, the file should similar to the below:
{
"id": "<UUID_1>",
"key": "My Maintenance Schedule",
"schedule": {
"duration": 1,
"expireRuns": 2,
"hour": 0,
"minuteOfTheHour": 0,
"recurrence": 1,
"scheduleType": "DAILY",
"startDate": "10/28/2018"
"timeZone": "America/New_York"
}
}

Save and close the file.

Run the following command to update the Maintenance Schedule with the edits made to /tmp/schedules-f.txt:

curl -k -H "Content-type: application/json"  -H "Accept: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:password' -X PUT https://ip/suite-api/api/maintenanceschedules -d @/tmp/schedules-f.txt

Note: Replace password with the local admin user password and ip with the IP address of the vRealize Operations Manager Primary node.

Example: curl -k -H "Content-type: application/json"  -H "Accept: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:Secret123!' -X PUT https://192.168.3.10/suite-api/api/maintenanceschedules -d @/tmp/schedules-f.txt

Postman

Postman, which can be downloaded from https://www.getpostman.com/apps):
Note: This is a link to an external, 3rd party solution.  If you find this link to not work any longer, please provide feedback at the bottom of the article to request it to be updated.

Open Postman and navigate to File > Settings > General.

Disable SSL certificate verification, then close the Settings window.

Note: Follow http://blog.getpostman.com/2014/01/28/using-self-signed-certificates-with-postman/ if using the chrome extension.

Under the Authorization tab, set the Type dropdown to Basic Auth and supply the credentials for the local vRealize Operations Manager admin user.

From the Headers tab, add an Accept key with application/json as the value.

At the top, set the request type to GET and enter https://ip/suite-api/api/maintenanceschedules for the request URL.

Note: Replace ip with the IP address of the vRealize Operations Manager Primary node.

Example: https://192.168.3.10/suite-api/api/maintenanceschedules

Click Send.

The output will display all saved Maintenance Schedules.

Find the Maintenance Schedule you want to edit and copy it's block

Note: The full block will look similar to this:

{
"id": "<UUID_1>",
"key": "My Maintenance Schedule",
"schedule": {
"duration": 1,
"expireRuns": 2,
"hour": 0,
"minuteOfTheHour": 0,
"recurrence": 1,
"scheduleType": "DAILY",
"startDate": "10/28/2018"
"timeZone": "America/New_York"
}
}

Under the Body tab, select raw and change the type to JSON (application/json).

Paste the Maintenance Schedule block into the body window and make any desired edits.

Note: Only one Maintenance Schedule can be updated at a time, so only one Maintenance Schedule should be line the raw body.  Once complete, the raw body should look similar to this:
{
"id": "<UUID_1>",
"key": "My Maintenance Schedule",
"schedule": {
"duration": 1,
"expireRuns": 2,
"hour": 4,
"minuteOfTheHour": 30,
"recurrence": 1,
"scheduleType": "DAILY",
"startDate": "10/28/2018"
"timeZone": "America/New_York"
}
}

Set the request type to PUT and click Send.

Related Information

To be notified when this article is updated, click Subscribe under the Actions box.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vRealize Operations Manager

VMware vRealize Operations

Related Versions:

VMware vRealize Operations Manager 7.0.x

VMware vRealize Operations Manager 6.7.x

Take Our Survey

Support Assistant