ADSM-L

Re: dismiss dsmadmc header output

2002-10-22 13:54:55
Subject: Re: dismiss dsmadmc header output
From: "Seay, Paul" <seay_pd AT NAPTHEON DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 22 Oct 2002 13:46:33 -0400
My favorite way is to use a keyword on the beginning of each output line and
then either use grep, read, or a string match in perl to only pick the lines
that have the goodies.

The following select is an example:

Select 'keyout', node_name, filespace_name, capacity, pct_util from
filespaces

Generates all the garbage and output lines like this.

keyout        N07139                \\n07139\c$
28.2

Paul D. Seay, Jr.
Technical Specialist
Naptheon Inc.
757-688-8180


-----Original Message-----
From: Mark Stapleton [mailto:stapleto AT BERBEE DOT COM]
Sent: Tuesday, October 22, 2002 12:07 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: dismiss dsmadmc header output


From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU]On Behalf Of
Michael Kindermann
> Is there a way, something like a switch or an option, to influence the
> dsmadmc-output, to give only the interesting result and no overhead ?
>
> Trying to scripting some task in a shell-script. And iam a little
> anoyed, becaus it not very difficult to get some output from the
> dsmserver. But it is  to reuse the information in the script.

"Lo, and the great god UNIX made grep, and it was good. And grep begat awk,
and sed. And sed lived 376 years, and begat Perl, and Python. And it was
good and there was joy in all the land."

--
Mark Stapleton (stapleton AT berbee DOT com)
Certified TSM consultant
Certified AIX system engineer
MCSE

<Prev in Thread] Current Thread [Next in Thread>