Jump to content

Marcos

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    India

About Marcos

Profile Information

  • OS
    none specified

Marcos's Achievements

0

Reputation

  1. I tried to reply to this forum and then I saw 'you cannot reply to this Thread' !! I looked around and realized -- I wasn't logged in !! So now I'm logged in! ( Obviously !!) I tried 5eraph's script and it worked like a charm (tested on a x64 machine with 64 bit OS).... so it seems it might not work properly on a 32 bit OS (good to know). Anyways, enough of chatter ! I will put all ur scripts to test ! I will be running them on some servers to see how it goes... Thanks again for the Posts !! U GUYZ R AWESOME !!!
  2. This one's for Jaclaz... What does this do ('TYPE "%~dpnx1"') in the batch example ? Read from a file ? Do I need to replace something ? Sorry if it's a stupid question !
  3. Thanks a lot Guys !!! Never knew it's such an AWESOME Forum !!! Let me try the codes and see if it does the trick ! Will get back if I have any problems ! I suppose I can't 'challenge-enough' U guys with any 'This-is-too-hard-to-batch' problems !
  4. Sorry, I seem to have confused self and others with my earlier statements. I need the below: 1. No. of Unbound disks and their capacity. 2. No. of disks with similar capacity. Output will be something like this for the above example. No. of Unbound disks: 4 Count of Unbound disks with size 274845 = 2 Count of Unbound disks with size 1878379 = 2
  5. I have .txt file with contents similar to below eg. ============================ 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
×
×
  • Create New...