Script Help

2007-12-25 1:52:00

I have a script which generates output similar to this and simply emails me
whenever it sees "not running". What I'd like to do is filter this to show
me only the server which is down.

Essentially, I'd like to turn this:

Connection point: /someserver1
Server State: running
Connection point: /someserver5
Server State: running
Connection point: /someserver7
Server State: not running

into a one liner like this:

Connection point: /someserver7 Server State: not running

or even just:

/someserver7

I'm trying to achieve this using just sed or awk statements fed with a pipe.

Any thoughts appreciated.

Pete

Comments

Got something to say?

You must be logged in to post a comment.