def IxVmDiscoverAppliancesPy(ixNet): availableHardwareObj = ixNet.getList(ixNet.getRoot(), 'availableHardware')[0] vChassisObj = ixNet.getList(availableHardwareObj, 'virtualChassis')[0] # Load Modules # ['::ixNet::OBJ-/availableHardware/virtualChassis/discoveredAppliance:"192.168.70.130"', # '::ixNet::OBJ-/availableHardware/virtualChassis/discoveredAppliance:"192.168.70.131"'] discoveredApplianceList = ixNet.getList(vChassisObj, 'discoveredAppliance') for eachDiscoveredAppliance in discoveredApplianceList: print 'DiscoveredAppliances:', eachDiscoveredAppliance return discoveredApplianceList