lan
¶
The lan commands module.
These commands are used in the following models: MP5103
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Attributes and Functions
- lan.applysettings()
- lan.autoconnect
- lan.config.dns.address[N]
- lan.config.dns.domain
- lan.config.dns.dynamic
- lan.config.dns.hostname
- lan.config.dns.verify
- lan.config.gateway
- lan.config.ipaddress
- lan.config.method
- lan.config.subnetmask
- lan.enable
- lan.hislip.access
- lan.identify
- lan.ipconfig()
- lan.linktimeout
- lan.nagle
- lan.rawsocket.access
- lan.reset()
- lan.restoredefaults()
- lan.status.dns.address[N]
- lan.status.dns.name
- lan.status.gateway
- lan.status.ipaddress
- lan.status.macaddress
- lan.status.port.dst
- lan.status.port.hislip
- lan.status.port.rawsocket
- lan.status.port.telnet
- lan.status.speed
- lan.status.subnetmask
- lan.telnet.access
Lan
¶
Bases: BaseTSPCmd
The lan command tree.
Properties and methods
.applysettings(): Thelan.applysettings()function..autoconnect: Thelan.autoconnectattribute..config: Thelan.configcommand tree..enable: Thelan.enableattribute..hislip: Thelan.hislipcommand tree..identify: Thelan.identifyattribute..ipconfig(): Thelan.ipconfig()function..linktimeout: Thelan.linktimeoutattribute..nagle: Thelan.nagleattribute..rawsocket: Thelan.rawsocketcommand tree..reset(): Thelan.reset()function..restoredefaults(): Thelan.restoredefaults()function..status: Thelan.statuscommand tree..telnet: Thelan.telnetcommand tree.
autoconnect
property
writable
¶
autoconnect: str
Access the lan.autoconnect attribute.
Description
- This attribute is used to enable or disable link monitoring.
Usage
- Accessing this property will send the
print(lan.autoconnect)query. - Setting this property to a value will send the
lan.autoconnect = valuecommand.
TSP Syntax
- lan.autoconnect = value
- print(lan.autoconnect)
| Raises: |
|
|---|
config
property
¶
config: LanConfig
Return the lan.config command tree.
Sub-properties and sub-methods
.dns: Thelan.config.dnscommand tree..gateway: Thelan.config.gatewayattribute..ipaddress: Thelan.config.ipaddressattribute..method: Thelan.config.methodattribute..subnetmask: Thelan.config.subnetmaskattribute.
enable
property
writable
¶
enable: str
Access the lan.enable attribute.
Description
- This attribute controls whether or not any communications using the LAN connector are enabled.
Usage
- Accessing this property will send the
print(lan.enable)query. - Setting this property to a value will send the
lan.enable = valuecommand.
TSP Syntax
- lan.enable = value
- print(lan.enable)
| Raises: |
|
|---|
hislip
property
¶
hislip: LanHislip
Return the lan.hislip command tree.
Sub-properties and sub-methods
.access: Thelan.hislip.accessattribute.
identify
property
writable
¶
identify: str
Access the lan.identify attribute.
Description
- This attribute controls the LXI LAN identify state.
Usage
- Accessing this property will send the
print(lan.identify)query. - Setting this property to a value will send the
lan.identify = valuecommand.
TSP Syntax
- lan.identify = value
- print(lan.identify)
| Raises: |
|
|---|
linktimeout
property
writable
¶
linktimeout: str
Access the lan.linktimeout attribute.
Description
- This attribute contains the LAN link timeout period.
Usage
- Accessing this property will send the
print(lan.linktimeout)query. - Setting this property to a value will send the
lan.linktimeout = valuecommand.
TSP Syntax
- lan.linktimeout = value
- print(lan.linktimeout)
Info
timeout, the LAN link monitor time-out period (in seconds).
| Raises: |
|
|---|
nagle
property
writable
¶
nagle: str
Access the lan.nagle attribute.
Description
- This attribute controls the state of the LAN Nagle algorithm.
Usage
- Accessing this property will send the
print(lan.nagle)query. - Setting this property to a value will send the
lan.nagle = valuecommand.
TSP Syntax
- lan.nagle = value
- print(lan.nagle)
| Raises: |
|
|---|
rawsocket
property
¶
rawsocket: LanRawsocket
Return the lan.rawsocket command tree.
Sub-properties and sub-methods
.access: Thelan.rawsocket.accessattribute.
status
property
¶
status: LanStatus
Return the lan.status command tree.
Sub-properties and sub-methods
.dns: Thelan.status.dnscommand tree..gateway: Thelan.status.gatewayattribute..ipaddress: Thelan.status.ipaddressattribute..macaddress: Thelan.status.macaddressattribute..port: Thelan.status.portcommand tree..speed: Thelan.status.speedattribute..subnetmask: Thelan.status.subnetmaskattribute.
telnet
property
¶
telnet: LanTelnet
Return the lan.telnet command tree.
Sub-properties and sub-methods
.access: Thelan.telnet.accessattribute.
applysettings
¶
applysettings() -> None
Run the lan.applysettings() function.
Description
- This function re-initializes the LAN interface with new settings.
TSP Syntax
- lan.applysettings()
| Raises: |
|
|---|
ipconfig
¶
ipconfig(
method: str | None = None,
ip_v4_address: str | None = None,
subnet_mask: str | None = None,
gateway: str | None = None,
) -> str
Run the lan.ipconfig() function.
Description
- This function specifies the LAN configuration for the instrument.
TSP Syntax
- lan.ipconfig()
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
reset
¶
reset() -> None
Run the lan.reset() function.
Description
- This function resets the LAN interface.
TSP Syntax
- lan.reset()
| Raises: |
|
|---|
restoredefaults
¶
restoredefaults() -> None
Run the lan.restoredefaults() function.
Description
- This function resets LAN settings to default values.
TSP Syntax
- lan.restoredefaults()
| Raises: |
|
|---|
LanConfig
¶
Bases: BaseTSPCmd
The lan.config command tree.
Properties and methods
.dns: Thelan.config.dnscommand tree..gateway: Thelan.config.gatewayattribute..ipaddress: Thelan.config.ipaddressattribute..method: Thelan.config.methodattribute..subnetmask: Thelan.config.subnetmaskattribute.
dns
property
¶
dns: LanConfigDns
Return the lan.config.dns command tree.
Sub-properties and sub-methods
.address: Thelan.config.dns.address[N]attribute..domain: Thelan.config.dns.domainattribute..dynamic: Thelan.config.dns.dynamicattribute..hostname: Thelan.config.dns.hostnameattribute..verify: Thelan.config.dns.verifyattribute.
gateway
property
writable
¶
gateway: str
Access the lan.config.gateway attribute.
Description
- This attribute contains the LAN default gateway address.
Usage
- Accessing this property will send the
print(lan.config.gateway)query. - Setting this property to a value will send the
lan.config.gateway = valuecommand.
TSP Syntax
- lan.config.gateway = value
- print(lan.config.gateway)
| Raises: |
|
|---|
ipaddress
property
writable
¶
ipaddress: str
Access the lan.config.ipaddress attribute.
Description
- This command specifies the LAN IP address.
Usage
- Accessing this property will send the
print(lan.config.ipaddress)query. - Setting this property to a value will send the
lan.config.ipaddress = valuecommand.
TSP Syntax
- lan.config.ipaddress = value
- print(lan.config.ipaddress)
| Raises: |
|
|---|
method
property
writable
¶
method: str
Access the lan.config.method attribute.
Description
- This attribute contains the LAN settings configuration method.
Usage
- Accessing this property will send the
print(lan.config.method)query. - Setting this property to a value will send the
lan.config.method = valuecommand.
TSP Syntax
- lan.config.method = value
- print(lan.config.method)
| Raises: |
|
|---|
subnetmask
property
writable
¶
subnetmask: str
Access the lan.config.subnetmask attribute.
Description
- This attribute contains the LAN subnet mask.
Usage
- Accessing this property will send the
print(lan.config.subnetmask)query. - Setting this property to a value will send the
lan.config.subnetmask = valuecommand.
TSP Syntax
- lan.config.subnetmask = value
- print(lan.config.subnetmask)
Info
mask, the string that specifies the LAN subnet mask value in dotted decimal notation.
| Raises: |
|
|---|
LanConfigDns
¶
Bases: BaseTSPCmd
The lan.config.dns command tree.
Properties and methods
.address: Thelan.config.dns.address[N]attribute..domain: Thelan.config.dns.domainattribute..dynamic: Thelan.config.dns.dynamicattribute..hostname: Thelan.config.dns.hostnameattribute..verify: Thelan.config.dns.verifyattribute.
address
property
¶
Access the lan.config.dns.address[N] attribute.
Description
- This command configures the DNS server IP addresses.
Usage
- Accessing an item from this property will send the
print(lan.config.dns.address[N])query. - Setting an item from this property to a value will send the
lan.config.dns.address[N] = valuecommand.
TSP Syntax
- lan.config.dns.address[N] = value
- print(lan.config.dns.address[N])
Info
N, the entry index: 1 or 2.
| Raises: |
|
|---|
domain
property
writable
¶
domain: str
Access the lan.config.dns.domain attribute.
Description
- This attribute configures the dynamic DNS domain.
Usage
- Accessing this property will send the
print(lan.config.dns.domain)query. - Setting this property to a value will send the
lan.config.dns.domain = valuecommand.
TSP Syntax
- lan.config.dns.domain = value
- print(lan.config.dns.domain)
| Raises: |
|
|---|
dynamic
property
writable
¶
dynamic: str
Access the lan.config.dns.dynamic attribute.
Description
- Enables or disables the dynamic DNS registration.
Usage
- Accessing this property will send the
print(lan.config.dns.dynamic)query. - Setting this property to a value will send the
lan.config.dns.dynamic = valuecommand.
TSP Syntax
- lan.config.dns.dynamic = value
- print(lan.config.dns.dynamic)
| Raises: |
|
|---|
hostname
property
writable
¶
hostname: str
Access the lan.config.dns.hostname attribute.
Description
- This attribute defines the dynamic DNS host name.
Usage
- Accessing this property will send the
print(lan.config.dns.hostname)query. - Setting this property to a value will send the
lan.config.dns.hostname = valuecommand.
TSP Syntax
- lan.config.dns.hostname = value
- print(lan.config.dns.hostname)
| Raises: |
|
|---|
verify
property
writable
¶
verify: str
Access the lan.config.dns.verify attribute.
Description
- This attribute defines the DNS host name verification state.
Usage
- Accessing this property will send the
print(lan.config.dns.verify)query. - Setting this property to a value will send the
lan.config.dns.verify = valuecommand.
TSP Syntax
- lan.config.dns.verify = value
- print(lan.config.dns.verify)
| Raises: |
|
|---|
LanHislip
¶
Bases: BaseTSPCmd
The lan.hislip command tree.
Properties and methods
.access: Thelan.hislip.accessattribute.
access
property
writable
¶
access: str
Access the lan.hislip.access attribute.
Description
- This command is used to enable or disable mainframe HiSLIP port communications.
Usage
- Accessing this property will send the
print(lan.hislip.access)query. - Setting this property to a value will send the
lan.hislip.access = valuecommand.
TSP Syntax
- lan.hislip.access = value
- print(lan.hislip.access)
| Raises: |
|
|---|
LanRawsocket
¶
Bases: BaseTSPCmd
The lan.rawsocket command tree.
Properties and methods
.access: Thelan.rawsocket.accessattribute.
access
property
writable
¶
access: str
Access the lan.rawsocket.access attribute.
Description
- This command is used to enable or disable mainframe raw socket port communications
Usage
- Accessing this property will send the
print(lan.rawsocket.access)query. - Setting this property to a value will send the
lan.rawsocket.access = valuecommand.
TSP Syntax
- lan.rawsocket.access = value
- print(lan.rawsocket.access)
| Raises: |
|
|---|
LanStatus
¶
Bases: BaseTSPCmd
The lan.status command tree.
Properties and methods
.dns: Thelan.status.dnscommand tree..gateway: Thelan.status.gatewayattribute..ipaddress: Thelan.status.ipaddressattribute..macaddress: Thelan.status.macaddressattribute..port: Thelan.status.portcommand tree..speed: Thelan.status.speedattribute..subnetmask: Thelan.status.subnetmaskattribute.
dns
property
¶
dns: LanStatusDns
Return the lan.status.dns command tree.
Sub-properties and sub-methods
.address: Thelan.status.dns.address[N]attribute..name: Thelan.status.dns.nameattribute.
gateway
property
¶
gateway: str
Access the lan.status.gateway attribute.
Description
- This attribute contains the gateway address presently in use by the LAN interface.
Usage
- Accessing this property will send the
print(lan.status.gateway)query.
TSP Syntax
- print(lan.status.gateway)
| Raises: |
|
|---|
ipaddress
property
¶
ipaddress: str
Access the lan.status.ipaddress attribute.
Description
- This attribute contains the LAN IP address presently in use by the LAN interface.
Usage
- Accessing this property will send the
print(lan.status.ipaddress)query.
TSP Syntax
- print(lan.status.ipaddress)
| Raises: |
|
|---|
macaddress
property
¶
macaddress: str
Access the lan.status.macaddress attribute.
Description
- This attribute contains the LAN MAC address.
Usage
- Accessing this property will send the
print(lan.status.macaddress)query.
TSP Syntax
- print(lan.status.macaddress)
| Raises: |
|
|---|
port
property
¶
port: LanStatusPort
Return the lan.status.port command tree.
Info
port, the dST port number.
Sub-properties and sub-methods
.dst: Thelan.status.port.dstattribute..hislip: Thelan.status.port.hislipattribute..rawsocket: Thelan.status.port.rawsocketattribute..telnet: Thelan.status.port.telnetattribute.
speed
property
¶
speed: str
Access the lan.status.speed attribute.
Description
- This attribute contains the LAN speed.
Usage
- Accessing this property will send the
print(lan.status.speed)query.
TSP Syntax
- print(lan.status.speed)
| Raises: |
|
|---|
subnetmask
property
¶
subnetmask: str
Access the lan.status.subnetmask attribute.
Description
- This attribute contains the LAN subnet mask that is presently in use by the LAN interface.
Usage
- Accessing this property will send the
print(lan.status.subnetmask)query.
TSP Syntax
- print(lan.status.subnetmask)
Info
mask, a string specifying the subnet mask in dotted decimal notation.
| Raises: |
|
|---|
LanStatusDns
¶
Bases: BaseTSPCmd
The lan.status.dns command tree.
Properties and methods
.address: Thelan.status.dns.address[N]attribute..name: Thelan.status.dns.nameattribute.
address
property
¶
Access the lan.status.dns.address[N] attribute.
Description
- This attribute contains the DNS server IP addresses.
Usage
- Accessing an item from this property will send the
print(lan.status.dns.address[N])query.
TSP Syntax
- print(lan.status.dns.address[N])
Info
N, the entry index: 1, 2, or 3.
| Raises: |
|
|---|
name
property
¶
name: str
Access the lan.status.dns.name attribute.
Description
- This attribute contains the present DNS fully qualified host name.
Usage
- Accessing this property will send the
print(lan.status.dns.name)query.
TSP Syntax
- print(lan.status.dns.name)
| Raises: |
|
|---|
LanStatusPort
¶
Bases: BaseTSPCmd
The lan.status.port command tree.
Info
port, the dST port number.
Properties and methods
.dst: Thelan.status.port.dstattribute..hislip: Thelan.status.port.hislipattribute..rawsocket: Thelan.status.port.rawsocketattribute..telnet: Thelan.status.port.telnetattribute.
dst
property
¶
dst: str
Access the lan.status.port.dst attribute.
Description
- This attribute contains the LAN dead socket termination (DST) port number.
Usage
- Accessing this property will send the
print(lan.status.port.dst)query.
TSP Syntax
- print(lan.status.port.dst)
Info
port, the dST port number.
| Raises: |
|
|---|
hislip
property
¶
hislip: str
Access the lan.status.port.hislip attribute.
Description
- This attribute contains the HiSLIP connection port number.
Usage
- Accessing this property will send the
print(lan.status.port.hislip)query.
TSP Syntax
- print(lan.status.port.hislip)
Info
port, the hiSLIP port number, 4880.
| Raises: |
|
|---|
rawsocket
property
¶
rawsocket: str
Access the lan.status.port.rawsocket attribute.
Description
- This attribute contains the LAN raw socket connection port number.
Usage
- Accessing this property will send the
print(lan.status.port.rawsocket)query.
TSP Syntax
- print(lan.status.port.rawsocket)
Info
port, the raw socket port number, 5025.
| Raises: |
|
|---|
telnet
property
¶
telnet: str
Access the lan.status.port.telnet attribute.
Description
- This attribute contains the LAN telnet connection port number.
Usage
- Accessing this property will send the
print(lan.status.port.telnet)query.
TSP Syntax
- print(lan.status.port.telnet)
Info
port, the telnet port number.
| Raises: |
|
|---|
LanTelnet
¶
Bases: BaseTSPCmd
The lan.telnet command tree.
Properties and methods
.access: Thelan.telnet.accessattribute.
access
property
writable
¶
access: str
Access the lan.telnet.access attribute.
Description
- This command is used to enable or disable mainframe telnet port communications
Usage
- Accessing this property will send the
print(lan.telnet.access)query. - Setting this property to a value will send the
lan.telnet.access = valuecommand.
TSP Syntax
- lan.telnet.access = value
- print(lan.telnet.access)
| Raises: |
|
|---|