cancel
Showing results for 
Search instead for 
Did you mean: 

Problem this snippet solves:

This C# client code sample uses the iControl Proxy to retrieve the platform version for each device managed by the referenced Enterprise Manager.

Code :

// Get EM iControl interface.
Interface ic = new IControlInterface(IpAddress, Port, UserName, Password);

// Get devices.
string[] deviceList = ic.ManagementEM.get_devices();

// Iterate through devices.
foreach (string deviceIp in devices)
{
    // Get new context ID for each device (i.e. 'device session' use).
    string context = ic.ManagementEM.get_context_id();

    // Use this when setting up multiple connections to the same endpoint
    // with alternating proxy context IDs.
    // ic.ConnectionInfo.setEndpoint(deviceIp, Port,
        "/iControl/iControlPortal.cgi?context_id=" + context);

    // Set device context for current device.
    ic.ManagementEM.set_device_context(deviceIp);

    // Get remote device version.
    string version = ic.SystemSystemInfo.get_version();
}
Version history
Last update:
‎07-Mar-2015 15:02
Updated by:
Contributors