ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Ping a server from message flow

Post new topic  Reply to topic
 Ping a server from message flow « View previous topic :: View next topic » 
Author Message
firoj.badsa
PostPosted: Tue May 08, 2012 9:59 am    Post subject: Ping a server from message flow Reply with quote

Centurion

Joined: 16 Feb 2007
Posts: 104

Hi,

Is there any way I can ping a server from WMB and get a response? Or is there any way I can check the availability of the server?

thanks in advance,
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue May 08, 2012 10:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Yes.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
firoj.badsa
PostPosted: Tue May 08, 2012 10:07 am    Post subject: Reply with quote

Centurion

Joined: 16 Feb 2007
Posts: 104

@lancelotlinc, could you please explain a bit how can I achieve this.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 08, 2012 10:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

step 1: identify the mechanisms that the server provides for accepting requests to determine that it is alive.
step 2: identify the mechanisms that exist in Broker that are capable of using at least one of the mechanisms in step 1.
Back to top
View user's profile Send private message
firoj.badsa
PostPosted: Tue May 08, 2012 10:19 am    Post subject: Reply with quote

Centurion

Joined: 16 Feb 2007
Posts: 104

step 1: I can use the ping command from AIX to check the server availability. no FTP/SFTP
step 2: I do not know if there is something in WMB like this.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 08, 2012 10:27 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Well, you can use the TCPIP nodes to send any kind of network request you want.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 08, 2012 10:28 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

But what happens if the server dies just after it responds to your ping?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue May 08, 2012 10:29 am    Post subject: Re: Ping a server from message flow Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

firoj.badsa wrote:
Is there any way I can ping a server from WMB and get a response? Or is there any way I can check the availability of the server?


Why would you want to? What use or advantage does this give you?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue May 08, 2012 11:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

firoj.badsa wrote:
step 1: I can use the ping command from AIX to check the server availability. no FTP/SFTP
step 2: I do not know if there is something in WMB like this.


In a JCN, you can have the following:

Code:

InetAddress address =
InetAddress.getByName("www.somecompany_url.com");
qreachable =address.isReachable(1024*4);
if(qreachable=true) //Yes, we can !
else //no we cannot


_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Ping a server from message flow
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.