Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-137
lan.config.ipaddress
Attribute
Configures LAN IP address.
Usage
To read the LAN IP address:
ipaddress = lan.config.ipaddress
To write the LAN IP address:
lan.config.ipaddress = ipaddress
ipaddress:
LAN IP address.
Remarks
This attribute specifies the LAN IP address to use when the manual configuration
method is used to configure the LAN. This setting is ignored when DLLA or DHCP is
used.
NOTE This attribute does not indicate the actual setting currently in effect. Use the
lan.status attributes to determine the current operating state of the LAN.
ipaddress must be a string specifying the IP address in dotted decimal
notation.
Also see
lan.status.ipaddress
(on page 9-140)
Example
To display the presently set LAN IP address:
ipaddress = lan.config.ipaddress
lan.config.method
Attribute
Controls LAN settings configuration method.
Usage
To read the method used:
method = lan.config.method
To write the method:
lan.config.method = method
method:
LAN settings configuration method. It can be one of the following values:
lan.AUTO or 1: Selects automatic sequencing of configuration methods.
lan.MANUAL or 0: Use only manually specified configuration settings.
Remarks
This attribute controls how the LAN IP address, subnet mask, default gateway
address, and DNS server addresses are determined.
When method is lan.AUTO, the instrument will first attempt to configure the LAN
settings via Dynamic Host Configuration Protocol (DHCP). If DHCP fails, it will try
Dynamic Link Local Addressing (DLLA). If DLLA fails, it will use the manually specified
settings.
When method is lan.MANUAL, only the manually specified settings will be used.
Neither DHCP nor DLLA will be attempted.
Example
To display the current method:
print(lan.config.method)