Ansicht umschalten
Avatar von kill-1
  • kill-1

mehr als 1000 Beiträge seit 30.11.2001

GetGenericHostEntry

Die SOAP-Action "GetGenericHostEntry" lässt sich, anders als von AVM dokumentiert, ohne Authentifizierung aufrufen. Der folgende Befehl

curl -s -d @- \ -H "Content-Type: text/xml" \ -H "SOAPAction: urn:dslforum-org:service:Hosts:1#GetGenericHostEntry" \ http://192.168.178.1:49000/upnp/control/hosts <<EOF <Envelope> <Body> <GetGenericHostEntry> <NewIndex>0</NewIndex> </GetGenericHostEntry> </Body> </Envelope> EOF

liefert beispielsweise

<?xml version="1.0"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:GetGenericHostEntryResponse xmlns:u="urn:dslforum-org:service:Hosts:1"> <NewIPAddress>192.168.178.25</NewIPAddress> <NewAddressSource>DHCP</NewAddressSource> <NewLeaseTimeRemaining>0</NewLeaseTimeRemaining> <NewMACAddress>08:3E:**:**:**:**</NewMACAddress> <NewInterfaceType>Ethernet</NewInterfaceType> <NewActive>0</NewActive> <NewHostName>****</NewHostName> </u:GetGenericHostEntryResponse> </s:Body> </s:Envelope>
Bewerten
- +
Ansicht umschalten