Nevím, jak moc ti to pomůže:
Mám preset "HG8546M_HUAONT_Periodic" ve kterém je nastaveno:
Events: "2 PERIODIC"
Precondition: Product class = HG8546M
Provision name: HUAONT_Periodic
Tedy, při každém periodickém dotazu z konkrétního typu ONT se pouští skript (provision) HUAONT_Periodic.
V tom skriptu (značně osekáno) mám:
//nastavit inform interval na 60sec (ONT kontaktuje ACS každou minutu)
declare("InternetGatewayDevice.ManagementServer.PeriodicInformInterval", {value:Date.now()-1*600*1000}).value[0];
declare("InternetGatewayDevice.ManagementServer.PeriodicInformInterval", null,{value: 60});
/// gpon info+stats
declare("InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.*", {value: Date.now()});
declare("InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.Stats.*", {value: Date.now()});
/// WAN devices
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.*.*", {value: Date.now()});
/// device info
declare("InternetGatewayDevice.DeviceInfo.*", {value: Date.now()});
Takže prostě při každém dotazu se mi vyčtou některé parametry (reálně toho tam mám ještě více).
Pak u zařízení v "device parameters" můžeš najít třeba:
InternetGatewayDevice.DeviceInfo.UpTime 4884907 (1356:55:7)
InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower -21
V konfigurácích gui potom mám nastaveno, co se má zobrazovat:
sloupce tabulky devices jsou v index_parameters.yml
Serial number: InternetGatewayDevice.DeviceInfo.SerialNumberProduct class: InternetGatewayDevice.DeviceInfo.ProductClassSoftware version: InternetGatewayDevice.DeviceInfo.SoftwareVersionMAC: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddressIP: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddressWLAN SSID: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSIDGPON Rx Power: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower
co se zobrazuje v detailu zařízení je v summary_parameters.yml - tohle je dost "extenzivní" pokus, který vypisuje i nesmysly jako zařízení asociovaná na wifině nebo okolní wifi sítě (pokud se provedl scan, ten jde taky nějak iniciovat...)
Serial number: InternetGatewayDevice.DeviceInfo.SerialNumber
Product class: InternetGatewayDevice.DeviceInfo.ProductClass
Description: InternetGatewayDevice.DeviceInfo.Description
Manufacturer: InternetGatewayDevice.DeviceInfo.Manufacturer
Hardware version: InternetGatewayDevice.DeviceInfo.HardwareVersion
Software version: InternetGatewayDevice.DeviceInfo.SoftwareVersion
MAC: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress
IP: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress
Provisioning code: InternetGatewayDevice.DeviceInfo.ProvisioningCode
X_HW_OperatorID: InternetGatewayDevice.DeviceInfo.X_HW_OperatorID
GPON Rx Power: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower
GPON Tx Power: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.TXPower
Uptime: InternetGatewayDevice.DeviceInfo.UpTime
WLAN SSID: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID
WLAN passphrase: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.KeyPassphrase
X_MIKROTIK_ArchName: Device.DeviceInfo.X_MIKROTIK_ArchName
WANs:
_object: InternetGatewayDevice.WANDevice.1.WANConnectionDevice
Name: WANIPConnection.1.Name
ConnectionType: WANIPConnection.1.ConnectionType
ConnectionStatus: WANIPConnection.1.ConnectionStatus
NAT enabled: WANIPConnection.1.NATEnabled
IP address: WANIPConnection.1.ExternalIPAddress
Mask: WANIPConnection.1.SubnetMask
Gateway: WANIPConnection.1.DefaultGateway
DNS servers: WANIPConnection.1.DNSServers
Services: WANIPConnection.1.X_HW_SERVICELIST
VLAN: WANIPConnection.1.X_HW_VLAN
Mcast VLAN: WANIPConnection.1.X_HW_MultiCastVLAN
MAC: WANIPConnection.1.MACAddress
LANs:
_object: InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig
Name: Name
Status: Status
Enable: Enable
L3: X_HW_L3Enable
PacketsSent: Stats.PacketsSent
ErrorsSent: Stats.ErrorsSent
PacketsReceived: Stats.PacketsReceived
ErrorsReceived: Stats.ErrorsReceived
LAN-to-WAN:
_object: InternetGatewayDevice.Layer3Forwarding.X_HW_policy_route
WanName: WanName
PhyPortName: PhyPortName
Hosts:
_object: InternetGatewayDevice.LANDevice.1.Hosts.Host
IP: IPAddress
MAC: MACAddress
Host name: HostName
AddrSource: AddressSource
LeaseTime: LeaseTimeRemaining
VendorClass: VendorClassID
L2 interface: Layer2Interface
WiFi associated clients:
_object: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.AssociatedDevice
MAC: AssociatedDeviceMACAddress
IP: AssociatedDeviceIPAddress
Description: X_HW_AssociatedDevicedescriptions
Mode: X_HW_WorkingMode
Uptime: X_HW_Uptime
Rx rate: X_HW_RxRate
Tx rate: X_HW_TxRate
RSSI: X_HW_RSSI
Noise floor: X_HW_Noise
SNR: X_HW_SNR
Quality: X_HW_SingalQuality
Antenna info: X_HW_AntennaNum
WiFi neithbor APs:
_object: InternetGatewayDevice.LANDevice.1.WiFi.Radio.1.X_HW_NeighborAP
SSID: SSID
BSSID: BSSID
Channel: Channel
RSSI: RSSI
ChannelWidth: ChannelWidth
Security: Security
Processes:
_object: InternetGatewayDevice.DeviceInfo.ProcessStatus.Process
PID: PID
Command: Command
Size: Size
Priority: Priority
CPUTime: CPUTime
State: State