Re: Server Return Code 11

2002-03-27 Thread Seay, Paul

The message says "highest return code".  So if you get one higher than 11 it
will show as well.  Actually you can get a -50 which is higher.  This is a
session died.  The return code returned to a script is 255 for this instance
(at least on windows).

-Original Message-
From: Michael Benjamin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 8:30 PM
To: [EMAIL PROTECTED]
Subject: Re: Server Return Code 11


Cute behaviour, maybe check for "11" and "0" if  "11" is not a dangerous
return code.



tsm: ADSM_BBS>quit



ANS8002I Highest return code was 11.




Tivoli Storage Manager

Command Line Administrative Interface - Version 4, Release 2, Level 0.0

(C) Copyright IBM Corporation, 1990, 2001, All Rights Reserved.



Session established with server ADSM_BBS: AIX-RS/6000

  Server Version 4, Release 2, Level 0.0

  Server date/time: 03/27/02   09:17:32  Last access: 03/27/02   09:01:38





tsm: ADSM_BBS>quit



ANS8002I Highest return code was 0.







> -Original Message-
> From: Denis L'Huillier [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 6:30 AM
> To:   [EMAIL PROTECTED]
> 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= -pa= 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

**
Bunnings Legal Disclaimer:

1)  This document is confidential and may contain legally privileged
information. If you are not the intended recipient you must not
read, copy, distribute or act in reliance on it.
If you have received this document in error, please telephone
us immediately on (08) 9365-1555.

2)  All e-mails sent to and sent from Bunnings Building Supplies are
scanned for content. Any material deemed to contain inappropriate
subject matter will be reported to the e-mail administrator of
all parties concerned.

**



Re: Server Return Code 11

2002-03-26 Thread Michael Benjamin

Cute behaviour, maybe check for "11" and "0" if  "11" is not a dangerous
return code.



tsm: ADSM_BBS>quit



ANS8002I Highest return code was 11.




Tivoli Storage Manager

Command Line Administrative Interface - Version 4, Release 2, Level 0.0

(C) Copyright IBM Corporation, 1990, 2001, All Rights Reserved.



Session established with server ADSM_BBS: AIX-RS/6000

  Server Version 4, Release 2, Level 0.0

  Server date/time: 03/27/02   09:17:32  Last access: 03/27/02   09:01:38





tsm: ADSM_BBS>quit



ANS8002I Highest return code was 0.







> -Original Message-
> From: Denis L'Huillier [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 6:30 AM
> To:   [EMAIL PROTECTED]
> 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= -pa= 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

**
Bunnings Legal Disclaimer:

1)  This document is confidential and may contain legally privileged
information. If you are not the intended recipient you must not
read, copy, distribute or act in reliance on it.
If you have received this document in error, please telephone
us immediately on (08) 9365-1555.

2)  All e-mails sent to and sent from Bunnings Building Supplies are
scanned for content. Any material deemed to contain inappropriate
subject matter will be reported to the e-mail administrator of
all parties concerned.

**



Re: Server Return Code 11

2002-03-26 Thread Andrew Raibeck

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= 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= -pa= 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



Server Return Code 11

2002-03-26 Thread Denis L'Huillier

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= -pa= 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