mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
klinfix: add new commands uptime, version, and netcalc
Preparing for a "show system-information" as well, which still needs to be discussed to determine contents. Some data also still missing, e.g., article/serial/product number db. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
committed by
Tobias Waldekranz
parent
883d59709e
commit
987ec779d3
@@ -267,6 +267,18 @@
|
||||
</ACTION>
|
||||
</COMMAND>
|
||||
|
||||
<COMMAND name="uptime" help="Show system uptime">
|
||||
<ACTION sym="script">uptime</ACTION>
|
||||
</COMMAND>
|
||||
<!-- TODO hostname, contact, location, base MAC, serial n:o, etc.
|
||||
<COMMAND name="system-information" help="Show system information">
|
||||
<ACTION sym="script">sysinfo</ACTION>
|
||||
</COMMAND>
|
||||
-->
|
||||
<COMMAND name="version" help="Show firmware version">
|
||||
<ACTION sym="script">uptime</ACTION>
|
||||
</COMMAND>
|
||||
|
||||
<COMMAND name="factory-config" help="Show factory-config">
|
||||
<ACTION sym="script">cat /cfg/factory-config.cfg | jq .</ACTION>
|
||||
</COMMAND>
|
||||
@@ -290,6 +302,12 @@
|
||||
</ACTION>
|
||||
</COMMAND>
|
||||
|
||||
<COMMAND name="netcalc" help="IP subnet calculator">
|
||||
<PARAM name="addrlen" ptype="/STRING" help="ADDRESS[/LEN]"/>
|
||||
<PARAM name="netmask" ptype="/STRING" min="0" help="Optional NETMASK"/>
|
||||
<ACTION sym="script">netcalc $KLISH_PARAM_addrlen $KLISH_PARAM_netmask</ACTION>
|
||||
</COMMAND>
|
||||
|
||||
<COMMAND name="ping" help="Ping a network host or multicast group">
|
||||
<SWITCH name="optional" min="0">
|
||||
<COMMAND name="interface" help="Bypass routing table and use this interface">
|
||||
|
||||
Reference in New Issue
Block a user