By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,287 Members | 1,284 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,287 IT Pros & Developers. It's quick & easy.

db2_all

P: n/a
db2_all "db2 update db cfg for sample using tsm_mgmtclass \'\'";
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched

Any idea? If I use run the above command on single physcial node/multiple logical db partitions, it will be ok. I got the above error when I run the db2_all on multiple physical node, multiple physical logical db partitions.
Nov 12 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Fan Ruo Xin wrote:
db2_all "db2 update db cfg for sample using tsm_mgmtclass \'\'";
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched

Any idea? If I use run the above command on single physcial
node/multiple logical db partitions, it will be ok. I got the above
error when I run the db2_all on multiple physical node, multiple
physical logical db partitions.


Have you tried running it from bash?
The shell script interpreter (in this case ksh) seems to be unable to
parse the script db2_all, which is odd since ksh is supposed to be
compatible with bash.
Also very odd is that it states line 1, which cannot be a '{'. A
shellscript cannot begin with a '{'.

-R-
Nov 12 '05 #2

P: n/a
Fan, have you tried a simple rsh to the remote machine? Try something
like 'rsh <your_hostname> ls'. Sometimes the error can be in the
profile of the instance owner id on the remote box (i.e., unrelated to
db2_all).

Regards,
Miro

Nov 12 '05 #3

P: n/a
Hi Fan,

Try this: db2_all "db2 update db cfg for sample using tsm_mgmtclass \'\'" < /dev/null (this if I remember correctly applies only to ksh)

HTH,

JM

"Fan Ruo Xin" <fa*****@sbcglobal.net> a écrit dans le message de news:1r**************@newssvr23.news.prodigy.net.. .
db2_all "db2 update db cfg for sample using tsm_mgmtclass \'\'";
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched

Any idea? If I use run the above command on single physcial node/multiple logical db partitions, it will be ok. I got the above error when I run the db2_all on multiple physical node, multiple physical logical db partitions.

Nov 12 '05 #4

P: n/a
Hi,
I have not tried running it from bash yet. I will try it later, if it can
work from bash, it will still be a puzzle for me.
Thanks for your help.
Fan

"Jurgen Haan" <ju****@fake.dom> wrote in message
news:42***********************@news.xs4all.nl...
Fan Ruo Xin wrote:
db2_all "db2 update db cfg for sample using tsm_mgmtclass \'\'";
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched

Any idea? If I use run the above command on single physcial
node/multiple logical db partitions, it will be ok. I got the above
error when I run the db2_all on multiple physical node, multiple
physical logical db partitions.


Have you tried running it from bash?
The shell script interpreter (in this case ksh) seems to be unable to
parse the script db2_all, which is odd since ksh is supposed to be
compatible with bash.
Also very odd is that it states line 1, which cannot be a '{'. A
shellscript cannot begin with a '{'.

-R-

Nov 12 '05 #5

P: n/a
Hi, Miro
I did run rsh command first. It worked well. I could not understand this
behavior, you see:
(1) db2_all "db2 update db cfg for sample using tsm_mgmtclass my_tsm_cls"
ran well, so dose any db2_all command without involving the special
character, such as single-quote.
(2). Our production database was built on 5 physical nodes (40 db
partitions), but the testing db was built on a single physical node (4
logical db partitions). We installed the 5 physical production nodes and one
testing node from the same AIX CD.
But for testing db: $db2_all "db2 update db cfg for sample using
tsm_mgmtclass \'\'" can work.

Any idea? Thanks for the help.
Fan
"mirof007" <mi******@gmail.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Fan, have you tried a simple rsh to the remote machine? Try something
like 'rsh <your_hostname> ls'. Sometimes the error can be in the
profile of the instance owner id on the remote box (i.e., unrelated to
db2_all).

Regards,
Miro

Nov 12 '05 #6

P: n/a
Hi, Jean-Marc,
I tried it and was getting the same error:
PRD:> %sample using tsm_mgmtclass \'\'" < /dev/null <
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
PRD:> %

Thanks for the help.
Fan

"Jean-Marc Blaise" <no****@nowhere.com> wrote in message news:42**********************@news.wanadoo.fr...
Hi Fan,

Try this: db2_all "db2 update db cfg for sample using tsm_mgmtclass \'\'" < /dev/null (this if I remember correctly applies only to ksh)

HTH,

JM

"Fan Ruo Xin" <fa*****@sbcglobal.net> a écrit dans le message de news:1r**************@newssvr23.news.prodigy.net.. .
db2_all "db2 update db cfg for sample using tsm_mgmtclass \'\'";
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched
ksh: syntax error at line 1 : `{' unmatched

Any idea? If I use run the above command on single physcial node/multiple logical db partitions, it will be ok. I got the above error when I run the db2_all on multiple physical node, multiple physical logical db partitions.

Nov 12 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.