============================
Bus 1 Enclosure 1 Disk 12
Capacity: 274845
State: Unbound
Bus 1 Enclosure 1 Disk 13
Capacity: 274845
State: Unbound
Bus 1 Enclosure 2 Disk 0
Capacity: 274845
State: Enabled
Bus 1 Enclosure 2 Disk 1
Capacity: 274845
State: Enabled
Bus 2 Enclosure 3 Disk 0
Capacity: 1878379
State: Unbound
Bus 2 Enclosure 3 Disk 1
Capacity: 1878379
State: Enabled
Bus 2 Enclosure 3 Disk 2
Capacity: 1878379
State: Unbound
Bus 2 Enclosure 3 Disk 9
State: Empty
Bus 2 Enclosure 3 Disk 10
State: Empty
==================================
I need a batch file to do the below:
1. Read thru' the file and search only unbound disks and associated capacity.
2. Unique value of capacity and count of each value.
For eg.
The above data has two unique values of capacity for Unbound Disks -- '274845' & '1878379'.
Disk with capacity > 274845 has count 4 & disk with capacity > 1878379 has count 3
Note: I may be able to run .vbs as well, but prefer to have a .bat or .cmd
Thanks
This post has been edited by Marcos: 02 February 2012 - 01:45 AM



Help

Back to top











