[prev in list] [next in list] [prev in thread] [next in thread] 

List:       veritas-bu
Subject:    Re: [Veritas-bu] jnbSA NOT working from OpenSuse Box
From:       Waleed Harbi <waleed.harbi () gmail ! com>
Date:       2009-11-23 14:00:03
Message-ID: cc4756450911230600x6ed98b5en82cbd6201ee9c414 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Jeff,

I appreciated your support, but I sent this email after I did the steps you
mention about it below. Before I few minutes I fixed the issue by install
jnbSA and jbpSA local on  my linux box, I connected now remotely to
Netbackup server and it is working fine.

I highly appreciated everyone efforts in the maillist whom tried advice me.

Keep in touch for support and find-out the solution.

---
Best wishes,
Waleed Harbi
-----------------------------------------------------------
Try not to become a man of success
but rather try to become a man of value.



On Mon, Nov 23, 2009 at 4:37 PM, Jeff Lightner <jlightner@water.com> wrote:

>   When you use –X you're telling it to open an ssh tunnel.  Typically that
> sets the DISPLAY variable and updates the $HOME/.Xauthority file on the host
> and for the user to which you're attaching.  Due to this you should NOT set
> the DISPLAY variable after login as it is the tunnel session that sets it
> for you.
>
>
>
> Also if your login is as one user (e.g. ssh –X waleed) but you're trying to
> su – root after the login then this DISPLAY variable and the .Xauthority
> aren't valid for the new user.   In that case your procedure should be
> something like this:
>
> 1)       ssh –X waleed@<netbackup server name or IP>
>
> 2)       echo $DISPLAY
>
> 3)       Copy the DISPLAY value into your buffer.
>
> 4)       su – (or su – root or sudo su – or sudo su – root – however you
> normally become root)
>
> 5)       export DISPLAY=<value copied in step 3>
>
> 6)       export XAUTHORITY=/home/waleed/.Xauthority (or wherever the home
> directory of the user you initially logged in as is).
>
>
>
> I've seen that ssh tunnels don't set display for root on some hosts (e.g.
> HP-UX).
>
>
>
> If all the above fails then you can do it the old fashioned way:
>
> 1)       xhost + <ip or hostname of your netbackup server>
>
> 2)       ssh waleed@<netbackup server name or IP>
>
> 3)       su – (or…)
>
> 4)       export DISPLAY=<ip of your suse box>:0.0
>
> For this method you have to be sure ports in the 6000 range are open in any
> firewall between the suse box and the netbackup server (including iptables
> if it is running).
>
>
>
>
>
>
>  ------------------------------
>
> *From:* veritas-bu-bounces@mailman.eng.auburn.edu [mailto:
> veritas-bu-bounces@mailman.eng.auburn.edu] *On Behalf Of *Waleed Harbi
> *Sent:* Sunday, November 22, 2009 3:25 PM
> *To:* veritas-bu@mailman.eng.auburn.edu
> *Subject:* [Veritas-bu] jnbSA NOT working from OpenSuse Box
>
>
>
> Hi,
>
>
> I am new to Netbackup, I have Solaris 10 Netbackup server, and I want run
> *jnbSA* from that server remotely using ssh -X in Linux but I faced Java
> error message about X11 forwarding even I configured DISPLAY variable, from
> other hand in Windows worked fine using Netbackup-Java GUI.
>
> Any suggestion?
>
> Is there Netbackup-Java GUI avalibe for Linux box to connect Netbackup
> server?
>
> ---
> Best wishes,
> Waleed Harbi
> -----------------------------------------------------------
> Try not to become a man of success
> but rather try to become a man of value.
>
>  Proud partner. Susan G. Komen for the Cure.
>
>  *Please consider our environment before printing this e-mail or
> attachments.*
>  ----------------------------------
> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential
> information and is for the sole use of the intended recipient(s). If you are
> not the intended recipient, any disclosure, copying, distribution, or use of
> the contents of this information is prohibited and may be unlawful. If you
> have received this electronic transmission in error, please reply
> immediately to the sender that you have received the message in error, and
> delete it. Thank you.
> ----------------------------------
>

[Attachment #5 (text/html)]

<div dir="ltr">Jeff,<br><br>I appreciated your support, but I sent this email after I \
did the steps you mention about it below. Before I few minutes I fixed the issue by \
install   jnbSA and jbpSA local on   my linux box, I connected now remotely to \
Netbackup server and it is working fine. <br>

<br>I highly appreciated everyone efforts in the maillist whom tried advice \
me.<br><br>Keep in touch for support and find-out the solution. <br><br \
clear="all">---<br>Best wishes,<br>Waleed \
Harbi<br>-----------------------------------------------------------<br>

Try not to become a man of success<br>but rather try to become a man of \
value.<br><br> <br><br><div class="gmail_quote">On Mon, Nov 23, 2009 at 4:37 PM, Jeff \
Lightner <span dir="ltr">&lt;<a \
href="mailto:jlightner@water.com">jlightner@water.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">












<div link="blue" vlink="purple" lang="EN-US">
<div>

<div>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">When you use –X you're telling it to open \
an ssh tunnel.   Typically that sets the DISPLAY variable and updates the \
$HOME/.Xauthority file on the host and for the user to which you're attaching.   Due \
to this you should NOT set the DISPLAY variable after login as it is the tunnel \
session that sets it for you.     </span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">  </span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">Also if your login is as one user (e.g. ssh \
–X waleed) but you're trying to su – root after the login then this DISPLAY \
variable and the .Xauthority aren't valid for the new user.     In that case your \
procedure should be something like this:</span></font></p>

<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>1)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">ssh –X \
waleed@&lt;netbackup server name or IP&gt;</span></font></p>



