Skip to content

Get AvmIpInfo

Gincules edited this page Apr 4, 2023 · 1 revision

Get-AvmIpInfo

Synopsis

Action: GetInfo
Available on: ✅ FRITZ!Box / 🚫 FRITZ!Repeater
Status: ✅
Remote access: ✅
Required rights: 🔧

Description

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

Syntax

Get-AvmIpInfo
    [-Insecure]
    [-RemoteAccess]
    [-Url <String>]
    [-Port <Ushort>]
    [-Credential <PSCredential>]

Examples

Example 1

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 @splatParameters

Example 2

This 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 @splatParameters

IP 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 @splatParameters

Example 3

This 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 @splatParameters

IP 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
Clone this wiki locally