...
5.2 Useful CLI Commands
...
With the manager connected to your computer via USB:
- Just like with the mote, identify the correct serial port name and connect to the CLI with a serial terminal of your choice (again, see Table 1 for configuration details).
Unlike the mote, you will first have to login to have access to the commands we want:
- You now have access to a wide range of commands, where the most interesting ones are shown below.
Anchor |
---|
| sec_managerCLIcommands |
---|
| sec_managerCLIcommands |
---|
|
Panel |
---|
|
sm: Displays information about the motes in the network. The manager itself will always be the first one listed (with MoteID 1) Code Block |
---|
language | text |
---|
title | Show Motes |
---|
| > sm
MAC MoteId State Nbrs Links Joins Age StateTime
00-17-0D-00-00-60-39-35 1 Oper 1 21 1 0 4-05:25:14
00-17-0D-00-00-58-63-C1 2 Oper 1 9 49 4 0-00:28:39 |
trace motest on: Turns on a trace which shows mote state transitions as they connect to or drop from the network. Code Block |
---|
language | text |
---|
title | Trace Mote States On |
---|
| > trace motest on
> 103190771 : Mote #2 State: Lost -> Negot1
> 103192421 : Mote #2 State: Negot1 -> Negot2
> 103195937 : Mote #2 State: Negot2 -> Conn1
> 103197989 : Mote #2 State: Conn1 -> Conn2
> 103202092 : Mote #2 State: Conn2 -> Oper |
set config <param>=<value>: Set a configuration parameter in the Manager. This change is persistent, but only takes affect after a reboot. Code Block |
---|
language | text |
---|
title | Set Configuration Parameter: Network ID |
---|
| > set config netid=1229 |
show config: Show the persistent configuration parameters Code Block |
---|
language | text |
---|
title | Show Configuration |
---|
| > show config
netid = 1229
txpower = 8
frprofile = 1
maxmotes = 33
basebw = 9000
dnfr_mult = 1
numparents = 2
cca = 0
channellist = 00:00:7f:ff
autostart = 1
locmode = 0
bbmode = 0
bbsize = 1
license = 00:00:00:00:00:00:00:00:00:00:00:00:00
ip6prefix = fe:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00
ip6mask = ff:ff:ff:ff:ff:ff:ff:ff:00:00:00:00:00:00:00:00
radiotest = 0
bwmult = 300
onechannel = 255 |
set acl mac=<macAddr> key=<joinKey>: Add an Access Control List entry for the given MAC address and mote specific join key. This change is persistent, but only takes affect after a reboot. Code Block |
---|
language | text |
---|
title | Add ACL Entry |
---|
| > set acl mac=01-23-45-67-89-AB-CD-EF key=000102030405060708090A0B0C0D0E0F
Set OK |
show acl: Show the motes currently whitelisted on the manager Access Control List. Code Block |
---|
language | text |
---|
title | Show ACL |
---|
| > show acl
ACL:
MAC: 01-23-45-67-89-AB-CD-EF
---- |
delete acl <macAddress | all>: Remove all entries in the Access Control List or the one specified by the given MAC address. Code Block |
---|
language | text |
---|
title | Delete ACL Entry |
---|
| > delete acl all
Delete all ACL records |
reset system: Software reset (reboot) of the manager. Code Block |
---|
language | text |
---|
title | Reset Manager |
---|
| > reset system
Reset initiating. Please wait
> Disconnecting; 1
70978 : Lost
71702 : Lost
72425 : Lost
73148 : Lost
73871 : Lost
74594 : Lost
75318 : Lost
SmartMesh IP Manager ver 1.2.4.1. (x100)
829 : **** AP connected. Network started |
|