DataCollector :: CommandParsers :: Linux_ifconfig :: Linux_ifconfig :: Class Linux_ifconfig
[hide private]
[frames] | no frames]

Class Linux_ifconfig

source code

CommandPlugin.CommandPlugin --+
                              |
                             Linux_ifconfig

Linux_ifconfig maps a linux ifconfig command to the interfaces relation.

Instance Methods [hide private]
 
condition(self, device, log) source code
 
process(self, device, results, log) source code
Class Variables [hide private]
  maptype = "InterfaceMap"
  command = 'ifconfig'
  compname = "os"
  relname = "interfaces"
  modname = "Products.ZenModel.IpInterface"
  ifstart = re.compile("^(\S+)\s+Link encap:(.+)HWaddr (\S+)" "|...
  v4addr = re.compile("inet addr:(\S+).*Mask:(\S+)").search
  flags = re.compile("^(.*) MTU:(\d+)\s+Metric:.*").search
Class Variable Details [hide private]

ifstart

Value:
re.compile("^(\S+)\s+Link encap:(.+)HWaddr (\S+)" "|^(\S+)\s+Link enca\
p:(.+)").search