This subsection describes using LWSCOM to list, export and import LWS Services. This can be useful when Services need to be copied from one filesystem to another.
Listing Services
The LWSCOM INFO command is used to retrieve information about the Services in a filesystem. This can be done for both the source and target filesystems.
LWSCOM 2-> help info service
INFO SERVICE Command
Displays information about SERVICEs in the filesystem
INFO SERVICE { <service-name> | * }
[ , DETAIL ]
{ <service-name> | * }
The name of the SERVICE, or '*' for all SERVICEs.
DETAIL
Causes detailed information to be displayed. The use of this parameter is
object-specific.
For example:
LWSCOM 1-> info service *
Name Description
---------------------------------------------------------------- -----------------------------------------------------------------
lw-test-suite-io.example-service.v1 An example service.
lw-test-suite-io.example.another-service.v1 Another example service.
--- 2 SERVICEs
LWSCOM 2-> info service lw-test-suite-io.example-service.v1, detail
Name..................... lw-test-suite-io.example-service.v1
Description.............. An example service.
Version.................. 1.0
API...................... com.example.demo.api
Access Control........... allow-any-authenticated-user
TCP/IP Ports.............
Enabled.................. true
Diagnostic Logging....... not enabled
Deployed................. 2026-11-09T17:26:41Z
Modified................. 2026-11-09T16:58:33Z
Exporting Services
The syntax for the LWSCOM EXPORT SERVICE command is:
LWSCOM 3-> help export service
EXPORT SERVICE Command
Exports a SERVICE from the fileystem into a file
EXPORT SERVICE <service-name>
, FILE <file-name> [ ! ]
<service-name>
The name of the SERVICE.
FILE <file-name> [ ! ]
File to receive exported SERVICE definition.
For example:
LWSCOM 7-> export service lw-test-suite-io.example-service.v1, file mysvc !
SERVICE lw-test-suite-io.example-service.v1 exported to $DATA.LWSEXPO.MYSVC
The MYSVC file can then be used for a LWSCOM IMPORT command.
Importing Services
The syntax for the LWSCOM IMPORT SERVICE command is:
LWSCOM 6-> help import service
IMPORT SERVICE Command
Imports an SERVICE into the filesystem from a file
IMPORT SERVICE { <service-name> | * } [ ! ]
, FILE <file-name>
{ <service-name> | * } [ ! ]
The name to be used for the imported SERVICE, or '*' to use the SERVICE name
contained in the file being imported.
FILE <file-name>
File containing the SERVICE definition to be imported.
When importing a Service, you can use the name stored in the Service file (i.e., specify “*” for the intended Service name) or you can give it a different name. Specify the exclamation point to replace an existing Service by that name.
For example:
LWSCOM 7-> import service *, file mysvc !
SERVICE lw-test-suite-io.example-service.v1 imported