Sorry for this stupid questions, but I don’t get it.
Where do I have to enter “InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.1.Status”
to get this information?
I promise, when I am ready I will do a how to for beginners.
Sorry for this stupid questions, but I don’t get it.
Where do I have to enter “InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.1.Status”
to get this information?
I promise, when I am ready I will do a how to for beginners.
Are you wanting to read or write the value? Because InternetGatewayDevice.LANDevice.{i}.LANEthernetInterfaceConfig.{i}.Status is not writable, per the specification.
I want to read it.
And how are you wanting to consume this information? In your own app? In the GenieACS GUI?
To pull the data into your own app you will need to use the API.
I want it in the UI first.
And these buttons on the Admin → Config page
- 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: "'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
- label: "'Status LAN 1'"
parameter: InternetGatewayDevice.X_00507F_Status.PortStatus.1.Status
- label: "'Status LAN 2'"
parameter: InternetGatewayDevice.X_00507F_Status.PortStatus.2.Status
But it’s empty
Under Device Page I did this:
- type: "'tags'"
- type: "'ping'"
- type: "'parameter-list'"
parameters:
- element: "'span.inform'"
label: "'Last inform'"
parameter: DATE_STRING(Events.Inform)
type: "'container'"
components:
- type: "'parameter'"
- chart: "'online'"
type: "'overview-dot'"
- type: "'summon-button'"
parameters:
- InternetGatewayDevice.DeviceInfo.HardwareVersion
- InternetGatewayDevice.DeviceInfo.SoftwareVersion
- InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*.WANIPConnection.*.MACAddress
- InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*.WANIPConnection.*.ExternalIPAddress
- InternetGatewayDevice.LANDevice.*.WLANConfiguration.*.SSID
- InternetGatewayDevice.LANDevice.*.WLANConfiguration.*.KeyPassphrase
- InternetGatewayDevice.LANDevice.*.Hosts.Host.*.HostName
- InternetGatewayDevice.LANDevice.*.Hosts.Host.*.IPAddress
- InternetGatewayDevice.LANDevice.*.Hosts.Host.*.MACAddress
- InternetGatewayDevice.X_00507F_Status.PortStatus.1.Status
- InternetGatewayDevice.X_00507F_Status.PortStatus.2.Status
- label: "'Serial number'"
parameter: DeviceID.SerialNumber
- label: "'Product class'"
parameter: DeviceID.ProductClass
- label: "'OUI'"
parameter: DeviceID.OUI
- label: "'Manufacturer'"
parameter: DeviceID.Manufacturer
- label: "'Hardware version'"
parameter: InternetGatewayDevice.DeviceInfo.HardwareVersion
- label: "'Software version'"
parameter: InternetGatewayDevice.DeviceInfo.SoftwareVersion
- label: "'MAC'"
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress
- label: "'IP'"
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress
- label: "'WLAN SSID'"
parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID
- label: "'WLAN passphrase'"
parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.KeyPassphrase
- label: "'Status LAN 1'"
parameter: InternetGatewayDevice.X_00507F_Status.PortStatus.1.Status
- label: "'Status LAN 2'"
parameter: InternetGatewayDevice.X_00507F_Status.PortStatus.2.Status
- label: "'LAN hosts'"
parameter: InternetGatewayDevice.LANDevice.1.Hosts.Host
type: "'parameter-table'"
childParameters:
- label: "'Host name'"
parameter: HostName
- label: "'IP address'"
parameter: IPAddress
- label: "'MAC address'"
parameter: MACAddress
- element: "'div'"
type: "'container'"
components:
- element: "'h3'"
type: "'container'"
components:
- "'Faults'"
- type: "'device-faults'"
- element: "'div.container-full-width'"
type: "'container'"
components:
- element: "'h3'"
type: "'container'"
components:
- "'All parameters'"
- type: "'all-parameters'"
- type: "'device-actions'"
After I “forced to update” the values, I can see it in both positions.
How to update this value automatically every minute?
I don’t know if this is the way to go, but i managed it via cron and api
First, you don’t want the values to update every minute. This puts a lot of load on both the CPE and the ACS.
Second, refreshing values is covered in the documentation. You should probably familiarize yourself with the documentation.
It’s the only way on this device to get status if port is connected or not. Via SNMP I can get 5 status codes, no one is showing a connection or not.
When I only ask the API to get status from this Port, it is also to heavy?
One request in and of itself isn’t heavy. But you have to consider what your other provision scripts are doing. Each 6 CONNECTION REQUEST will cause GenieACS to run through all the applicable provision scripts. This in and of itself isn’t that heavy given all the caching and optimization in GenieACS. But when you have thousands of CPEs this will contribute to significant load on your ACS.
Is there a way to send the request directly to the cpe? I think so, but I cant get the way how.
I only know http://vigor:vigor@192.168.2.1:8069/cwm/CRN.html.