cancel
Showing results for 
Search instead for 
Did you mean: 
hatonis
Level 7

[Web Gateway] detecting the master

Hello,

Is there any command, script or REST url that allows us to check if an appliance is a "master"? Or is there any command that shows the "master" of a specified appliance?

Thanks for your help,

Tahsin

0 Kudos
3 Replies
McAfee Employee

Re: [Web Gateway] detecting the master

Hi Tahsin,

There is not a command for it, however there should be a an X-header which is populated with the IP of the GUI node.

So if you connect to the non-GUI node, the response should contain this X-header directing you to the right GUI node.

Best Regards,

Jon

0 Kudos
hatonis
Level 7

Re: [Web Gateway] detecting the master

Hi,

Thank you for the answer. I don't have this kind of information in the header. Here is the kind of header I get :

HTTP/1.1 200 OK

X-MWG-REST-VERSION: 1

X-MWG-UI-VERSION: 7.4.2.10.0

Content-Type: application/atom+xml

Transfer-Encoding: chunked

Date: Thu, 06 Aug 2015 13:53:22 GMT

Server: mwg-ui

Sometimes, I have the following reply when using the REST API in some hosts: another gui is in use:https://XXXXXX

Does it mean that it's a slave?

Thanks.

Regards,

Tahsin

0 Kudos
McAfee Employee

Re: [Web Gateway] detecting the master

Hi Tahsin,

As mentioned, you will only get the header when you attempt to access the *non-GUI* node.

If you got a 200 response, this leads me to believe you were accessing the GUI node.

Best Regards,

Jon

0 Kudos