Servergroup Metadata

Servergroup nodes contain an XML metadata stream called info. You can obtain it using the getMetaData method on the WiretapNodeHandle object for the servergroup node, or using the wiretap_get_metadata command-line tool. It is set using the setMetaData method and wiretap_set_metadata command.

The returned metadata is structured as follows:

<info>
  <name>groupname</name>
  <servers>server1,server2,...,servern</servers>
</info>

The following table explains the elements in the metadata stream.

Element Type Comments
<info> complex Container for the other elements
<name> string The server group
<servers> string A comma-separated list of servers in the group

Example

The following use of the wiretap_get_metadata command returns the metadata for a servergroup node named TestGroup on a host called rossendale:Backburner.

wiretap_get_metadata -h rossendale:Backburner  -n /servergroups/TestGroup -s info
 
<info>
  <name>TestGroup</name>
  <servers>rossendale,belize,new-york</servers>
</info>