No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

OceanStor 2800 V3 V300R006

This document is applicable to OceanStor 2800 V3. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change hypervault_policy general

change hypervault_policy general

Function

The change hypervault_policy general command is used to change a HyperVault policy.

Format

change hypervault_policy general policy_id=? { name=? | period=? | days_of_week=? | days_of_month=? | interval_day=? | frequency_hour=? | frequency_minute=? | start_time=? | policy_status=? | copy_threshold=? } *

Parameters

Parameter

Description

Value

policy_id=?

Indicates the ID of the HyperVault policy.

To obtain the value, run the "show hypervault_policy general" command without parameters.

name=?

Name of the HyperVault policy.

The value consists of 1 and 127 ASCII characters including digits, letters,and underscores (_),hyphens (-), and periods (.).

period=?

Indicates the policy of a schedule.

The value can be "daily", "weekly" or "monthly" , where,

  • daily: daily cycle.
  • weekly: weekly cycle.
  • monthly: monthly cycle.

days_of_week=?

Days of a week.

The value can be any day or days from Monday to Sunday. This parameter can be specified when "period" is set to "weekly".

  • "mon": Monday.
  • "tue": Tuesday.
  • "wed": Wednesday.
  • "thu": Thursday.
  • "fri": Friday.
  • "sat": Saturday.
  • "sun": Sunday.

The value is set to all seven days of a week by default.

days_of_month=?

Days of a month.

This parameter can be specified when "period" is set to "monthly". The value can be any day or days in a month. Number 1 to 31 indicates the corresponding 31 days in a month. The value is set to the 31 days of a month by default.

interval_day=?

Interval of days.

This parameter can be specified when "period" is set to "frequency". The value is the number of days the interval lasts and ranges between "1" and "7". The default value is "1".

frequency_hour=?

Interval of hours.

The value is an integer between 0 and 23.

frequency_minute=?

Interval of minutes.

The value is an integer between 0 and 55.

start_time=?

Policy execution time.

The value is a time between "00:00" and 23:59" in the format of "HH:MM".

copy_threshold=?

Maximum threshold of copy count.

The value indicates the maximum number of copies and ranges between "3" and "255".

When "type" is set to "local", the default value is "5".

When "policy_type" is set to "remote", the default value is "35".

policy_status=?

Policy status.

The value is "on" or "off", where:

  • "on": The policy is enabled.
  • "off": The policy is disabled.

The default value is "on".

Level

Administrator

Usage Guidelines

None

Example

  • Change the policy "213242" to 23:00 of every Sunday.
    admin:/>change hypervault_policy general policy_id=213242 period=weekly days_of_week=sun start_time=23:00  
      
    Command executed successfully.
  • Change the status of policy "213242" to "on".
    admin:/>change hypervault_policy general policy_id=213242 policy_status=on 
      
    CAUTION:  You are about to activate a HyperVault policy. 
      
    This operation automatically backs up data using this policy periodically. 
      
    Suggestion: Before performing this operation, ensure that you have selected the correct HyperVault policy. 
      
    Do you wish to continue?(y/n)y 
      
    Command executed successfully.
  • Change the status of policy "213242" to "off".
    admin:/>change hypervault_policy general policy_id=213242 policy_status=off 
      
    CAUTION: You are about to disable a HyperVault policy. 
      
    This operation disables the automatic periodic backup function of this policy. 
      
    Suggestion: Before performing this operation, ensure that you have selected the correct HyperVault policy. 
      
    Do you wish to continue?(y/n)y 
      
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138382

Views: 319799

Downloads: 38

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next