Author |
Message
|
jeevan |
Posted: Thu Feb 16, 2006 12:23 pm Post subject: how to find information in remote server |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
I have to collect information from different server. In order to do that I have to run one mq command. is there way that I can do that staying in one terminal? I mean i login in one server and do that?
Thanks a lot |
|
Back to top |
|
 |
mvic |
Posted: Thu Feb 16, 2006 12:26 pm Post subject: Re: how to find information in remote server |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
jeevan wrote: |
I have to collect information from different server. In order to do that I have to run one mq command. is there way that I can do that staying in one terminal? I mean i login in one server and do that? |
What sort of information has to be collected? If will help if you give an example of the type of information - is it files, messages, or something else? |
|
Back to top |
|
 |
jeevan |
Posted: Thu Feb 16, 2006 12:29 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
verson of the mq running on different machines |
|
Back to top |
|
 |
mvic |
Posted: Thu Feb 16, 2006 12:41 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
jeevan wrote: |
verson of the mq running on different machines |
This type of command works for me, where the local machine is running Fedora Core 4, and the remote machine is running Sun Solaris. Note that SSH must be installed and configured correctly on both machines.
Code: |
ssh -l REMOTEUSERNAME MACHINENAME.mycompany.com /opt/mqm/bin/dspmqver |
The output I get back is
Code: |
Name: WebSphere MQ
Version: 6.0.0.0
CMVC level: p000-L050519
BuildType: IKAP - (Production) |
|
|
Back to top |
|
 |
jeevan |
Posted: Fri Feb 17, 2006 6:10 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
when I run the script, it gave me an error message as follows:
no address associated with name
The string I used is the same i used for logging every day.
I am not sure about ssh installed or not on every machine. but when i type ssh it comes up. So, ssh seems installed. Any reason.
By the way, the correct the path in AIX is
/usr/mqm/bin/dspmqver
thanks |
|
Back to top |
|
 |
mvic |
Posted: Fri Feb 17, 2006 6:23 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
jeevan wrote: |
I am not sure about ssh installed or not on every machine. but when i type ssh it comes up. So, ssh seems installed. Any reason. |
You'll need an SSH client installed locally and an SSH server installed on the remote machine. It's possible you have only the client installed(?)
Sorry I am not the greatest AIX expert. The AIX system administrator should tell you whether the SSH server installation has been done successfully, and is configured correctly.
For other AIX questions, you might wish to try http://www.ibm.com/developerworks/forums/dw_forum.jsp?forum=747&cat=56 or some other forum that deals with AIX?
Yes, /usr/mqm/bin/dspmqver is the path on AIX, sorry I didn't mention that. |
|
Back to top |
|
 |
mvic |
Posted: Fri Feb 17, 2006 6:25 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
jeevan wrote: |
no address associated with name |
Did you replace my example machine name MACHINENAME.mycompany.com with a real DNS name or IP address that works in your network? |
|
Back to top |
|
 |
jeevan |
Posted: Fri Feb 17, 2006 6:29 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Yes, i replace with the correct address
for example i can login with
ssh -l username machine
but when i give the whole string with command it gives that error |
|
Back to top |
|
 |
mvic |
Posted: Fri Feb 17, 2006 6:35 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
jeevan wrote: |
Yes, i replace with the correct address
for example i can login with
ssh -l username machine
but when i give the whole string with command it gives that error |
The command ssh -l username machine /opt/mqm/bin/dspmqver worked for me between a Linux and a Solaris installation, as I mentioned.
The error message you mentioned in your previous post ("no address associated with name") suggests a network name lookup problem, which I would not expect to receive as ouput when running /usr/mqm/bin/dspmqver on the AIX machine.
Perhaps try (a) logging into the machine first, and running /usr/mqm/bin/dspmqver from a normal shell, to make sure this command is actually installed, and works ; (b) asking on the AIX forum?
Other than this, I'm out of ideas. |
|
Back to top |
|
 |
jeevan |
Posted: Fri Feb 17, 2006 6:43 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
when I break down the two parts, it works fine. I mean i canlogin with
ssh -l username machine.company.com
and use /usr/mqm/bin/dspmqver
But when i combine, it did not work. Anyway,
I will ask my unix folks
thanks anyway |
|
Back to top |
|
 |
vennela |
Posted: Fri Feb 17, 2006 10:06 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
when I break down the two parts, it works fine. I mean i canlogin with
ssh -l username machine.company.com
and use /usr/mqm/bin/dspmqver |
That is just fine.
The machine where you are running the command from and the target machine are not trusted by each other. Logging in is a different thing and issung the command is a different thing.
The best thing for you to do is to ask your sysadmin on how to do it and what machine to use. |
|
Back to top |
|
 |
jeevan |
Posted: Fri Feb 17, 2006 12:32 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
|
Back to top |
|
 |
nathanw |
Posted: Wed Mar 01, 2006 8:21 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
this just helped me with a problem as well
just goes to prove
SEARCHING WORKS! |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Wed Mar 01, 2006 8:40 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
jeevan wrote: |
... By the way, the correct the path in AIX is
/usr/mqm/bin/dspmqver ... |
/usr/bin/dspmqver works on all Unixes (because it is linked to the correct path)  _________________ Regards
Hubert |
|
Back to top |
|
 |
|