cancel
Showing results for 
Search instead for 
Did you mean: 

how to switch to maintenance mode in Webdispatcher

Former Member
0 Kudos

Hi, everyone!

Please tell me how to switch to maintenance mode in webdispatcher by shell scripts.

I use Webdispatcher on HP-UX.

Best Regards,

Masahide Yano

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

You can try using the wget-utility and the following url's:

to switch maintenance modeon:

http://server:80xx/sap/wdisp/admin/confirm.icp?what=change_maint&p1=1

to switch it off:

http://server:80xx/sap/wdisp/admin/confirm.icp?what=change_maint&p1=0

Kind regards,

Serge

Former Member
0 Kudos

Hello Serge,

Thank you for your reply.

Your suggestion has two problems.

Tne one is to need to input ID and password.

The other is to display the message "Do you really want to leave the maintenance mode? ".

The thing I want to execute is to change the mode by using the batch script (ex. ZZZ.bat) automatically.

Best Regards,

Masahide Yano

russell_liss
Discoverer
0 Kudos

Hi Masahide

I was able to write a script to do this.  Hopefully this helps others.

First, I am assuming the web dispatcher is running with basic authentication. 

The script did something similair to what wget would do,

wget -user=<user> -pass=<password> http://<host>:<port>//wdisp/admin/icp/confirm.icp?what=change_maint&p1=1

The problem with this is that you get a confirmation page.  This page has 3 form parameters, what, token, and p1.  The token is what you will need to extract to make the next call. 

You then make a call to http://<host>:<port>//wdisp/admin/icp/do_action.icp, passing post parameters, what = "change_maint", token = <what you got from the previous call, and p1 = "1".  1 Enters maintenance mode, and 0 Enters running mode.

I did this all with a PHP script, and the Snoopy class.  It works very nicely.

We are also able to add and remove servers out of load balancing, using the same technique.

Cheers

Russell

Former Member
0 Kudos

Follow the steps for Webdispatcher;

1.Open a web browser.

2. Enter the following URL:

http://<web_dispatcher_host>:<web_dispatcher_port>/sap/admin

If you did not enter a specific port number, <web_dispatcher_port> is by default

81<instance_number>.

The SAP Web Dispatcher Monitor screen appears.

More over, below notes would definitely helpful to you.

Note 538405 - Composite SAP Note: SAP Web Dispatcher

Note 1075118 - SAP on HP-UX: FAQregards

nag

Former Member
0 Kudos

Thank you very much for your reply.

I know the operation told by you.

Automatically and daily, I'd like to impose restrictions on the access of the end user

For example, I hope the following step will be executed by using JP1, Tivoli and so on.

1. switch maintenance mode

2. online backup

3. switch normal mode