@akcoder @pankaj231 Plz Hemp and Corrent me I have Huawei Brand ONT.
âAdmin>Provisions>Defaultâ Script is like below.
const hourly = Date.now(3600000);
// Refresh basic parameters hourly
declare(âInternetGatewayDevice.DeviceInfo.HardwareVersionâ, {path: hourly, value: hourly});
declare(âInternetGatewayDevice.DeviceInfo.SoftwareVersionâ, {path: hourly, value: hourly});
declare(âInternetGatewayDevice.WANDevice..WANConnectionDevice..WANIPConnection..MACAddress", {path: hourly, value: hourly});
declare("InternetGatewayDevice.WANDevice..WANConnectionDevice..WANIPConnection..ExternalIPAddressâ, {path: hourly, value: hourly});
declare(âInternetGatewayDevice.LANDevice..WLANConfiguration..SSIDâ, {path: hourly, value: hourly});
// Donât refresh password field periodically because CPEs always report blank passowrds for security reasons
declare(âInternetGatewayDevice.LANDevice..WLANConfiguration..KeyPassphraseâ, {path: hourly, value: 1});
declare(âInternetGatewayDevice.LANDevice..WLANConfiguration..PreSharedKeyâ, {path: hourly, value: 1});
declare(âInternetGatewayDevice.LANDevice..WLANConfiguration..Channelâ, {path: hourly, value: hourly});
declare(âInternetGatewayDevice.LANDevice..WLANConfiguration..AutoChannelEnableâ, {path: hourly, value: hourly});
declare(âInternetGatewayDevice.LANDevice..Hosts.Host..HostNameâ, {path: hourly, value: hourly});
declare(âInternetGatewayDevice.LANDevice..Hosts.Host..IPAddressâ, {path: hourly, value: hourly});
declare(âInternetGatewayDevice.LANDevice..Hosts.Host..MACAddressâ, {path: hourly, value: hourly});
//For Optical RX and Tx Power of Hauwei ont
declare(âInternetGatewayDevice.WANDevice..X_GponInterafceConfig.RXPower",{path:hourly,Value:hourly});
declare("InternetGatewayDevice.WANDevice..X_GponInterafceConfig.TXPowerâ,{path:hourly,Value:hourly});
//Refresh the PPPoE username
declare(âVirtualParameters.pppUsernameâ, {value: Date.now()});
declare(âVirtualParameters.pppoeclaveâ, {value: Date.now()});
declare(âVirtualParameters.wifipasswordâ, {value: Date.now()});
//Refresh the and Set Parameter for E8141A5/E8145v5 Huawei Ont
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.AccessControlListEnableâ, {value: Date.now}, {value: true});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.1.Modeâ, {value: Date.now}, {value: â0â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.1.Priorityâ, {value: Date.now}, {value: â1â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.1.ServicePortâ,{value: Date.now}, {value: âTELNET,HTTP,SSH,FTP,ICMPâ});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.1.SrcIpâ,{value: Date.now}, {value: â0.0.0.0-0.0.0.0â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.1.SrcPortNameâ,{value: Date.now}, {value: âALLâ});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.1.SrcPortTypeâ, {value: Date.now}, {value: â2â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.2.Modeâ, {value: Date.now}, {value: â0â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.2.Priorityâ, {value: Date.now}, {value: â2â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.2.ServicePortâ,{value: Date.now}, {value: âTELNET,HTTP,SSH,FTP,ICMPâ});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.2.SrcIpâ,{value: Date.now}, {value: â0.0.0.0-0.0.0.0â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.2.SrcPortNameâ,{value: Date.now}, {value: âALLâ});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AccessControl.List.2.SrcPortTypeâ, {value: Date.now}, {value: â2â});
//HG8546M Router Security Device Access Control Enable
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AcessControl.WanAccessâ, {value: Date.now}, {value: â1â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AcessControl.Protocolâ, {value: Date.now}, {value: âHTTPâ});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AcessControl.WanNameâ, {value: Date.now}, {value: âwan1.2.ppp1â});
declare(âInternetGatewayDevice.X_HW_Security.AclServices.AcessControl.Enableâ, {value: Date.now}, {value: â1â});
âAdmin>Config>Editing Index Pageâ Parameter/Script
- label: ââSerial numberââ
parameter: DeviceID.SerialNumber
type: ââdevice-linkââ
components:
- type: ââparameterââ
- label: ââProduct classââ
parameter: DeviceID.ProductClass
- label: ââSoftware versionââ
parameter: InternetGatewayDevice.DeviceInfo.SoftwareVersion
- label: ââPPOE Userââ
parameter: VirtualParameters.pppUsername
- label: ââRXââ
parameter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower
- label: ââTXââ
parameter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.TXPower
- label: ââIPââ
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress
- label: ââSSIDââ
parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID
- element: ââspan.informââ
label: ââLast informââ
parameter: DATE_STRING(Events.Inform)
type: ââcontainerââ
components:
- type: ââparameterââ
- chart: ââonlineââ
type: ââoverview-dotââ
- label: ââTagsââ
parameter: Tags
type: ââtagsââ
unsortable: true
writable: false
PLz help me when i am Wrong. @akcoder @pankaj231 Thanks in Advanced.