CLI Power Tools
Last updated
Was this helpful?
Last updated
Was this helpful?
WLAN Pi OS comes with a collection of pre-installed CLI tools developed by the WLAN Pi team. Let's get familiar with them. They will be handy when it comes to real troubleshooting later in this lab.
Checks internet connectivity, DNS translation, latency to gateway, browses to Google home page, and requests ARP entry for default gateway.
Same as many of the other tools, Reachability is also available in the front panel menu:
if connected to the internet, it displays your public IP address and autonomous system
If connected to an IPv6 environment, try public6
:
ipconfig
is a command provided by a WLAN Pi tool which shows complete IP configuration of eth0 Ethernet interface. It is a useful tool for DHCP server verification, current VLAN, etc.
Tests internet connection speed against Speedtest.net servers.
Display neighbor details of using LLDP: This command may take up to 30 seconds to produce output.
Display neighbor details using CDP: This command may take up to 60 seconds to produce output.
Aruba switches do not support Tx of CDP frames.
When connected to an Aruba switch, the WLAN Pi will not pick up any CDP neighbors.
If both CDP and LLDP are disabled on your network, or your switch is a non-managed one, we can still identity the switch port number that our WLAN Pi is connected to. Port Blinker repeatedly bounces WLAN Pi's Ethernet interface up and down. This allows you to eyeball the switch port number by spotting the switch port status LED that goes up and down repeatedly.
To start Port Blinker from the front panel menu, navigate toMenu > Utils > Port Blinker
.
If eth0 is your only way to connect to your WLAN Pi (it is in this lab), enabling Port Blinker using CLI will disrupt the connection between your Pi, and your device.
It is also available from CLI:
wlanpi-stats
shows current CPU load and temperature, memory and storage utilisation, mode, WLAN Pi OS image version, and much more.
Shows current WLAN Pi Mode:
Shows hardware platform and installed Wi-Fi adapter(s):
Shows RF regulatory domain:
Sets RF regulatory domain to US (FCC) and reboots the Pi to apply changes:
Shows time and time zone, and sets new time zone:
Updates only WLAN Pi packages without upgrading any other packages:
Where are these scripts actually located? Let's take our ipconfig
tool as an example
Don't confuse ipconfig
with ifconfig
from net-tools
! ipconfig
is a WLAN Pi script.
Type wlanpi-
followed by <TAB> <TAB> to see all commands that start with the prefix wlanpi
.