Code for simple soap clients, Unbinding a real server from a vip, Provisioning real and virtual servers – Brocade Virtual ADX XML API Programmer’s Guide (Supporting ADX v03.1.00) User Manual

Page 14: Monitoring the system, Perl example

Advertising
background image

4

Brocade Virtual ADX XML API Programmer’s Guide

53-1003248-01

Creating client-specific APIs from client stubs

1

4. Bind the real server to the virtual server.

5. Save the configuration.

Each request is authenticated independently.

Refer to

“Example: Adding and binding a real server and a VIP”

for examples in Perl, Java, and C#.

Unbinding a real server from a VIP

1. Unbind a previously added real server from the virtual server.

2. Remove the real server and the virtual server.

3. Save the configuration.

Refer to

“Example: Unbinding a real server from a VIP”

for examples in Perl, Java, and C#.

Provisioning real and virtual servers

1. Add a list of real servers with common parameters.

2. Add a virtual server and real server ports to the VIP.

3. Remove or disable a list of real servers that has a given string in its name, using regular

expressions or wild cards if needed.

4. Remove a real server and reuse its IP address for another real server.

Refer to

“Example - Provisioning real and virtual servers”

for examples in C#.

Monitoring the system

1. List all failed real server ports and real servers.

2. List all failed VIP ports and VIPs.

3. List all unplugged real servers (where the MAC address is unknown in the show server real

output).

4. Monitor the status of a given real server port.

5. Monitor the status of a VIP port.

6. Monitor the current connections of a real server.

7. Monitor the current connections of a VIP.

8. Monitor the total current connections of the system.

9. Monitor the CPU and the memory of the system.

Code for simple SOAP clients

The following code examples illustrate how to work with the SOAP protocol.

Perl example

This example shows the output from the script "getChassisInfo.pl" and then shows the contents of
the script.

Advertising