Genieacs-sim: event code

Dear All …
I use genieacs-sim to test my genieacs server preset.

I put my preset with event = ‘1 BOOT’ in hope that it will ‘called’ everytime a device powered-up.

but that preset looks like never called.

I look at ‘/var/log/genieacs/genieacs-debug.yaml’ , and found that when I start genieacs-sim, the first incoming http have event code ‘2 PERIODIC’

event: incoming HTTP request
timestamp: 2023-03-31T15:17:11.186Z
remoteAddress: "::ffff:192.168.56.1"
deviceId: 202BC1-BM632w-000000
connection: 2023-03-31T15:17:11.186Z
localPort: 7547
method: POST
url: /
headers: 
  content-length: "2069"
  content-type: text/xml; charset="utf-8"
  authorization: Basic OEtBOFdBMTE1MTEwMDA0Mzo=
  host: 192.168.56.102:7547
  connection: keep-alive
body: >-
  <?xml version="1.0" encoding="UTF-8"?>

  <soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID
  soap-env:mustUnderstand="1">3qeg3og4</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:Inform><DeviceId><Manufacturer>Huawei
  Technologies Co.,
  Ltd.</Manufacturer><OUI>202BC1</OUI><ProductClass>BM632w</ProductClass><SerialNumber>000000</SerialNumber></DeviceId><Event
  soap-enc:arrayType="cwmp:EventStruct[1]"><EventStruct><EventCode>2
  PERIODIC</EventCode><CommandKey/></EventStruct></Event><MaxEnvelopes>1</MaxEnvelopes><CurrentTime>2023-03-31T15:17:11.165Z</CurrentTime><RetryCount>0</RetryCount><ParameterList
  soap-enc:arrayType="cwmp:ParameterValueStruct[16]"><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name><Value
  xsi:type="xsd:string">1</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name><Value
  xsi:type="xsd:string">40501</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name><Value
  xsi:type="xsd:string">V100R001IRQC56B017</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name><Value
  xsi:type="xsd:string"/></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name><Value
  xsi:type="xsd:string"/></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name><Value
  xsi:type="xsd:string">http://192.168.56.1:33549/</Value></ParameterValueStruct><ParameterValueStruct><Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress</Name><Value
  xsi:type="xsd:string">172.3.89.139</Value></ParameterValueStruct></ParameterList></cwmp:Inform></soap-env:Body></soap-env:Envelope>

is there any way to make genieacs-sim to also send event code ‘1 BOOT’ ?

1 Like