Console redirect to xmanager in AIX ?


 
Thread Tools Search this Thread
Operating Systems AIX Console redirect to xmanager in AIX ?
# 1  
Old 12-13-2012
Console redirect to xmanager in AIX ?

Hello,

Oracle PDF reports run only when you run the command
# xhost +

from the console,

but if you run from the xmanager session , then report doesn't work

running from windows pc using xmanager

Code:
# xhost +
access control disabled, clients can connect from any host
# echo $DISPLAY
10.1.1.100:0.0
# 
# lscons
/dev/lft0
# 
# echo "tesaaaaaaaaat" > /dev/console
# 
# lscons -a
 current = /dev/lft0
 console_logname = /var/adm/ras/conslog
 console_logsize = 32768
 console_logverb = 1
 console_tagverb = 0

Can we redirect the console to Xmanager ?

Last edited by filosophizer; 12-13-2012 at 05:18 PM..
# 2  
Old 12-14-2012
X11 forwarding or DISPLAY

1) since you know about the DISPLAY variable, you can set it to point to "anything" that will X11 "serve"
2) I prefer using X11 forwarding together with ssh client.
The sshd_config needs to permit it AND you need to setup your ssh_client to request it. (I use a 10-year program as client, and I do not use putty, so maybe someone else can help you out with your client, should you need that).

* in sshd_config look for:
Code:
michael@x054:[/home/michael]grep X11 /etc/ssh/sshd_config
#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes

After login you should get something like this - different per session!
Code:
michael@x054:[/home/michael]echo $DISPLAY
localhost:11.0
michael@x054:[/home/michael]tty
/dev/pts/1
michael@x054:[/home/michael]

Note: as this is /dev/pts/1 the DISPLAY is pointing at localhost:11.0 (i.e. X11DisplayOffset+1)

Hope this helps!
This User Gave Thanks to MichaelFelt For This Post:
# 3  
Old 12-14-2012
Thanks Michael Felt, I just realized that you are Michael Felt of ROOTVG and trainer for IBM Courses @ Amsterdam Netherlands.

follow up question,

is there a way to put xhost + in startup scripts so when the machine boots up it will run automatically on the console ?

Last edited by filosophizer; 12-15-2012 at 02:43 PM.. Reason: Michael Felt of ROOTVG
# 4  
Old 12-15-2012
It has been a LONG time since I used X11 for anything other than the occasional program that must install.

If I recall, xhost is for when your session is the server (not the client!) and you want/need something to connect to your screen. So, generally, you will need xhost on your PC/linux system, not on the AIX machine that is acting as an X11 client.

So, if you do mean you want the window to open on a local AIX X11 server session - if it is your login session, running xhost + in your .profile should be enough.

From man xhost:
Code:
Syntax

       xhost [ + | - ] [ Name ]

Description

       The xhost command adds or deletes host names on the list of machines
       from which the X Server accepts connections.

re: rootvg.net etc, yes, the same. But that does not mean much here. Here is I just a person answering questions.
"unix.com" is probably a better forum these days - more people answering questions - and more questions per day. So, I'll try to give love to both.

I'd say more, but someone might think I am trying to steer traffic elsewhere (and not even to rootvg...).
# 5  
Old 02-02-2013
I am having some hard time with xhost + on PowerVM / IVM / VIOS

Code:
# env
_=/usr/bin/env
LANG=en_US
LOGIN=root
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/vac/bin:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin
LC__FASTMSG=true
LOGNAME=root
MAIL=/usr/spool/mail/root
LOCPATH=/usr/lib/nls/loc
USER=root
AUTHSTATE=compat
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
HOME=/
TERM=xterm
MAILMSG=[YOU HAVE NEW MAIL]
PWD=/
TZ=UST-3
A__z=! LOGNAME
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat

Oracle Context file
Code:
bash-3.2$ cd /oratec/prodappl
bash-3.2$ . ./APPSPROD_test6.env
bash-3.2$  grep -i display $CONTEXT_FILE
         <DISPLAY oa_var="s_display" osd="unix">test6:0.0</DISPLAY>


Does the below make sense ?

Issue :
In R12 on IBM AIX Reports are failing with Rep 3000 error

Description:
We all know that there is no concept of Display for generating reports in R12, there is…..:) but only on IBM AIX.
We need to set the display in IBM AIX for R12 to generate the reports output without error.

Solution ;

a) Go to CM(Admin) Node
b) Login in as Application User
c) Find the display from CONTEXT_FILE

