Chris, This information needs to be parsed and put it in a readable format for some decision making. It has to be parsed either via a script or manually. I thought script would be a better and faster way. And that is all I can say.
A On Wed, Sep 17, 2008 at 5:04 PM, Chris Charley <[EMAIL PROTECTED]> wrote: > > ----- Original Message ----- From: ""Aali Naser"" > > > Hello All, >> >> I have a file with the info in the following format; >> >> ================Start of File===================== >> Server Name: ABCDEF >> Manufacturer: Dell >> Model: Some Model >> Number Of Processors (Includes MultiThread): 2 >> Maximum Clock Speed: 3 - GHZ >> Serial Number: 123456 >> Proc Usage: (1 Proc Sample Only) 1% >> Mem Total: 2 - GB >> DeviceID: C: Space: 20GB Used Space: 2GB UTIL: 61.4991581037678% >> DeviceID: E: Space: 567.90882304GB Used Space: 32GB UTIL: >> 5.66111272649405% >> DeviceID: F: Space: 5GB Used Space: 3GB UTIL: 7.68405957709316% >> Log File Directory: C:\WINDOWS\system32\LogFiles >> 196.136 >> Service Pack: 2.0 >> Connections: 53 >> HTTPERR Folder: >> OS Directory: C:\WINDOWS >> System Directory: C:\WINDOWS\system32 >> ---------------------------- >> Server Name: GHIJKL >> Manufacturer: Dell >> Model: Some Model >> Number Of Processors (Includes MultiThread): 4 >> Maximum Clock Speed: 3 - GHZ >> Serial Number: 123456 >> Proc Usage: (1 Proc Sample Only) 0% >> Mem Total: 2 - GB >> DeviceID: C: Space: 2GB Used Space: 9GB UTIL: 46.0333821902412% >> DeviceID: E: Space: 5GB Used Space: 3GB UTIL: 7.68405957709316% >> 69.136 >> Service Pack: 2.0 >> Connections: 206 >> HTTPERR Folder: >> OS Directory: C:\WINDOWS >> System Directory: C:\WINDOWS\system32 >> ---------------------------- >> ================End of File===================== >> >> Each machine entry is seperated by a "----------------------------" in the >> file. I need to put together each machine entry in the following way; >> >> *Server_Name Manufacture Model # of Procs Serial# Total_Mem Disk1 >> Disk2 Disk3 Service_Pack* >> >> The number of disks could be two or more for each machine and I want to be >> able to capture all of them. >> >> Can any one help me with the logic for this type data processing? >> >> Regards, >> >> A >> >> > Hello Aali > > A couple of questions occurred to me. Is the printout for human eyes or > might it need to be parsed further? With a variable number of disk drives, > the printout lines will vary according to the number of drives and make > further parsing difficult (perhaps impossible). I think you are on the right > track, (reading your reply to Shawn), but I'm wondering what use the > printout will be used for. > > Chris > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > >