ADSM-L

Re: [ADSM-L] Colorful console mode output

2009-08-22 01:02:13
Subject: Re: [ADSM-L] Colorful console mode output
From: Stef Coene <stef.coene AT DOCUM DOT ORG>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Sat, 22 Aug 2009 06:59:43 +0200
On Saturday 22 August 2009, Michael Green wrote:
> If you are like me and find it helpful to have administrative client
> running in console mode (dsmadmc -console) while performing
> administrative work on your server, you might find this little script
> (below) handy. I also have a habit of leaving dsmadmc -console running
> for prolonged periods of time in background and then when a problem
> strikes I scroll the buffer up in order to see where and why it all
> started. IMHO it's more convinient then fishing the details with 'q
> act'.
> All good, but one of the great inconveniences with 'dsmadmc -console'
> that it doesn't pre/append timestamps to its messages as they enter
> terminal. Also they are all of the same color (whatever foreground
> color of your terminal is set to) and since the vast majority of the
> messages are of ANR????I kind it might be difficult to spot, for
> example, the error messages which under normal conditions are few and
> far between.
Nice scripts (I have something similar), but I had to replace ^[ with \033 for
the colors to work on my linux box.


Stef