Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-128 2601B-PULSE-901-01A April 2020
lan.status.subnetmask
This attribute contains the LAN subnet mask that is presently in use by the LAN interface.
Usage
mask = lan.status.subnetmask
A string specifying the subnet mask in dotted decimal notation
Details
Use this attribute to determine the present operating state of the LAN. This attribute will return the
present LAN subnet mask value if the LAN is manually configured, or when DLLA or DHCP is used.
Example
print(lan.status.subnetmask)
Outputs the subnet mask of the instrument that is presently in
use, such as:
255.255.255.0
Also see
lan.config.subnetmask (on page 11-118)
lan.timedwait
This attribute contains the LAN timed-wait state interval.
Usage
timeout = lan.timedwait
lan.timedwait = timeout
The LAN timed-wait state interval in seconds
Details
This attribute controls the amount of time that resources are allocated to closed TCP connections.
When a TCP connection is closed, the connection is put in a timed-wait state and resources remain
allocated for the connection until the timed-wait state ends. During the timed-wait interval, the
instrument processes delayed packets that arrive after the connection is closed.
Use this attribute to tailor the timed-wait state interval for the instrument.
Example
Set the amount of time resources are allocated to TCP
connection to 30 s.
Also see
lan.restoredefaults() (on page 11-121)