Exiting dsmadmc -console

prentmee

ADSM.ORG Member
Joined
Apr 14, 2011
Messages
20
Reaction score
0
Points
0
Location
Wrightstown WI
PREDATAR Control23

TSM = 6.3
OS = Linux
doing some trouble shooting and I'm running dsmadmc -console.

I don't seem to be able to exist the console gracefully.
Control C doesn't work.
Control D doesn't work.
typing exit or quit doesn't work either.

what I've been doing is running a cancel the sess number from a different login.

not a huge deal but there must be a better way.

Any suggestions?
thanks
-pete
 
PREDATAR Control23

Why do you invoke dsmadmc with the -console option? You can't exit gracefully because this is meant to run continuously to monitor TSM operations.

Run dsmadmc without the -console option if you just want to enter commands and do admin stuff.
 
PREDATAR Control23

typing quit or QUIT does not work. I would not think anything typed to the screen would work because this is just a console.
I was hoping there would be some ninja key combination that would kill the session.

This isn't a huge deal. I can cancel the session form my regular log in.
I'm just excepting Moon-Buddy's response there is no way to gracefully leave the -console option.

thanks
-pete
 
PREDATAR Control23

why not kill the session on operating system?

TSM = 6.3
OS = Linux
doing some trouble shooting and I'm running dsmadmc -console.

I don't seem to be able to exist the console gracefully.
Control C doesn't work.
Control D doesn't work.
typing exit or quit doesn't work either.

what I've been doing is running a cancel the sess number from a different login.

not a huge deal but there must be a better way.

Any suggestions?
thanks
-pete
 
PREDATAR Control23

Killing it at the OS would probably work too.

However, as a general rule, I always try to end (kill) sessions via the corresponding application before I kill it at the OS level.
Again, generally, a better way of handling any and all applications processes.
Not sure if it would really matter in this case but better safe than sorry.
-pete
 
PREDATAR Control23

A (possibly) 'cleaner' way to stop the console session is to start another dsmadmc session without the -console option and then CANCEL SESSION to get rid of the console.
 
PREDATAR Control23

TSM = 6.3
OS = Linux
doing some trouble shooting and I'm running dsmadmc -console.

I don't seem to be able to exist the console gracefully.
Control C doesn't work.
Control D doesn't work.
typing exit or quit doesn't work either.

what I've been doing is running a cancel the sess number from a different login.

not a huge deal but there must be a better way.

Any suggestions?
thanks
-pete
^C is intercepted by the shell and issues signal 2 to the foreground child process. That key combination is assigned as the "intr" stty option. I've found that sometimes due to type of terminal used, that's not the keystroke.
bash-4.3# stty -a
speed 38400 baud; 26 rows; 94 columns
eucw 1:1:0:0, scrw 1:1:0:0:
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; reprint = ^R
discard = ^O; werase = ^W; lnext = ^V
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -parext
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt echoke -flusho -pending iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
bash-4.3# stty intr a
bash-4.3# when I type the letter a
bash-4.3# Wha
bash-4.3# t I'm doing gets interrupted. I ca
bash-4.3# n type ^C though a
bash-4.3# nd it just prints tha
bash-4.3# t string. now I will ma
bash-4.3# ke it go ba
bash-4.3# ck to the correct beha
bash-4.3# vior when I type a
bash-4.3# stty intr ^C
bash-4.3# and now a works and so does ^C
bash-4.3# stty -a|grep intr
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>
bash-4.3# stty intr a
bash-4.3# stty -a
bash-4.3# stty -a |grep intr
intr = a; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>
bash-4.3# stty intr ^C
bash-4.3# stty -a |grep intr
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>
bash-4.3#
that second time I typed "stty -a |grep intr", I had to type ^V (designated by the stty "lnext" parameter) before the letter a, to escape it.
 
PREDATAR Control23

Yep what he said.

I use "dsmadmc -console" daily on my AIX servers and I always exit the console mode by using ^C. It does sound like your shell is trapping the interrupt because it should work. Try the commands above and see if your shell session has ^C set.
 
PREDATAR Control23

Same for me, doing that daily on AIX. Should work. The terminal settings sound good to check.
 
Top