Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleController log
root@Filogic-GW:/usr/ccsp/EasyMesh# onewifi_em_ctrl bpi@root
connect:169: user:bpi pass:root
load_tables:1558: data base empty ... needs reset
init:1958: Load operation failed, err: dm_orch_type_unknown
data_model_init:541: data model init failed
mgr_input_listen:290 Thread stack size = 8388608 bytes 
execute:56: Controller communication path: /tmp/onewifi_mesh_ctrl
mgr_nodes_listen:422 Thread stack size = 8388608 bytes 


10. To reset database, start Start onewifi_em_cli (CLI) in a new tab.

Reset database like below. 

Panel
borderColorblack
borderStyledashed
titleonewifi_em_cli bpi

/usr/ccsp/EasyMesh# onewifi_em_cli bpi


→ In the cli use "Tab" to move between Update, Apply and Cancel button in the cli, use keys "j" and "k" to scroll up and down
→ Select "Wifi Reset" and then select Update to update the window.
→ In the CollocatedAgentID update the Mac address of the brlan0(a2:f0:d1:69:f5:ae) which needs to be treated as AL MAC..
→ Select Apply to reset the database.

CLI screenshots given below.
Image RemovedImage RemovedImage Removed
Change colocatedAgentID mac addr to interface Change colocatedAgentID with brlan0 MAC address which needs to be treated as AL MAC
Image Removed

CLI screenshots given below.
Image AddedImage Added
Image Added

Image Added
Image Modified

11. Once AL MAC is set with brlan0 MAC address, check the ctrl prompt whether for database reset happened
Observe outputs deleting all datamodels and database insert to verify successful reset
Sample response in ctrl: 
Image Removed
Response in database: Respective rows will be updated in db
Image Removed

  Run local Agent with below cmd, (this step is not mandatory)

  systemctl start em_agent 

  Logs will be available in /tmp/em_agent.log

Note - Initially, Agent and ctrl process are not sync .  Need to do restart the em process for 1st time alone .

systemctl restart em_ctrl

systemctl restart em_agent 

...

.
Sample log from EM-Controller

Code Block
languagebash
root@Filogic-GW:/usr/ccsp/EasyMesh# onewifi_em_ctrl bpi@root
connect:169: user:bpi pass:root
load_tables:1558: data base empty ... needs reset
init:1958: Load operation failed, err: dm_orch_type_unknown
data_model_init:541: data model init failed
mgr_input_listen:290 Thread stack size = 8388608 bytes 
execute:56: Controller communication path: /tmp/onewifi_mesh_ctrl
mgr_nodes_listen:422 Thread stack size = 8388608 bytes 
pre_process_orch_op:342: Deleting all data models
dm_network_list_t:update_db:167: Operation: dm_orch_type_db_insert
create_data_model:1502: Created data model for net_id: OneWifiMesh mac: a2:f0:d1:69:f5:ae, coloc:1
create_data_model:1522: Number of policies: 6
create_data_model:1539: Putting data model at key: OneWifiMesh@a2:f0:d1:69:f5:ae
start_complete:847 Collocated agent ID: a2:f0:d1:69:f5:ae publish  fail
init_network_topology:1925: Root: a2:f0:d1:69:f5:ae  added to network topology
update_tables:1721: Op Class[0] ruid: a2:f0:d1:69:f5:ae	Type: 7	Class: 81
update_tables:1721: Op Class[1] ruid: a2:f0:d1:69:f5:ae	Type: 7	Class: 115
update_tables:1721: Op Class[2] ruid: a2:f0:d1:69:f5:ae	Type: 7	Class: 135
update_tables:1721: Op Class[3] ruid: a2:f0:d1:69:f5:ae	Type: 8	Class: 81
update_tables:1721: Op Class[4] ruid: a2:f0:d1:69:f5:ae	Type: 8	Class: 115
update_tables:1721: Op Class[5] ruid: a2:f0:d1:69:f5:ae	Type: 8	Class: 135
analyze_config_renew:98: Radio: 00:00:00:00:00:00
../../../git/src/ctrl/../../src/dm/dm_network_ssid.cpp:205:85: runtime error: load of value 50462976, which is not a valid value for type 'em_haul_type_t'
../../../git/src/ctrl/../../src/dm/dm_network_ssid.cpp:200:71: runtime error: load of value 48, which is not a valid value for type 'bool'


Screenshot from database: Respective rows are updated in db
Image Added


12. Run local Agent manually with below command in new tab.

Code Block
languagebash
cd /usr/ccsp/EasyMesh/
onewifi_em_agent

Workaround: Initially, EM-Agent and EM-Contrller processes will not be in sync .  Need to do restart the both EM-Agent and EM-Controller processes for 1st time alone.

Code Block
languagebash
killall onewifi_em_agent
killall onewifi_em_ctrl

Re-run EM-Controller in controller tab.

Re-run EM-Agent in Agent tab.

Observation in EM-Contrller device side:  

  • All configured VAPs should be UP and Running
  • VAPs should be broadcasting EasyMesh default SSIDs(eg, private_ssid, mesh_backhaul)

Remote Agent 1 

Prerequisites - One Time Process

...