Here is a simple java method that does the same thing, assumes you have the
rest of the required boilerplate in place for your context.
void disableEscalations() {
try {
ServerInfoMap serverSettings = new ServerInfoMap();
serverSettings.put(Constants.AR_SERVER_INFO_DISABLE_ESCALATIONS, new
Value(1));
context.setServerInfo(serverSettings);
} catch (ARException e) {
System.out.println(e.getMessage());
}
}
On Wed, Sep 12, 2012 at 11:52 AM, Longwing, LJ CTR MDA/IC <
[email protected]> wrote:
> I was figuring there was a way, but despite looking, didn't see it, thanks
> :)
>
> -----Original Message-----
> From: Action Request System discussion list(ARSList) [mailto:
> [email protected]] On Behalf Of Sylvain YVON
> Sent: Wednesday, September 12, 2012 9:00 AM
> To: [email protected]
> Subject: Re: Stop/Activate Escalations
>
> Hi,
>
> You can do it with the API like LJ suggested, with the driver program if
> you just want to script, or in a program of your own.
>
> If you open ar.h on your server, you can see all the server settings you
> can change :
> [...]
> #define AR_SERVER_INFO_DISABLE_ESCALATIONS 143 /* int - 0 - enabled
> */ /* 1
> - not enabled */
> [...]
>
> Note the number 143.
>
> The "driver" programs offer a CLI to use the AR System API. For example,
> to disable escalations on a server, simply launch "driver"
> and use the following commands :
>
> Command: init
> INITIALIZATION
>
> ARInitialization results
> ReturnCode: OK
> Status List : 0 items
>
> Command: log
> Control record:
> Authentication string () :
> User name () : <your login>
> Password () : <your password>
> Locale[.charSet] () :
> Time zone () :
> Server () : <your server>
>
> Command: ssp
> SET SERVER PORT
> The port number of server (0): <your TCP port, if needed> Using private
> socket? (0):
>
> ARSetServerPort results
> ReturnCode: OK
> Status List : 0 items
>
> Command: ssi
> SET SERVER INFO
> Number of server info operations (0): 1 Server info list entry
> Operation (1-334) (1): 143 Datatype
> Null/Key/Int/Real/Char/Diary/Enum/Time/Bitmask/Byte/Decimal/attach/
> currency/date/timeofday/join/trim/control/Table/Column/ulong/
> coords/view/display (0-14, 30-34, 40-43) (0): 0
>
> ARSetServerInfo results
> ReturnCode: OK
> Status List : 0 items
>
>
>
> Now you can easily script this by writing all your answers, with the blank
> lines, into a text file, and run "driver < commands.txt".
>
>
>
>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"