help [command]
Display general help, or details for a specific command.
help_advanced
Display the help for more advanced commands, mainly used for debugging.
ping [-4] [-6] [-c count] [-i interval] [-n] [-s packetsize] [-W waittime]
Send ICMP ECHO_REQUEST packets to a network host. If is "gw"
then the next hop gateway for the default route is used.
Default is to use IPv4 [-4] rather than IPv6 [-6] addresses.
autest [–scheduled]
Trigger an auto-update against a test update server.
WARNING: This may update to an untested version of ChromeOS which was never
intended for end users!
The –scheduled option fakes a scheduled update.
battery_firmware
info : Query battery info.
battery_test []
Tests battery discharge rate for given number of seconds. Without an argument,
defaults to 300 seconds.
bt_console
Enters a Bluetooth debugging console.
chaps_debug [start|stop|]
Sets the chapsd logging level. No arguments will start verbose logging.
connectivity
Shows connectivity status. ‘connectivity help’ for more details
cras [ enable | disable | telephony [arg] ]
Interact with CRAS(CrOS Audio Server) to set flags or trigger events.
Subcommands:
enable/disable :
Enable or disable feature flag inside CRAS.
Available flags:
wbs: Turn on this flag to make CRAS try to use wideband speech mode in
Bluetooth HFP, if both the Bluetooth controller and peripheral supports
this feature.
noise_cancellation: Turn on this flag to enable noise cancellation
processing to input devices who support noise cancellation.
Notice: The flag changes made through this command do not persist after
reboot.
telephony [args...]:
Trigger a telephony event pass to CRAS in Bluetooth HFP.
Available events:
- IncomingCall <PhoneNumber>: Make a call from external line.
Ex: $ cras telephony IncomingCall 12345678
- AnswerCall: Answer the call.
- TerminateCall: Terminate the call.
- SetDialNumber [DailNumber]: Set the last dialed number recorded. Clear
the recorded number if no DailNumber is provided.
- SetBatteryLevel <BatteryLevel>: Set and transfer the battery level to
HF. The BatteryLevel should range from 0 to 5.
- SetSignalStrength <SignalStrength>: Set and transfer the signal strength
to HF. The SignalStrength should range from 0 to 5.
- SetServiceAvailability <0/1>: Set if the service is available or not.
- SetCallheld <CallHeldIndicator>: Set the callheld indicator.
CallHeldIndicator:
0 = No calls held
1 = Call is placed on hold or active/held calls swapped
(The AG has both an active AND a held call)
2 = Call on hold, no active call
- SetCallsetup <CallSetupIndicator>: Set the callsetup indicator.
CallSetupIndicator:
0 = No call setup in progress
1 = Incoming call setup in progress
2 = Outgoing call setup in dialing state
3 = Outgoing call setup in alerting state
- SetCall <CallIndicator>: Set the call indicator.
CallIndicator:
0 = No call (held or active)
1 = Call is present (active or held)
diag
Usage: [list|routine]
display_debug
A tool to assist with collecting logs when reproducing display related issues.
Subcommands:
trace_start Usage: display_debug trace_start
Increase size and verbosity of logging through drm_trace.
trace_stop Usage: display_debug trace_stop
Reset size and verbosity of logging through drm_trace to defaults.
trace_annotate Usage: display_debug trace_annotate
Append |message| to the drm_trace log.
diagnose Usage: display_debug diagnose
Give a sequence of steps to assist in debugging display issues.
dlc_install
Trigger a DLC installation against a **test** update server.
The test update server will serve signed DLC payloads which will only
successfully install if signed and verifiable. Otherwise, installations will
fail. The magical string ‘autest’ is passed into update_engine during this
installation, which will make requests against QA Omaha server and not the
production Omaha server.
WARNING: This may install an untested version of the DLC which was never
intended for end users!
dlc_list
List the supported DLC(s)
Usage: dmesg [options]
-d, –show_delta
Display the timestamp and the time delta
spent between messages
-H, –human
Enable human-readable output.
-k, –kernel
Print kernel messages.
-L, –color
Colorize the output.
-p, –force-prefix
Add facility, level or timestamp
information to each line of a multi-line message.
-r, –raw
Print the raw message buffer.
-T, –ctime
Print human-readable timestamps.
-t, –notime
Do not print kernel’s timestamps.
-u, –userspace
Print userspace messages.
-x, –decode
Decode facility and level (priority) numbers
to human-readable prefixes.
ff_debug adds and removes debug tags for flimflam.
Current debug settings are displayed if no parameters are provided
is defined in boolean notation using separated
by an operator [+-], where + and - imply adding and removing of the tag immediately
following the operator. An expression beginning with either operators [+-]
takes the existing tags and modifies them appropriately. Otherwise, the existing tags
are replaced by those specified in the command.
can be listed using the --list_valid_tags
e.g.: ff_debug network+wifi
Sets debug tags to network and wifi
e.g.: ff_debug +network-service
Adds network and removes service tags from the existing debug settings
--list_valid_tags : Displays all valid tags
--level : Displays or sets current debug level for logging
All messages at, or above, the current log level are logged. Normal log
levels range from 4 (LOG_FATAL) to 0 (LOG_INFO). In addition VERBOSE log
levels are available starting at -1.
e.g.: ff_debug --level 4
Logs only FATAL messages.
e.g.: ff_debug --level 0
Logs INFO, WARNING, ERROR, ERROR_REPORT, and FATAL messages.
e.g.: ff_debug --level -4
Logs everything that "--level 0" does, plus SLOG(, ) messages,
where has been enabled for logging, and <= 4. (NOTE: you must
negate SLOG levels for use with ff_debug. In this example, SLOG(, 4)
maps to "--level -4".)
--reset : Removes all tagging and persistent debug configuration (if any) and
restores default log level
--persist : Stores the current debug configuration so that it is
reused after restart.
--help : Displays this output
* force_activate_fips
Force activate FIPS mode for the built-in security key.
* free [options]
Display free/used memory info.
* generate_firmware_dump <all|wifi>
Generate firmware dump for the given type.
* gesture_prop [ devices | list | get | set ]
Read and change gesture properties for attached input devices. The "Enable
gesture properties D-Bus service" flag must be enabled for this command to
work.
For more details, see:
https://chromium.googlesource.com/chromiumos/platform/gestures/+/HEAD/docs/gesture_properties.md
### Subcommands:
- devices, devs:
List the devices managed by the gestures library, with their numeric IDs.
- list :
List the properties for the device with the given ID.
- get :
Get the current value of a property. Property names containing spaces
should be quoted. For example:
$ gesture_prop get 12 "Mouse CPI"
- set :
Set the value of a property. Values use the same syntax as dbus-send
(https://dbus.freedesktop.org/doc/dbus-send.1.html#description), and
should either be arrays or strings. For example:
$ gesture_prop set 12 "Mouse CPI" array:double:500
$ gesture_prop set 12 "Log Path" string:/tmp/foo.txt
* ipaddrs [-4] [-6]
Display IP addresses.
-4: Only show IPv4 addresses.
-6: Only show IPv6 addresses.
* meminfo
Display detailed memory statistics.
* memory_test
Performs extensive memory testing on the available free memory.
* modem [args...]
Interact with the 3G modem. Run "modem help" for detailed help.
* p2p_update [enable|disable] [--num-connections] [--show-peers]
Enables or disables the peer-to-peer (P2P) sharing of updates over the local
network. This will both attempt to get updates from other peers in the
network and share the downloaded updates with them. Run this command without
arguments to see the current state. Additional switches will display number
of connections and P2P peers.
Usage: packet_capture [options]
--device
--max-size
--frequency
--ht-location <above|below>
--vht-width <80|160>
--monitor-connection-on
</pre>
Start packet capture. Start a device-based capture on ,
or do an over-the-air capture on with an optionally
provided HT channel location or VHT channel width. An over-the-air
capture can also be initiated using the channel parameters of a
currently connected . Note that over-the-air
captures are not available with all 802.11 devices. Set
to stop the packet capture if the output .pcap file size exceedes this
limit. Only device-based capture options (--device and --max-size) are
available in verified mode. Switch to developer mode to use other
options.
* printscan_debug
A tool to assist with collecting logs when reproducing printing and scanning related issues.
Subcommands:
start Usage: printscan_debug start [all|scanning|printing]
Start collecting printscan debug logs.
stop Usage: printscan_debug stop
Stop collecting printscan debug logs.
* rlz < status | enable | disable >
Enable or disable RLZ. See this site for details:
http://dev.chromium.org/developers/design-documents/extensions/proposed-changes/apis-under-development/rlz-api
* rollback
Attempt to rollback to the previous update cached on your system. Only
available on non-stable channels and non-enterprise enrolled devices.
Please note that this will powerwash your device.
* route [-4] [-6] [--all]
Display the network routing tables.
https://en.wikipedia.org/wiki/Routing_table
-4: Only show IPv4 routes.
-6: Only show IPv6 routes.
--all: Show all routing tables.
* help: unknown command 'set_apn'
* set_arpgw <true | false>
Turn on extra network state checking to make sure the default gateway
is reachable.
https://en.wikipedia.org/wiki/Default_gateway
* set_time