Symantec logo

Resource type definition

type MultiNICB (

    static int MonitorInterval = 10

    static int OfflineMonitorInterval = 60

    static int MonitorTimeout = 60

    static int Operations = None

    static str ArgList[] = { Device, NetworkHosts, LinkTestRatio,
    IgnoreLinkStatus, NetworkTimeout, OnlineTestRepeatCount,
    OfflineTestRepeatCount, NoBroadcast, DefaultRouter, Failback }

    str Device{}

    str NetworkHosts[]

    int LinkTestRatio = 1

    int IgnoreLinkStatus = 1

    int NetworkTimeout = 100

    int OnlineTestRepeatCount = 3

    int OfflineTestRepeatCount = 3

    int NoBroadcast = 0

    str DefaultRouter = "0.0.0.0"

    int Failback = 0

)

Trigger script

MultiNICB monitor agent function calls a VCS trigger in case of an interface going up or down. The agent passes the following arguments to the script:

The agent also sends a notification (which may be received via SNMP or SMTP) to indicate that status of an interface changed. The notification is sent using "health of a cluster resource declined" and "health of a cluster resource improved" traps. These traps are mentioned in the VCS User's Guide. A sample mnicb_postchange trigger is provided with the agent. You can customize this sample script as needed or write one from scratch.

The sample script does the following:

IPMultiNICB and MultiNICB configuration

The following is an example VCS configuration.

include "types.cf"

cluster clus_north (

    UserNames = { admin = "cDRpdxPmHpzS." }

    Administrators = { admin }

    CounterInterval = 5

    )

system north

system south

group g11 (

    SystemList = { north = 0, south = 1 }

    AutoStartList = { north, south }

    )

    IPMultiNICB ipmnicb (

        BaseResName = mnicb

        Address = "192.1.0.201"

        NetMask = "255.255.0.0"

        DeviceChoice = 1

        )

    

    MultiNICB mnicb (

        Device @north = { lan0 = 0, lan4 = 1 }

        Device @south = { lan0 = 0, lan4 = 1 }

        NetworkHosts = { "192.1.0.1" }

        DefaultRouter = "0.0.0.0"

        )

    ipmnicb requires mnicb