Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Dudes! Great site. You've saved me hours and hours...and I have just started using your site. I've already passed your URL onto my entire company. Keep up the awesome work. Bingo-bango..."

Geography

Where in the world do Tek-Tips members come from?
dwcasey (MIS)
13 Feb 08 9:44
I run a script that does some checks on many, many servers.

If an error condition exists, I write out to a file ERR: with the issue that was found.  I'm wanting to be able to create some format from this that will go into a spreadsheet.  Really just looking for ideas on what would be a good way to parse it that would be acceptable for Excel.  Like maybe grab a unique servername and all it's issues?

This is a cat *.out of the servers.out file created by my script.

srv.srv01.out:ERR: dummy not found for LTAPEDEV in pri srv01
srv.srv01.out:ERR: Found 127.0.0.1 on TSM Server in resolv.conf for TSM srv01
srv.srv02.out:ERR: dummy not found for LTAPEDEV in pri srv02
srv.srv02.out:ERR: directory /dummy not found on filesystem in pri srv02
srv.srv02.out:ERR: directory /dummy not found on filesystem in bkp srv02
srv.srv02.out:ERR: Found 127.0.0.1 on TSM Server in resolv.conf for TSM srv02
srv.srv03.out:ERR: dummy not found for LTAPEDEV in pri srv03
srv.srv03.out:ERR: directory /dummy not found on filesystem in pri srv03
srv.srv03.out:ERR: directory /dummy not found on filesystem in bkp srv03
srv.srv03.out:ERR: Found 127.0.0.1 on TSM Server in resolv.conf for TSM srv03
columb (IS/IT--Management)
13 Feb 08 9:56
Use Coma Separated Variable files

Delimit your fields with a comma.
Use the csv extension
Open with Excel

On the internet no one knows you're a dog

Columb Healy

dwcasey (MIS)
13 Feb 08 14:15
I ended up sending all my ERR output to their own file for each server, then using some AWK ( with help from the internet ) going with servername, a TAB, error condition.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close