kysdk.Net(3)

NAME
kysdk.Net - 获取网络信息 主要用来获取指定网络端口的状态、区间端口状态、网关信息、防火墙信息

SYNOPSIS

Inherits kysdk.Base.

  Public Member Functions

def __init__ (self)
def getPortState (self, port)
获取指定网络端口的状态
def getMultiplePortStat (self, start_port, end_port)
获取区间端口状态
def getGatewayInfo (self)
获取网关信息
def getFirewallState (self)
获取防火墙信息

  Additional Inherited Members

Detailed Description

获取网络信息 主要用来获取指定网络端口的状态、区间端口状态、网关信息、防火墙信息

Member Function Documentation

  def kysdk.Net.getFirewallState ( self)

获取防火墙信息

Returns
    防火墙信息列表

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Net.getGatewayInfo ( self)

获取网关信息

Returns
    网关信息网卡名和地址列表

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Net.getMultiplePortStat ( self, start_port, end_port)

获取区间端口状态

Parameters
    start_port 开始端口
    end_port 结束端口

Returns
    区间端口状态列表

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Net.getPortState ( self, port)

获取指定网络端口的状态

Parameters
    port 端口号

Returns
    端口状态 TCP_ESTABLISHED:0x1 TCP_SYN_SENT:0x2 TCP_SYN_RECV:0x3 TCP_FIN_WAIT1:0x4 TCP_FIN_WAIT2:0x5 TCP_TIME_WAIT:0x6 TCP_CLOSE:0x7 TCP_CLOSE_WAIT:0x8 TCP_LAST_ACL:0x9 TCP_LISTEN:0xa TCP_CLOSING:0xb

References kysdk.SessionBase.interface, and kysdk.Base.interface.

Author

Generated automatically by Doxygen for kysdk.py from the source code.