17 PLC shell commands
17.2 List of PLC shell commands (updated)
158 Modular PLCs XControl: XC-104-…, XC-204-…, XC-303-… 01/23 MN050005EN Eaton.com
17.2 List of PLC shell commands (updated)
The following PLC shell commands are available.
Table 14 PLC shell commands in alphabetical order
Attribute ID
Description
? Get a list of implemented commends
applist Print List of currently loaded applications.
caninfo Display CAN Controller Informationen
canload <arg> Display of the loading of the CAN fieldbus
<arg>
<none> show CAN-Bus load.
<reset> reset CAN-Bus load statistics.
canshow
2)
<arg> Shows CAN controller statistics
<1>; <2>; <none> for both controllers
canshowReset
2)
<arg> Resets CAN controller statistics
<1>; <2>; <none> for both controllers
cert-createcsr
2)
[<number in search result with
"cert-getapplist">]
Generates CSR files for all applications.
cert-export
2)
<trust level> Exports the specified certificate [<number in search result with "cert-getcertlist">]
cert-getapplist Shows all registered certificates being used (ID of component and use)
Display all registered applied certificates (Component ID and application)
cert-getcertlist
2)
[<trust level>] Lists all certificates with the specified trust level.
If you do not specify a trust level, all certificates will be listed.
Available trust levels
• untrusted: Untrusted certificates
• trusted: Trusted certificates
• own: The PLC's certificates
• quarantine: Certificates with a trust level (trusted / untrusted) that could not be clarified with a
validation. This will result in incoming connections being rejected.
cert-genselfsigned
[<number retrieved by "cert-getapplist">
<expdays=>]
Generates self-signed certificates; you can use expdays= to specify the certificate's validity period
Standard value: 365 days
Generate all self signed certificates
cert-gendhparams [len in bits]
Generates the parameters for the Diffie-Hellman key exchange
Important: This operation can take several minutes!
Generate parameters needed for Diffie-Hellman key exchange. Attention may run several minutes!
cert-import
2)
<trust level> <Dateiname.cer>) Imports the specified certificate.
cert-remove
2)
<trust level> <number in search
result with "cert-getcertlist" or "all">
Removes the specified certificates.
channelinfo
Return communication channel information.
clearsram
2)
<segment number> Initializes and flags the SRAM segment or the whole SRAM as free.
The segment number can be retrieved with the following shell commands:
"getsramlayout" or "all“:
copyprojtosd
Copy the (boot) project onto a Multi Media Card (incl. directory structure/project directory)
copyprojtousb
1)
Copy the (boot) project onto the USB drive (incl. directory structure/project directory)
getcmdlist Used internally to display all available commands.
getdhcpstate
2)
Returns the status of the Ethernet interface(s) in regard to whether DHCP is enabled
Example: eth0 : DHCP Enabled = NO
gethwinfo
Show hardware information