Get AvmIpInfo - Gincules/avmtools GitHub Wiki
Action: GetInfo
Available on: â
FRITZ!Box / đĢ FRITZ!Repeater
Status: â
Remote access: â
Required rights: đ§
This function returns general external connection information.
Output:
| Data type | Variable | Example |
|---|---|---|
| String | u | urn:dslforum-org:service:WANIPConnection:1 |
| Boolean | NewEnable | 1 |
| String | NewConnectionStatus | Connected |
| String | NewPossibleConnectionTypes | IP_Routed, IP_Bridged |
| String | NewConnectionType | IP_Routed |
| String | NewName | internet |
| Uint | NewUptime | 150566 |
| String | NewLastConnectionError | ERROR_NONE |
| Boolean | NewRSIPAvailable | 0 |
| Boolean | NewNATEnabled | 1 |
| String | NewExternalIPAddress | 123.123.123.123 |
| String | NewDNSServers | 2a02:8100:c0:2c9::4:1101, 88.134.228.33 |
| String | NewMACAddress | 1A:2B:3C:4D:5E:6F |
| String | NewConnectionTrigger | OnDemand |
| String | NewRouteProtocolRx | Off |
| Boolean | NewDNSEnabled | 1 |
| Boolean | NewDNSOverrideAllowed | 1 |
Get-AvmIpInfo
[-Insecure]
[-RemoteAccess]
[-Url <String>]
[-Port <Ushort>]
[-Credential <PSCredential>]This example describes how to run the command using a valid certificate and remote access.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
RemoteAccess = $true
Url = "https://myfritzaddress12.myfritz.net"
Port = 443
Credential = $Credential
}
Get-AvmIpInfo @splatParametersThis example describes how to run the command using local connection with a valid certificate.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
Url = "https://fritz.box"
Port = 49443
Credential = $Credential
}
Get-AvmIpInfo @splatParametersIP address can be used instead of DNS name.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
Url = "https://192.168.178.1"
Port = 49443
Credential = $Credential
}
Get-AvmIpInfo @splatParametersThis example describes how to run the command using local connection without a valid certificate.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
Insecure = $true
Url = "http://fritz.box"
Port = 49000
Credential = $Credential
}
Get-AvmIpInfo @splatParametersIP address can be used instead of DNS name.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
$splatParameters = @{
Insecure = $true
Url = "http://192.168.178.1"
Port = 49000
Credential = $Credential
}
Get-AvmIpInfo @splatParameters