ADSM-L

Re: Query dsm.opt file from TSM Server?

2003-12-01 16:09:40
Subject: Re: Query dsm.opt file from TSM Server?
From: Alex Paschal <AlexPaschal AT FREIGHTLINER DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Mon, 1 Dec 2003 13:09:05 -0800
Hi, Marc.

The easiest way is to have your networking department do a ip accounting on
the switch ports your TSM server interfaces are connected to.  It's easy and
it's low overhead and as a bonus it comes out in an easy to read format.

Otherwise, you might do an iptrace and process the log.

Ooh!  You could "accidentally" down an interface for one night and see what
misses.

You could create a file matching node names and node passwords, separated by
some character, say, a vertical bar.  Then read that with something that
restores each dsm.sys file and pulls out the tcpserveraddress.  It also
helps to do a client action to do a selective backup of the dsm.sys file to
force it into the diskpool.  That would save a lot of tape mounting time.

file:
node1|node1pw
node2|node2pw

script:
#!/usr/bin/perl
while (<>) {
   chomp;
   ($node,$pw) = split (/|/);
   system ("dsmc -virtualnodename=$node -passw=$pw restore
/usr/tivoli/tsm/client/ba/bin/dsm.sys /tmp/tmp.sys");
   open (FILE, "/tmp/tmp.sys");
   $tcps = "not found";
   while ($sysline = <FILE>) {
      chomp $sysline;
      if ($sysline =~ /^ *[^#].*tcps/) {
         ($garbage,$tcps) = split (/ /,$sysline);
      }
   }
   close (FILE);
   print "$node   $tcps\n";
}

Execute:
cat file | script

If you decide to go this route, the script probably needs some fixing and
cleaning up, I just kind of extemporized it.  And I'd probably fix that
split for $sysline, that's not going to work well if there are leading
spaces.  You know, this could be useful for lot of stuff.  Hmm...

Alex Paschal
Freightliner, LLC
(503) 745-6850 phone/vmail


-----Original Message-----
From: Marc Levitan [mailto:marc.levitan AT PFPC DOT COM]
Sent: Monday, December 01, 2003 7:40 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Query dsm.opt file from TSM Server?


I have 2 Network Cards in my TSM Server.
I would like to know which clients are connecting to which card.
I know I can look at each individual client at the dsm.opt file.

Is there a way to find this information from the server side?
If I don't have to go to each client that would be great!


Thanks,
Marc Levitan
Storage Management Specialist
PFPC Global Funds Services



-----------------------------------------
The contents of this email are the property of PNC. If it was not addressed
to you, you have no legal right to read it. If you think you received it in
error, please notify the sender. Do not forward or copy without permission
of the sender.