Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

From unix command line, d3tcl doesn't permit D3 tcl access

55 views
Skip to first unread message

dannyruckel

unread,
Dec 7, 2009, 1:56:32 PM12/7/09
to
System Release Information
==========================
D3 Release Version 7.4.2.RS
Most recent mload into boot abs performed at 12:45:08 on 25 May 2008.

Implementation. . . . . . RS6000
Software Serial Number. . 11031166
System ID Number . . . . 40163437
Release . . . . . . . . . D3/UNIX: RS6000
Unix Information. . . . . AIX;pick0:AIX;3;5;01C0EE9C


d3tcl is not allowing me access to D3 tcl. Environment variables are
assigned/exported.

Exit code following 'd3tcl' is 11...

Can anyone provide any insights?

Thanks!

Tony Gravagno

unread,
Dec 7, 2009, 9:25:23 PM12/7/09
to
dannyruckel wrote:
>Can anyone provide any insights?

Can anyone provide any details? :)

What exactly are the AIX d3tcl command lines, including login exports?
(Replace account names and passwords!)
What is it doing or not doing aside from a result code of 11?
What do you expect it to do?
How do you know it's exiting with code 11?

D3TCL is a script, and a fairly simple one at that. If you're trying
to do something with d3tcl and it's failing, chances are that it will
fail with a 'd3' command as well.

My immediate guess is that there is a permissions issue or that the
syntax of the AIX-level 'd3' command is incorrect.

HTH
T

dannyruckel

unread,
Dec 8, 2009, 10:40:22 AM12/8/09
to
On Dec 7, 6:25 pm, Tony Gravagno

tony,

thanks for the reply! details..., i've provided the necessary and
correct values for PICKVM/PICKUSER/PICKUPASS/PICKMDPASS and then issue
'd3tcl "shutdown (y"'. when this didn't shut down the server, i
simply issued 'd3tcl' followed by '$?' to review the exit code, as
mentioned, it was '11' (i knew it was going to be some non-zero exit
code because i wasn't at tcl after executing the command). i was
actually hoping that exit code might be meaningful to someone in order
to point me to a solution.

'd3' is not failing. i'm experiencing this failure logged in as
root. the d3tcl script has 755 permissions which i would think
adequate...

i appreciate you taking the time, tony!

danny

Tony Gravagno

unread,
Dec 8, 2009, 1:41:57 PM12/8/09
to
I'm sorry but I don't have a solution. Maybe someone else can help.
What you're doing looks right to me given the info so far.

However, when you say 'd3' is not failing, are you trying a full 'd3'
command with -a and other options to login and execute the commands?
If that works then I'm wondering if there is some bug in the d3tcl
script. To my knowledge it hasn't been modified in years, but I don't
know if it's been tested to shutdown the DBMS.

I'm not sure what the exit code 11 is. Exit codes are specific to the
software issuing them, or the tools being used when the exit occurred,
and I don't have a table of what exit codes D3 would return under
various conditions. Of course TL Support does, and they could
probably help you with the rest of this.

As an aside, I'm running D3/Windows here. But I have a script that
runs when my system is shutdown to "shutdown (y" exactly like what
you're doing. It's very helpful.

Good luck.
T

Frank Winans

unread,
Dec 8, 2009, 8:52:35 PM12/8/09
to
"Tony Gravagno" wrote

> I'm sorry but I don't have a solution. Maybe someone else can help.
> What you're doing looks right to me given the info so far.
>
> However, when you say 'd3' is not failing, are you trying a full 'd3'
> command with -a and other options to login and execute the commands?
> If that works then I'm wondering if there is some bug in the d3tcl
> script. To my knowledge it hasn't been modified in years, but I don't
> know if it's been tested to shutdown the DBMS.
>
> I'm not sure what the exit code 11 is. Exit codes are specific to the
> software issuing them, or the tools being used when the exit occurred,
> and I don't have a table of what exit codes D3 would return under
> various conditions. Of course TL Support does, and they could
> probably help you with the rest of this.
>
> As an aside, I'm running D3/Windows here. But I have a script that
> runs when my system is shutdown to "shutdown (y" exactly like what
> you're doing. It's very helpful.
>
> Good luck.
> T
I don't know what's either, but I'll post how it behaves on our d3/linux box,
for comparison. Logged in as root here, on a normal bash shell.
No passwd on the dm userid or the dm account , on this system.

which d3tcl replies with /usr/bin/d3tcl
file /usr/bin/d3tcl replies with /usr/bin/d3tcl: ASCII English text
d3tcl -q replies with
Default setting :
Virtual Machine name : pick0
D3 user id : root
D3 Master Dictionary :

{I do not use d3tcl, so didn't have the usual variables set and exported}
Now I do export PICKUSER=dm
and that makes d3tcl -q exhibit user id of dm instead of root.
Since our d3 users item "dm" does a "logto dm" I don't bother with any other
exports.
Now I try d3tcl display hello
and get back
09 Jan 2007 6386
hello
and am back at the # prompt of bash.
That timestamp line is from dm,md, dm script doing an exec abs command.
{If I had a nickel for every time an end user asked me about that timestamp... Aaarg.}

To get more debug info, I do cp -p /usr/bin/d3tcl /usr/bin/d3tclfoo
and vi /usr/bin/d3tclfoo to change the two variations of d3 command
from d3tcl stuff stuff stuff "quoted stuff"
to a pair of lines
echo "invoke d3tcl stuff stuff stuff " "quoted stuff"
d3tcl stuff stuff stuff "quoted stuff"
and try d3tclfoo display hello
in response I see
invoke d3 -n pick0 -r -s -d dm\rdisplay hello\r
09 Jan 2007 6386
hello
and am back at the # prompt.
I shan't do d3tcl shutdown (y , not even for the sake of completeness...

Desperate suggestion: try doing this after having done cd /tmp
And tidy up by doing rm /usr/bin/d3tclfoo

Frank

Frank Winans

unread,
Dec 8, 2009, 9:58:49 PM12/8/09
to
"Frank Winans" wrote

> To get more debug info, I do cp -p /usr/bin/d3tcl /usr/bin/d3tclfoo
> and vi /usr/bin/d3tclfoo to change the two variations of d3 command
> from d3tcl stuff stuff stuff "quoted stuff"
> to a pair of lines
> echo "invoke d3tcl stuff stuff stuff " "quoted stuff"
> d3tcl stuff stuff stuff "quoted stuff"
> and try d3tclfoo display hello
> in response I see
> invoke d3 -n pick0 -r -s -d dm\rdisplay hello\r
> 09 Jan 2007 6386
> hello
> and am back at the # prompt.

Oops. During the vi session, that's d3 stuff stuff stuff "quoted stuff",
not d3tcl stuff stuff stuff "quoted
stuff" as I wrote.


dannyruckel

unread,
Dec 12, 2009, 2:00:27 PM12/12/09
to

good a.m. all,

i discovered why i was having a problem with d3tcl and thought i
should share with the group. this is beyond embarrassing...before i
would attempt to shell out and perform the d3tcl "shutdown" i would
set maxusers to single user mode. when i attempted to use d3tcl the
exit code '11' said maximum number of users were already logged
on...and they were. sorry to cause such a churn but the responses and
the reading were very helpful!

danny

0 new messages