Rev 3 9/21/17
58
41110479
G
G: Quick Reference—Commands in this Guide
The following table contains a list of the commands that are used in this guide with explanations of their purposes.
Table G-1: Commands Used in the Getting Started Guide
Command
Description
app install <update_file> <ip_address>
Install the specified file on the device at <ip_address>.
app start <appname>
Start (run) the specified application
app status
Display the status (running/stopped) of all installed applications.
app stop <appname>
Stop the specified application
cd <directory>
Change directory to the specified <directory>
Note: ’~’ is an alias of the user’s home directory.
cfglegato
This is an ’alias’ that you set up in your ~/.bashrc file. The .bashrc is a
startup script that runs each time a new terminal window is opened. This is
a shortform command to run the longer series of commands needed to go
to the Legato AF directory and set up the environment variables used for
Legato development.
cm
Refer to
http://legato.io/legato-docs/latest/toolsTarget_cm.html
for more details and command options.
cm data
Display current connection status details (information about the current
profile).
cm data apn
Show the APN value currently being used for the SIM card.
cm data apn <APN>
Set the APN value to use for the SIM card.
cm data connect
Start a mobile network data connection.
cm data connect -1
Stop the mobile network data connection.
cm data pdp ipv4
Set the IP addressing method to IPv4.
cm info
Display the module’s model, IMEI, FSN (serial number), and firmware and
bootloader versions.
cm radio
Display the power status of the CF3 module’s radio (ON/OFF).
cm radio on
Power on the CF3 module’s radio.
cm sim info
Display information about the SIM.
echo <parameter>
Display the <parameter> information.
e.g.:
•
echo $?—Display the error code returned by the previous command
(typically, ’0’ indicates the previous command completed successfully
(no errors))
•
echo $LEGATO_ROOT—Display the pathname held in the
LEGATO_ROOT environment variable.
exit
Close the terminal window