7. LW3 Programmers' Reference
7.4.11. Running a Macro
DIFFERENCE:
This command is available from firmware v1.6.0b19.
DEFINITION:
Macro is a batch of pre-defined commands stored in the device.
You can create your custom macros in a file, upload them to the device and run at any time. The uploading
can be done over LDC, see the
Macros
macro.
Command and Response
ç CALL·/CTRL/MACROS:run(<macro_name>)
æ mO·/CTRL/MACROS:run
Example
ç CALL /CTRL/MACROS:run(Macro1)
æ mO /CTRL/MACROS:run
7.5. Cleartext Login Protection
DIFFERENCE:
This feature and commands below are available from firmware v1.6.0b19.
This cleartext login tool allows setting a password for login, thus any change in the device can be performed
only after a successful login – coming from any control interface (RS-232, Ethernet, etc...). The login is valid
until a TCP socket break in case of Ethernet connection.
INFO:
The login password is erased and the login is disabled when restoring the factory default values.
The following can be queried without login:
▪
ProductName
▪
PartNumber
▪
SerialNumber
▪
FirmwareVersion
▪
PackageVersion
▪
MacAddress
7.5.1. Setting the Login Password
Command and Response
ç CALL·/LOGIN:setPassword(<password>)
æ mO·/LOGIN:setPassword
Example
ç CALL /LOGIN:setPassword(pr0t3ctED)
æ mO /LOGIN:setPassword
#macro
section. The following LW3 command is suitable only for running a
#login
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
MMX4x2 series – User's Manual
7.5.2. Logging Into the Device
Command and Response
ç CALL·/LOGIN:login(<password>)
æ mO·/LOGIN:login
Example
ç CALL /LOGIN:login(pr0t3ctED)
æ mO /LOGIN:login
After a successful login, the LoggedIn property becomes true and the LW3 tree is available.
7.5.3. Logging Out of the Device
Command and Response
ç CALL·/LOGIN:logout(<password>)
æ mO·/LOGIN:logout
Example
ç CALL /LOGIN:logout(pr0t3ctED)
æ mO /LOGIN:logout
After a successful logout, the LoggedIn property becomes false and the LW3 tree is protected.
7.5.4. Enabling/Disabling the Cleartext Login Function
ATTENTION!
This property can be changed only if the LoggedIn property is true.
Command and Response
SET·/LOGIN:LoginEnable=<login_state>
ç
pw·/LOGIN.LoginEnable=<login_state>
æ
Parameters
If the
<login_state>
parameter is true (or 1), the Cleartext login function is enabled, if the parameter is false (or
0), the function is disabled. Please note that the function can be enabled without setting a password by the
setPassword method.
Example
ç SET /LOGIN.LoginEnable=true
æ pw /LOGIN.LoginEnable=true
88
Need help?
Do you have a question about the MMX4x2 Series and is the answer not in the manual?