Results 1 to 4 of 4
-
07-27-2012, 08:12 PM #1Newcomer
- Join Date
- Nov 2011
- Posts
- 25
- Thanks
- 5
- Thanked 0 Times in 0 Posts
strange result running command in scripts
Hi.
On our library manager I am running this command. all:query process and I'l get answer from all 7 servers
When I doing it from a console [root@sym0 adm]# dsmadmc -id=user -password=passwd all:query process I'l
get answer from all 7 servers.
My problem is when I am doing this from inside a script I am only geting result from 2 servers. The command is
PROCESSES_ACTIVE=`dsmadmc -id=$TSM_ADMIN -password=$TSM_PASSWORD all:query process`
ANS8000I Server command: '\''all:query process'\''
ANR1699I Resolved ALL to 2 server(s) - issuing command QUERY PROCESS against server(s).
Anny idea's?
Need more info: Please ask.
Sorry for my terrible English
Ivan
-
07-29-2012, 03:21 PM #2Newcomer
- Join Date
- Nov 2011
- Posts
- 25
- Thanks
- 5
- Thanked 0 Times in 0 Posts
Hi.
Anyone?
The error is in our TSM Disaster Recovery script, so I'm only getting raport from 2 of 7 tsmservers.
Ivan
-
07-30-2012, 10:04 AM #3Senior Member
- Join Date
- Dec 2004
- Location
- NC
- Posts
- 200
- Thanks
- 0
- Thanked 11 Times in 11 Posts
I see when you run it via the console you are "root". When you run it as a script is it also root and/or does it have the same TSM environment variable values as when you run it manually? If not you might be connecting to a different TSM server that also has a servergroup called "all", but with only two members.
"If we knew what it was we were doing, it would not be called research, would it?" -- Albert Einstein
-
The Following User Says Thank You to rmazzon For This Useful Post:
pfviv (07-30-2012)
-
07-30-2012, 05:45 PM #4Newcomer
- Join Date
- Nov 2011
- Posts
- 25
- Thanks
- 5
- Thanked 0 Times in 0 Posts
Hi
Tanks for the replay.
You are right, it did connect to the wrong server. Changed some options in "dsm.sys" and it works fin now.
Ivan
Similar Threads
-
TSM Events table. Strange result when using completed and scheduled_start column
By Kelvin in forum ScriptingReplies: 1Last Post: 11-21-2010, 10:16 AM -
Exporting the result of a command line in a file
By simon.hautier in forum TSM Reporting & MonitoringReplies: 5Last Post: 02-24-2009, 12:16 PM -
Server Command Scripts
By poolgod2004 in forum TSM ServerReplies: 1Last Post: 11-23-2005, 10:56 PM -
scripts for tape reclamation and migrations not running properly
By toofarnorth in forum ScriptingReplies: 5Last Post: 06-06-2005, 04:04 PM -
running scripts on the client, before and after the backup
By ananke in forum ScriptingReplies: 2Last Post: 04-27-2005, 04:38 PM


Reply With Quote