How get files, model and version in provision

Hi!
How I can get model and version firmware at device?
How I can get availible files?

Hi,

You can get model and version by params, like:

DeviceID.ProductClass
InternetGatewayDevice.DeviceInfo.ModemFirmwareVersion

With “available files” you mean the files that you upload to genie?

Yes, filse that I upload on server

And it’s not work, how need used this?

let deviceID = DeviceID.ProductClass;
let firmwareVersion = 'InternetGatewayDevice.DeviceInfo.ModemFirmwareVersion';
log("firmwareVersion: " + firmwareVersion);
log("firmwareVersion: " + firmwareVersion);

To get value you need to use declare().

let firmwareVersion = declare('InternetGatewayDevice.DeviceInfo.ModemFirmwareVersion', { value: 1 }).value[0]
log("firmwareVersion: " + firmwareVersion);

It’s provision not work at my server

log("test log testLoadFile5");
let firmwareVersion = declare('InternetGatewayDevice.DeviceInfo.ModemFirmwareVersion', { value: 1 }).value[0]
log("firmwareVersion: " + firmwareVersion);

That’s the param to get from a Huawei CPE, your param can be another… It’s just an example.
Probably you need to include mode information about what’s going wrong to someone help you…

It’s my device. In this server no standarts function for find device parameters?
image

To find a parameter you can search in GenieACS UI, but it’s better get the data model and search there

Need to add a model for the device?

Mikael, I suggest you read tr069 and GenieACS documentation.

1 Like

It’s work, but how get filename?

let ID = declare('DeviceID.ID', { value: 1 }).value[0]
log("ID: " + ID);
let SerialNumber = declare('DeviceID.SerialNumber', { value: 1 }).value[0]
log("SerialNumber: " + SerialNumber);
let ProductClass = declare('DeviceID.ProductClass', { value: 1 }).value[0]
log("ProductClass: " + ProductClass);
let OUI = declare('DeviceID.OUI', { value: 1 }).value[0]
log("OUI: " + OUI);
let Manufacturer = declare('DeviceID.Manufacturer', { value: 1 }).value[0]
log("Manufacturer: " + Manufacturer);
declare(“Downloads.[FileType:3 Vendor Configuration File]”, {path: 1}, {path: 1});
declare(“Downloads.[FileType:3 Vendor Configuration File].FileName”, {value: 1}, {value: “yourFile.xml”});
declare(“Downloads.[FileType:3 Vendor Configuration File].Download”, {value: 1}, {value: Date.now()});

And maybe you know where possible get version?