Retrieve platform version using iControl Proxy (Python code sample)

Problem this snippet solves:

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

Code :

# Get foo.
foo = ic.Management.EM.get_foo()

# Iterate through foo.
for foo in foos:'Found: %s', foo)

    LOG.error('No foo found.')

# Get bar ID.
bar_id = ic.Management.EM.get_bar_id()

# Append bar ID to iControl URI.
ic.query = {'bar_id': bar_id}

# Set foo context.

# Get sprocket version from foo.
print ic.System.SystemInfo.get_version()
Published Mar 09, 2015
Version 1.0

Was this article helpful?

No CommentsBe the first to comment