CLI REST-API
show
show [log]
The "show" command allows to show system states.
Some sub commands allow to specify a filter string which will filter the output.
Examples:
"show syslog ntp" will only print syslog entries containing the
string "ntp".
"show linkstate lan6" will only print the link state of port lan6.
The following states can be showed:
"show cpuload"
shows the current cpu-usage
"show devices"
shows the system components, i.e. installed modules and hardware inventory data
"show ip [filterstring]"
shows active network interfaces and can be filtered using more arguments
"show lantimelog [filterstring]"
shows the status log of the LANTIME
"show linkstate [filterstring]"
shows the current LINK state of installed physical network ports
"show lldp [filterstring]"
shows neighboring nodes detected by link discovery
"show memory"
shows the current memory-usage
"show moduleinfo"
shows the module-info from all available modules
"show modules"
shows loaded drivers and other kernel modules
"show mrs"
shows the mrs-table
"show network [filterstring]"
shows the current network status
"show ntp-conf-file"
shows the ntp-configuration file
"show power"
shows the power-status
"show processes [filterstring]"
shows a list of all running processes
"show route"
shows the routing table entries
"show syslog [filterstring]"
shows system log entries
"show updatestatus"
shows the update progress while the LANTIME is updating
"show version [-v]"
shows the software versions, -v additionally lists all package versions
If you want to print out a specific state continously, please see the
"monitor" command.
RESTAPI: The data can be passed in the body like this:
{
"parameters": {
"log": "version"
}
}
Name | Value | Description | Example |
---|
| log | | version |
See also:
show-alarms: lists all currently active alarms.
monitor: monitor system states.
REST-API Support:
This command is supported by the REST API:
Method: PUT
URL: /api/show
Body:
{
"parameters": {
"log": [log]
}
}
Example using curl:
curl -X PUT /api/show -d
"{
\"parameters\": {
\"log\": \"version\"
}
}"