HP StorageWorks Storage Mirroring scripting guide (T2558-96074, February 2008)

8 - 7
Setting bandwidth limitations
You can set a fixed bandwidth limit or a bandwidth schedule.
1. With a fixed bandwidth limit, data will be transmitted at all times according to the user-specified bandwidth
configuration. If you want to set a fixed bandwidth limit, use the
limit bandwidth command.
2. With a scheduled bandwidth limit, data will be transmitted according to the user-specified schedule and the
user-specified bandwidth configuration. Implementing a schedule requires several steps and Storage Mirroring DTCL
commands. Create a scheduled event using the
limit bandwidth schedule add command.
Command LIMIT BANDWIDTH
Description Sets a fixed bandwidth limitation for transmitting data from the source to the target
Syntax
LIMIT BANDWIDTH <bytes>, <seconds> TO <target>
Options
bytes—Number of bytes to be transmitted
seconds—Maximum number of seconds to wait before transmitting again
target—Name of the target, an IP address on the target, or a virtual IP address. Depending on the
network route Storage Mirroring uses to access the target, you may need to specify the fully
qualified domain name.
Examples
limit bandwidth 19300 5 to beta
Notes This command transmits in bursts, not bytes per seconds. The time identifies how long to wait
before transmitting again. For example, if 5 seconds are specified and it only takes 2 seconds to
send the specified bytes, Storage Mirroring will wait an additional 3 seconds before transmitting
again.
Target names that contain non-alphanumeric characters must be enclosed in quotation marks.
Command LIMIT BANDWIDTH SCHEDULE ADD
Description Creates a scheduled bandwidth event for limiting transmission of data from the source to the target
Syntax
LIMIT BANDWIDTH SCHEDULE ADD <label> DAYS=<day1>[, day2,..., dayN]
STARTTIME=<hh:mm> LIMIT=<bytes>, <seconds> | UNLIMITED
TO <target>
Options label—Unique name that identifies this bandwidth scheduling event
Day1, Day2,..., DayN—Day(s) of the week that you want to schedule the bandwidth limitation for.
You can either spell out the entire day or use just the first two letters of the day.
hh:mm—Time, using a 24-hour clock, to indicate when this event will start
bytes—Number of bytes to be transmitted
seconds—Number of seconds to wait before transmitting again
UNLIMITED—Bandwidth is not limited during this scheduled event
target—Name of the target, an IP address on the target, or a virtual IP address. Depending on the
network route Storage Mirroring uses to access the target, you may need to specify the fully
qualified domain name.
Examples
limit bandwidth schedule add weekday days=Mo, Tu, We, Th, Fr
starttime=06:00 limit=19300 5 to beta
limit bandwidth schedule add weekend days=Sa, Su starttime=04:00
limit=unlimited to beta