Hi,
I’m currently trying to configure a FritzBox to send a “4 VALUE CHANGE” notification to my GenieACS Server.
I found this discussion in your forum:
I’d love to see the GetParameterAttributes and SetParameterAttributes RPCs supported, which would allow us to set passive and active notification on attributes that we wish to be notified of changes to.
This was discussed previously on the mailing list and I believe this was planned for the next major release.
The proposed task structure: https://www.mail-archive.com/users@lists.genieacs.com/msg01595.html
But I’m lost on the exact syntax I have to use in my provision. Do I have to pass a special value in the “timestamp” field of my declare function?
Thanks in advance!
I haven’t tried this yet and I think it is still not documented, but here is the example given by @zaidka
It’s released but unfortunately not yet documented. But here’s how to set the notification attribute of a parameter:
declare("InternetGatewayDevice.SomeParameter", {notification: timestamp}, {value: 1});
Yeah, I tried that but unfortunately the genieacs-cwmp returns this:
2020-12-03T14:25:57.071Z [WARN] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Channel has faulted; channel="inform" retries=0 faultCode="script.ReferenceError" faultMessage="timestamp is not defined"
2020-12-03T14:25:57.072Z [WARN] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Channel has faulted; channel="default" retries=0 faultCode="script.ReferenceError" faultMessage="timestamp is not defined"
2020-12-03T14:25:57.104Z [WARN] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Channel has faulted; channel="default" retries=1 faultCode="script.ReferenceError" faultMessage="timestamp is not defined"
2020-12-03T14:31:41.717Z [INFO] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Inform; cpeRequestId="121" informEvent="6 CONNECTION REQUEST" informRetryCount=0
2020-12-03T14:31:42.225Z [INFO] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: ACS request; acsRequestId="176290412ff0000" acsRequestName="SetParameterValues"
2020-12-03T14:31:42.710Z [WARN] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Channel has faulted; channel="inform" retries=0 faultCode="script.ReferenceError" faultMessage="timestamp is not defined"
2020-12-03T14:31:42.719Z [WARN] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Channel has faulted; channel="default" retries=0 faultCode="script.ReferenceError" faultMessage="timestamp is not defined"
2020-12-03T14:31:42.759Z [WARN] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Channel has faulted; channel="default" retries=1 faultCode="script.ReferenceError" faultMessage="timestamp is not defined"
2020-12-03T14:34:11.670Z [INFO] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Inform; cpeRequestId="122" informEvent="2 PERIODIC" informRetryCount=0
2020-12-03T14:38:31.500Z [INFO] X.X.X.X 00040E-FRITZ%21Box-38XXXXXXXX88: Inform; cpeRequestId="123" informEvent="6 CONNECTION REQUEST" informRetryCount=0
lavira
December 10, 2020, 4:14pm
4
“timestamp is not defined” is self explanatory. You should define it before the declare statement with something like:
let timestamp=Date.now()
I already tried that:
let timestamp = Date.now();
declare("InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID", {notification: timestamp}, {value: 1});
declare("Tags.ChangeNotificationSet", null, {value: true});
This just sets the value of this Parameter to “1”.
Am I missing something or am I just dumb?
Is it only possible to set active/passive changeNotifications on Parameters which contain other Parameters (in my case “InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.”)?
I quite lost, tbh.
lavira
December 11, 2020, 9:53am
6
uh, you mentioned just the timestamp error. Please try with:
declare(“InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID”, {notification: timestamp}, {notification: 1});
1 Like