Lucien9
Cadet
- Joined
- Oct 10, 2019
- Messages
- 2
Hello,
I am buidling some scripts to pull performance data from FreeNAS using /api/v2.0/stats
Listing available stats sources (/stat/get_sources) shows the following for "ctl-iscsi":
I figured out the numbers X-Y refer to a combination iSCSI portal and target.
But is seems quite dynamic...
1) started with single target on portal 1 -> 1-1
2) created a new target with portal 1 and got combination 1-2
3) changed the portal of the new target to 2 and got combination 2-3
4) changed the portal of the new target back to 1 and got 1-4
5) removed the new target completely
As you can see all the combinations still exist even though I now have only one target.
My questions are:
1) Is there any way to tell which X-Y combination refers to which target?
2) Is there a way to clean up old X-Y combinations from the stats?
Thanks and regards,
Lucien
I am buidling some scripts to pull performance data from FreeNAS using /api/v2.0/stats
Listing available stats sources (/stat/get_sources) shows the following for "ctl-iscsi":
Code:
"ctl-iscsi": [ "disk_octets-1-1", "disk_ops", "disk_time", "disk_time-1-1", "disk_octets", "disk_ops-1-1", "disk_time-2-3", "disk_ops-1-2", "disk_ops-2-3", "disk_time-1-2", "disk_octets-1-4", "disk_ops-1-4", "disk_octets-2-3", "disk_octets-1-2", "disk_time-1-4" ],
I figured out the numbers X-Y refer to a combination iSCSI portal and target.
But is seems quite dynamic...
1) started with single target on portal 1 -> 1-1
2) created a new target with portal 1 and got combination 1-2
3) changed the portal of the new target to 2 and got combination 2-3
4) changed the portal of the new target back to 1 and got 1-4
5) removed the new target completely
As you can see all the combinations still exist even though I now have only one target.
My questions are:
1) Is there any way to tell which X-Y combination refers to which target?
2) Is there a way to clean up old X-Y combinations from the stats?
Thanks and regards,
Lucien