Puts the server that you have connected to into admin mode. The server must be restarted for the change to take effect.
set_admin connect-args [reason]
<jag_set_admin [reason=“reason”] />
| Option | Description | Required | 
|---|---|---|
| connect-args | Arguments to specify a connection to the server. See “Using connected mode”. | Yes | 
| reason | The reason the server is being put into admin mode. | No | 
| Return value | Indicates | 
|---|---|
| 0 | The command ran successfully; the result is true/success. | 
| 1 | The command ran successfully; the result is false/failure. | 
| 2 | The command did not run successfully; an exception was thrown. | 
This example puts the server into admin mode with the reason “Regularly scheduled maintenance”.
Command line:
jagtool set_admin "Regularly scheduled maintenance"
Ant build file:
<jag_set_admin reason="Regularly scheduled maintenance" />
restart, set_ready, “Using Admin mode”
| Copyright © 2005. Sybase Inc. All rights reserved. |   | |