<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>2)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">echo \
$DISPLAY </span></font></p>



<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>3)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">Copy the \
DISPLAY value into your buffer.</span></font></p>



<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>4)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">su – \
(or su – root or sudo su – or sudo su – root – however you normally become \
root)</span></font></p>

<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>5)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">export \
DISPLAY=&lt;value copied in step 3&gt;</span></font></p>



<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>6)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">export \
XAUTHORITY=/home/waleed/.Xauthority (or wherever the home directory of the user you \
initially logged in as is).</span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">  </span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">I've seen that ssh tunnels don't set display \
for root on some hosts (e.g. HP-UX).</span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">  </span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">If all the above fails then you can do it the \
old fashioned way:</span></font></p>

<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>1)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">xhost + \
&lt;ip or hostname of your netbackup server&gt;</span></font></p>



<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>2)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">ssh \
waleed@&lt;netbackup server name or IP&gt;</span></font></p>



<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>3)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">su – \
(or…)</span></font></p>



<p class="MsoNormal" style="margin-left: 0.5in;"><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: \
navy;"><span>4)<font face="Times New Roman" size="1"><span style="font-family: \
&quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: \
normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: \
normal;">             </span></font></span></span></font><font face="Arial" size="2" \
color="navy"><span style="font-size: 10pt; font-family: Arial; color: navy;">export \
DISPLAY=&lt;ip of your suse box&gt;:0.0</span></font></p>



<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">For this method you have to be sure ports in \
the 6000 range are open in any firewall between the suse box and the netbackup server \
(including iptables if it is running).</span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">  </span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">  </span></font></p>

<p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: \
10pt; font-family: Arial; color: navy;">  </span></font></p>

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times \
New Roman" size="3"><span style="font-size: 12pt;">

<hr size="2" width="100%" align="center">

</span></font></div><div class="im">

<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; \
font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" \
size="2"><span style="font-size: 10pt; font-family: Tahoma;"> <a \
href="mailto:veritas-bu-bounces@mailman.eng.auburn.edu" \
target="_blank">veritas-bu-bounces@mailman.eng.auburn.edu</a> [mailto:<a \
href="mailto:veritas-bu-bounces@mailman.eng.auburn.edu" \
target="_blank">veritas-bu-bounces@mailman.eng.auburn.edu</a>] <b><span \
style="font-weight: bold;">On Behalf Of </span></b>Waleed Harbi<br> <b><span \
style="font-weight: bold;">Sent:</span></b> Sunday, November 22, 2009 3:25 PM<br>
<b><span style="font-weight: bold;">To:</span></b>
<a href="mailto:veritas-bu@mailman.eng.auburn.edu" \
target="_blank">veritas-bu@mailman.eng.auburn.edu</a><br> <b><span \
style="font-weight: bold;">Subject:</span></b> [Veritas-bu] jnbSA NOT working from \
OpenSuse Box</span></font></p>

</div></div>

<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: \
12pt;">  </span></font></p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Times New Roman" \
size="3"><span style="font-size: 12pt;">Hi,<div><div></div><div class="h5"><br> <br>
I am new to Netbackup, I have Solaris 10 Netbackup server, and I want run <b><span \
                style="font-weight: bold;">jnbSA</span></b> from that server remotely \
                using ssh
-X in Linux but I faced Java error message about X11 forwarding even I
configured DISPLAY variable, from other hand in Windows worked fine using
Netbackup-Java GUI.<br>
<br>
Any suggestion? <br>
<br>
Is there Netbackup-Java GUI avalibe for Linux box to connect Netbackup server?<br>
<br clear="all">
---<br>
Best wishes,<br>
Waleed Harbi<br>
-----------------------------------------------------------<br>
Try not to become a man of success<br>
but rather try to become a man of value.</div></div></span></font></p>

</div>

</div>

</div>
<div>  </div>
<div>
<font face="Arial" size="2">Proud partner. Susan G. Komen for the Cure.</font>
</div>
<div>  </div>
<div>
<font face="Arial" size="1" color="green"><i>Please consider our environment before \
printing this e-mail or attachments.</i></font> </div>
<div style="font-size: 9pt; font-family: Courier New;">
<font face="Arial" size="2">----------------------------------<br>CONFIDENTIALITY \
NOTICE: This e-mail may contain privileged or confidential information and is for the \
sole use of the intended recipient(s). If you are not the intended recipient, any \
disclosure, copying, distribution, or use of the contents of this information is \
prohibited and may be unlawful. If you have received this electronic transmission in \
error, please reply immediately to the sender that you have received the message in \
error, and delete it. Thank you.<br>

----------------------------------<br></font>
</div></div>
</blockquote></div><br></div>



_______________________________________________
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic