The Admin CLI quits with the highest return code encountered
during the session. rc 11 can occur if you get a "no match
found" kind of error. For example, on my Windows 2000
system:

========================================
E:\TSM\baclient>dsmadmc -id=storman -pa=xxxx q v nonexistent
Tivoli Storage Manager
Command Line Administrative Interface - Version 4, Release 2, Level 1.30
(C) Copyright IBM Corporation, 1990, 2001, All Rights Reserved.

Session established with server STORMAN_SERVER1: Windows NT
  Server Version 4, Release 2, Level 1.12
  Server date/time: 03/26/2002 17:14:00  Last access: 03/26/2002 17:13:09

ANS8000I Server command: 'q v NonExistent'
ANR2034E QUERY VOLUME: No match found using this criteria.
ANS8001I Return code 11.

ANS8002I Highest return code was 11.


E:\TSM\baclient>echo %errorlevel%
11

E:\TSM\baclient>
========================================

Regards,

Andy

Andy Raibeck
IBM Software Group
Tivoli Storage Manager Client Development
Internal Notes e-mail: Andrew Raibeck/Tucson/IBM@IBMUS
Internet e-mail: [EMAIL PROTECTED]

The only dumb question is the one that goes unasked.
The command line is your friend.
"Good enough" is the enemy of excellence.




"Denis L'Huillier" <[EMAIL PROTECTED]>
Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>
03/26/2002 15:30
Please respond to "ADSM: Dist Stor Manager"


        To:     [EMAIL PROTECTED]
        cc:
        Subject:        Server Return Code 11



Hello,
I was looking on the list to see if this had come up before but couldn't
find anything..
Nothing earth shattering..

Anyone notice that sometimes when you issue 'quit' from an admin command
line it doesn't
always quit with a return code of '0'.  Many time I get a return code of
'11'...

tsm: TSM_C01>quit

ANS8002I Highest return code was 11.

After the latest postings of tsm scripts to check that the server is up
and
running and email if it
isn't I wrote a simple script that did a 'dsmadmc -id=xxxx -pa=xxxx quit'
and then did a:
if [[ ! "$?" -eq '0' ]]; then
sendmail  [EMAIL PROTECTED] < serverdown.msg
else
exit 0
fi

Well, I had cron run it 4 times a day.. and of course when I left for the
day my pager goes off.
I go home, dial in and all is okay.. Couldn't figure it out for the life
of
me.
Now it finally hit me... return code 11!!!

Anybody know what return code 11 is and why 'quit' would cause it
sometimes???

Regards,

Denis L. L'Huiller
973-360-7739
[EMAIL PROTECTED]
Enterprise Storage Forms ->
http://admpwb01/misc/misc/storage_forms_main.html

Reply via email to