setting the property "ha_sync_traffic_share"

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Anatoly (staff), Max (staff)

Post Reply
YoYo
Posts: 9
Joined: Mon Nov 13, 2017 4:59 pm

Mon Nov 13, 2017 5:29 pm

I'm trying to write a script in PowerShell which allows me to set the following property:

$device.GetPropertyValue("ha_sync_traffic_share")

I need to automate changing the sync priority when reseeding... any ideas?
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Mon Nov 13, 2017 7:58 pm

YoYo,

Use the following:

Code: Select all

$device.SyncTrafficShare = 10
$device.Refresh()
It accepts an integer value, so feel free to adjust as needed.
If you want to explore further, use:

Code: Select all

$device | Get-Member
to see the available parameters to be retrieved or set.
YoYo
Posts: 9
Joined: Mon Nov 13, 2017 4:59 pm

Mon Nov 13, 2017 10:19 pm

I'm receiving:
"setting "SyncTrafficShare": "The property 'SyncTrafficShare' cannot be found on this object."
I'm using v8.0.0 Build 10927
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Tue Nov 14, 2017 11:09 am

I tested this on the latest build, which is 11456. I would suggest you upgrading StarWind and try changing this value.
Post Reply