Please enter search query.
Search <book_title>...
Cluster Server 8.0.1 Agent Developer's Guide - Windows
Last Published:
2022-05-19
Product(s):
InfoScale & Storage Foundation (8.0.1)
Platform: Windows
- Introduction
- Agent entry point overview
- About agent entry points
- Agent entry points described
- About the action entry point
- About the info entry point
- Considerations for using C++ or script entry points
- About the agent information file
- About the ArgList and ArgListValues attributes
- Creating entry points in C++
- About creating entry points in C++
- Syntax for C++ entry points
- Agent framework primitives
- Agent Framework primitives for container support
- Creating entry points in scripts
- About creating entry points in scripts
- Syntax for script entry points
- Agent framework primitives
- VCSAG_GET_ATTR_VALUE
- Agent Framework primitives with container support
- Example script entry points
- Logging agent messages
- Building a custom agent
- Files for use in agent development
- Creating the type definition file for a custom agent
- Building a custom agent on UNIX
- Defining resources for the custom resource type
- Building a script based IMF-aware custom agent
- Creating XML file required for AMF plugins to do resource registration for online and offline state monitoring
- Testing agents
- Static type attributes
- About static attributes
- Static type attribute definitions
- AdvDbg
- ArgList
- State transition diagram
- Internationalized messages
- Troubleshooting VCS resource's unexpected behavior using First Failure Data Capture (FFDC)
- Appendix A. Using pre-5.0 VCS agents
Example
If the type definition of type "Foo" is:
<agent name="Foo" version="1.0" bundled="False"> <attributes> <IntAttr type="int" dimension="scalar"> . </IntAttr> <StringAttr type="str" dimension="scalar"> . </StringAttr> <VectorAttr type="str" dimension="vector"> . </VectorAttr> <AssocAttr type="str" dimension="assoc"> . </AssocAttr> </attributes> <attributes class=static> <ArgList type="str" dimension="vector"> <default> <val>IntAttr</val> <val>StringAttr</val> <val>VectorAttr</val> <val>AssocAttr</val> </default> </ArgList> </attributes> </agent>
And the resource is defined in the configuration file main.xml as:
<resources> <resource name="Bar" type="Foo"> <attribute IntAttr> <scalar>100</scalar> </attribute> <attribute StringAttr> <scalar>"Oracle"</scalar></attribute> <attribute VectorAttr> <val>"vol1"</val> <val>"vol2"</val> </attribute> <attribute AssocAttr> <val key="disk1">1024</val> <val key="disk2">512</val> </attribute> </resource> </resources>
For Script51Agent, the online script for Bar is invoked as:
online Bar IntAttr 1 100 StringAttr 1 Oracle VectorAttr 3 vol1 vol2 vol3 AssocAttr 4 disk1 1024 disk2 512