ADSM-L

yasq (yet another sql question . . . . )

2005-01-18 11:36:14
Subject: yasq (yet another sql question . . . . )
From: Richard Rhodes <rrhodes AT FIRSTENERGYCORP DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 18 Jan 2005 11:34:42 -0500
Hi Everyone . . .

I'm trying to do a couple things . . . .

1)  Trying to get a listing as follows, where the occupancy filespace
    stats are sum'ed for each node, with the node domain thrown in:

like this:   <node>  <domain>  <sum-files> <sum-physicalMB> <sum-logicalMB>

Here is the command I'm trying . . . .

   dsmadmc -id=admin -password=admin -tab  <<EOD
    select -
         occupancy.node_name, -
         nodes.domain_name, -
         sum(occupancy.num_files), -
         sum(occupancy.physical_mb), -
         sum(occupancy.logical_mb) -
      from occupancy, nodes -
        where occupancy.node_name = nodes.node_name -
        group by occupancy.node_name, nodes.domain_name
   EOD

When I run this, I get a ZILLION of the following message, and
the cmd never finishes (or I'm impatient and don't wait long enough).

  "The character '#' stands for any decimal integer.The only valid
  responses are characters from this set: [Y, N]"

question -> What is the above message and what dumb thing am I doing wrong?


2)  I would like to generate a report that sum's files, physicalMB and
logicalMB
    per domain.

like this:  <domain>  <sum-files>  <sum-physicalMB>  <sum-logicalMB>

question:  Is there a cmd or a sql statement to do this?

I guess it would be very similar to the above sql, except without the
node_name, but
since I can't get that one right, I figure I'll need help with this one
also.



Thanks

Rick


-----------------------------------------
The information contained in this message is intended only for the personal
and confidential use of the recipient(s) named above. If the reader of this
message is not the intended recipient or an agent responsible for
delivering it to the intended recipient, you are hereby notified that you
have received this document in error and that any review, dissemination,
distribution, or copying of this message is strictly prohibited. If you
have received this communication in error, please notify us immediately,
and delete the original message.

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