Python Api  IE10.1
Functions | Variables
oneiptable Namespace Reference

Functions

def GetOneIpTableItem (ip, mac="", switchName="", portName="")
 get one ip item obj of json formated string More...
 
def DeleteOneIpRecord (ip, mac="", switchName="", portName="", devName="", intfName="")
 delete one ip item More...
 
def ResolveOneIPTableItemDNS (ip)
 resolve one ip talbe dns by ip address. More...
 
def AddOneIPTableItemAsEndSystem (ip, mac)
 resolve one ip talbe dns. More...
 

Variables

 str_stack = traceback.format_exc();
 

Function Documentation

◆ AddOneIPTableItemAsEndSystem()

def oneiptable.AddOneIPTableItemAsEndSystem (   ip,
  mac 
)

resolve one ip talbe dns.

–func unrealized

Warning
func unrealized

◆ DeleteOneIpRecord()

def oneiptable.DeleteOneIpRecord (   ip,
  mac = "",
  switchName = "",
  portName = "",
  devName = "",
  intfName = "" 
)

delete one ip item

Parameters
ip(string) ip address ,REQUIRED
mac(string) mac address ,Optional
switchName(string) linked switch name ,Optional
portName(string) linked switch port name ,Optional
devName(string) device name ,Optional
intfName(string) interface name ,Optional
Returns
True or False

◆ GetOneIpTableItem()

def oneiptable.GetOneIpTableItem (   ip,
  mac = "",
  switchName = "",
  portName = "" 
)

get one ip item obj of json formated string

Parameters
ip(string) ip address ,REQUIRED
mac(string) mac address ,Optional
switchName(string) linked switch name ,Optional
portName(string) linked switch port name ,Optional
Returns
(list of string) list of json formated string.
example:
[{
"alias": "",
"descr": "",
"devName": "",
"dns": "",
"domainId": 0,
"gateway": "",
"index": -1,
"interfaceName": "",
"ip": "10.10.188.16",
"ipInt": 168475664,
"isUnknownEndSystem": false,
"isVisible": false,
"lanSegment": "10.10.188.0/22",
"mac": "0015.5DBC.4627",
"portName": "TenGigabitEthernet1/17",
"retrievedTime": 1548238499,
"serverType": 1004,
"source": "",
"sourceDataId": "",
"sourceDeviceId": "",
"status": 256,
"switchName": "sw-4500-15",
"switchType": 2001,
"upateTime": ISODate(2019 - 01 - 24 T02: 06: 48.000 Z),
"userFlag": 7,
"vendor": "",
"vlan": 188
}]

◆ ResolveOneIPTableItemDNS()

def oneiptable.ResolveOneIPTableItemDNS (   ip)

resolve one ip talbe dns by ip address.

Parameters
ip(string) ip address
Returns
(bool) True if ip has been resolved. ohter return False

Variable Documentation

◆ str_stack

oneiptable.str_stack = traceback.format_exc();