Thanks!
On Wed, 2007-03-14 at 11:48 -0400, Chet Luther wrote:
> On 3/13/07, Mohamed Hussein <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I have been discovering more of the zendmd and python power. I am pretty
> > close to getting everything I need but I am having difficulties getting
> > MAC address. I looked in Products/ZenModel/IpInterface.py and
> > Products/ZenModel/IpAddress.py but I could not find a clean way to do
> > this. The only thing I can think of is to while instantiate a new
> > IpAddress object and some how use that to get the MAC for that IP. is
> > there a recommended way to get this done?
> 
> IpInterface objects will have the macaddress property.
> 
> >>> find("yourhost").os.interfaces()[0].macaddress
> '00:AA:BB:CC:DD:EE'
> 

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to