Ex :
-bash-3.2$ grep -i display $CONTEXT_FILE
oratestdev:0.0

Here the display is 0.0

d) export DISPLAY=localhost:0.0
e) /usr/lpp/X11/bin/xinit /usr/lpp/X11/bin/mwm — :0 -vfb -force -x abx -x dbe -x GLX &
f) xhost +
g) Login as root
h) export DISPLAY=localhost:0.0
i) xhost +

Thanks,
Sam.


basically, without forwarding SSH , is there a way to run
Code:
xhost + 

bash-3.2$ xhost +
1356-200 xhost unable to open display ""
bash-3.2$ echo $DISPLAY

bash-3.2$

on console screen on IVM/VIOS ?
# 6  
Old 02-02-2013
Not sure (I think not) if VIOS has X11 server software included. So answer would be no. Been years since I have had a console connected to "IVM".
# 7  
Old 02-03-2013
sorry, if i was not clear.

I meant to say, console of AIX partitions/Lpars running on VIOS/IVM
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to redirect the messages from the script to console in Linux?

msg.sh #!/bin/bash if then echo "starting service" else echo " service not started" echo " Please check the start.sh file or manuly start the service" fi if i login with root credentials @12.36.34.123 with passwd username:root passwd:abc once i login into linux pc... (6 Replies)
Discussion started by: saku
6 Replies

2. Shell Programming and Scripting

Redirect an output from a script to a file and display it at a console simultaneously

Hi, I'd like to redirect the STDOUT output from my script to a file and simultaneously display it at a console. I've tried this command: myscript.sh | tail -f However, it doesn't end after the script finishes running I've also tried this: myscript.sh | tee ~/results.txt But it writes... (3 Replies)
Discussion started by: wenclu
3 Replies

3. Shell Programming and Scripting

How to redirect the output of a cvs command to a file as well as the console.

Hi can anyone tell me how to redirect the ouput of a cvs command to a file as well as the console? i tried using cvs add <filename> | tee logFile cvs add <filename> 2>logFile 2>&1 All i could get is only on console or on file. Please help Thanks (2 Replies)
Discussion started by: ankitag2010
2 Replies

4. Solaris

Command to redirect console to my tty?

Is there a utility built into Solaris that will allow me to see console messages from a tty? I've done a search and see that this is possible through software like ILOM, but I'm looking for a method to do this with built in utilities. For example, on AIX, I can use swcons `tty` (6 Replies)
Discussion started by: makodarear
6 Replies

5. Shell Programming and Scripting

How to redirect the output to multiple files without putting on console

How to redirect the output to multiple files without putting on console I tried tee but it writes to STDOUT , which I do not want. Test.sh ------------------ #!/bin/ksh echo "Hello " tee -a file1 file2 ---------------------------- $>./Test.sh $> Expected output: -------------------... (2 Replies)
Discussion started by: prashant43
2 Replies

6. AIX

177 port is up but xmanager is not working in AIX 6.1

Dear Friends, Recently we have to use AIX 6.1 IBM unix server . Here the 177 port is up and also inetd service is up . But we cannot access to the server using X-manager software . server's output : bash-3.00# netstat -nat | grep 177 udp4 0 0 *.177 *.* We have another server AIX-5.3 .... (0 Replies)
Discussion started by: shipon_97
0 Replies

7. Solaris

console redirect on dl365

anyone have any success with redirecting the console running sol10 x86 on a hp dl365? (0 Replies)
Discussion started by: pupp
0 Replies

8. Shell Programming and Scripting

console redirect of progress bar

I'm trying to write a python wrapper around wget to show the progress bar on a gui application. Wget gives you a progress bar on command line, but how would I pipe that to some "tty" that's really just a variable I read, or am I going about it all wrong? When I try to just redirect the output to a... (1 Reply)
Discussion started by: unclecameron
1 Replies

9. AIX

Unable to connect to AIX server through xmanager

Hi, I have xmanager installed on my windows PC. But I am not able to connect to AIX server. It's giving the error as follows: The X11 forwarding request was rejected. Graphics mode is not coming up in AIX server. Please help as I have to install oracle patchset urgently. (1 Reply)
Discussion started by: dwiravi
1 Replies

10. UNIX for Dummies Questions & Answers

AIX Console screens

How do you switch screens in AIX? I know you can use ALT-F1, ALT-F3, etc. in SCO Unix. Help!!! (2 Replies)
Discussion started by: falstaff100
2 Replies
Login or Register to Ask a Question