Building customer agent using Sunplex agent builder

one of best feature of the Sun Cluster 3.x SW is the buildin SunPlex Agent Builder

you can use this simple tool to build a failover agent or scalable agent. You can use the full GUI version: scdsbuilder or the CLI scdscreate and scdsconfig commands

you can build agent based on the SUNWgds (Generic Data Service) or generate source code in C or ksh.

Please refer to the Sun Cluster Dataservice developer's (817-4227) guide for full detail.

example

We just give an example that use the CLI tool. Let's assume that we have an application that has the following script

  • start script :/usr/local/bin/startapps
  • stop script :/usr/local/bin/stopapps
  • and we will like to create a failover agent.

    Create

    First we run the following command

    scdscreate -V BIG -T apps -d /tmp -k

    ...... Creating the RTR file BIG.apps .... done.

    here we use the vender_id=BIG, resource_type_name=apps, working_directory=/tmp and generate ksh source code.

    It is always a good idea to use generate ksh code, one can learn alots by just examine the codes.

    configure

    Next we run the following command

    scdsconfig -s /usr/local/bin/startapps -t /usr/local/bin/stopapps -d /tmp

    we will see

    \*\*\*

    The Package for the apps services has benn created in /tmp/BIGapps/pkg

    \*\*\*

    you can tar the diectory BIGapps up and ready to use it.

    Install

    Next setup to to install the BIGapps by the command pkgadd -d /tmp/BIGAppd/pkg at one node and copy the BIGapps directory to the second node and install it also.

    register Resource Type

    In th configuration process you will need to register the BIGapps rsource type and you are on you way to configure the failover agent for apps

    scrgadm -t BIGapps

    that is all ...

    Comments:

    Post a Comment:
    Comments are closed for this entry.
    About

    hstsao

    Search

    Top Tags
    Archives
    « April 2014
    SunMonTueWedThuFriSat
      
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
       
           
    Today