I have a little code in zendmd as follows:
>
> >>> dev=find('switch.skills-1st.co.uk')
> >>> devmac='00:0E:50:88:34:E6'
> >>> Ips=dmd.ZenLinkManager.layer2_catalog(macaddress=devmac)
> >>> print Ips
> [<Products.ZCatalog.Catalog.mybrains object at 0xb5fe5c34>,
> <Products.ZCatalog.Catalog.mybrains object at 0xb5fe5c5c>,
> <Products.ZCatalog.Catalog.mybrains object at 0xb5fe5c84>,
> <Products.ZCatalog.Catalog.mybrains object at 0xb5fe5cac>,
> <Products.ZCatalog.Catalog.mybrains object at 0xb5fe5cd4>]
> >>>
>
The idea is that it searches for devices with a particular MAC address. I can
then use the following to get IP addresses:
>
> >>>
> >>> for i in Ips:
> ... print i.getObject().manageIp
> ...
> 10.0.0.254
> 10.0.0.254
> 10.0.0.254
> 10.0.0.254
> 10.0.0.254
> >>>
>
This works fine for this particular device but I have a different device where
it barfs out. Question is, how do I find more information about these
<Products.ZCatalog.Catalog.mybrains object at 0xb5fe5c34> objects?? How do I
look at the details of the object at 0xb5fe5c34>??
Any clues gratefully received!
Cheers,
Jane
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=34515#34515
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users