Incomplete documentation????....I would never have thought it was possible.

-----Original Message-----
From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Curtis Gallant
Sent: Wednesday, September 12, 2012 11:16 AM
To: arslist@ARSLIST.ORG
Subject: Re: Stop/Activate Escalations

** I noticed it wasn't in the main list describing setServerInfo & 
getServerInfo possible values as well which seemed odd as most of the toggles 
you'd want to play with on the Server Information screen are there so I just 
grep'd through the Constants class for other Constants that start with 
AR_SERVER_INFO and there are quite a few others, not all are probably valid for 
the method but DISABLE_ESCALATION jumped out right away there.  Tested it and 
it worked for me.

It's also in the ar.h header files listed along side all the other options:
#define AR_SERVER_INFO_DISABLE_ESCALATIONS  143/* int  - 0 - enabled          */
                                               /*        1 - not enabled      */

Cheers,
Curtis Gallant


On Wed, Sep 12, 2012 at 1:05 PM, Longwing, LJ CTR MDA/IC 
<lj.longwing....@mda.mil> wrote:


        Curtis,
        I was looking for the property for Disable Escalations, but it wasn't 
listed (that I saw) as an option that could be set....did I miss it or is the 
documentation wrong?
        

        -----Original Message-----
        From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Curtis Gallant
        Sent: Wednesday, September 12, 2012 11:04 AM
        To: arslist@ARSLIST.ORG
        Subject: Re: Stop/Activate Escalations
        
        
        ** 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 
<lj.longwing....@mda.mil> 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:arslist@ARSLIST.ORG] On Behalf Of Sylvain YVON
                Sent: Wednesday, September 12, 2012 9:00 AM
                To: arslist@ARSLIST.ORG
                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".
        
        
        
        
        
        
        _attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_
        
        
        
_______________________________________________________________________________
        UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
        attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"
        




-- 
Curtis Gallant

_attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_ 

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

Reply via email to