Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

bigsuds using iControl Proxy

I'm trying to connect to an EM-managed device via iControl proxy using bigsuds. It seems to work, but subsequent calls still return values from the EM, not the proxy device.

Code

import bigsuds

# Connect to EM
conn = bigsuds.BIGIP('em-host', 'admin', 'admin')

# Get a context ID
context_id = conn.Management.EM.get_context_id()

# Connect to remote host?
conn.Management.EM.set_device_context('<ip of bigip host>')

# Try to get system version from bigip host
print conn.System.SystemInfo.get_version()

Output

EM_v3.1.1

I modeled the code after the following code contributions:

I hope I'm missing something minute, but I just can't see it!

0
Rate this Question

Answers to this Question