Get Network Config - FNGi DHCPatriot Version 6 Operation Manual

High-availability dhcp server
Table of Contents

Advertisement

Chapter 11: Remote Access API
=jim,jane&mac=&ip=&online=&start=&stop=
jim or jane.
https://patriot.network1.net/cli/?
function=SearchSessions&username=apiuser&password=apipass&action=search&user
=jim&mac=00:00:89:0c:51:13&ip=&online=&start=&stop=
user: jim, but only if his MAC address is: 00:00:89:0c:51:13
https://patriot.network1.net/cli/?
function=SearchSessions&username=apiuser&password=apipass&action=search&user
=jim&mac=00:00:89:0c: 51:13&ip=&online=1&start=&stop= would return all sessions for
user: jim, but only if his MAC address is: 00:00:89:0c:51:13 and they are currently
online.
https://patriot.network1.net/cli/?
function=SearchSessions&username=apiuser&password=apipass&action=search&user
=jim&mac=00:00:89:0c:51:13&ip=&online=1&start=1222796365&stop=1225388388
would return all sessions for user: jim, but only if his MAC address is: 00:00:89:0c:51:13
and he is currently online and only if some part of the session overlapped the start-stop
time period given.
Get Network Config
This API call will return an XML formatted result set containing the entire DHCPatriot
Shared Network and subnet of Authenticated DHCP, Standard DHCP and DHCPv6.
This is useful as some of the IDs that are returned may be needed by other API
functions to identify the record you want to work with. A result will look something like
the sample below:
<result>
!
<SharedNetwork>
!
!
<NetworkName>SomeNetwork</NetworkName>
!
!
<NetworkType>Authenticated</NetworkType>
!
!
<NetworkID>6</NetworkID>
!
!
<Subnet>
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
</Subnet>
!
!
<Subnet>
!
!
!
!
!
!
DHCPatriot Version 6 Operations Manual This document © 2017 First Network Group Inc. All Rights Reserved
<SubnetType>Unauthenticated</SubnetType>
<SubnetID>3</SubnetID>
<wire>3.3.3.0</wire>
<mask>255.255.255.0</mask>
<gateway>3.3.3.1</gateway>
<start>3.3.3.2</start>
<stop>3.3.3.254</stop>
<SubnetType>Authenticated</SubnetType>
<SubnetID>9</SubnetID>
would return all sessions for either the user
would return all sessions for
86

Advertisement

Table of Contents
loading

Table of Contents