MISC

getFirewallConfig
FunctionGet firewall config
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getFirewallConfig
ParamNone
Return
isEnable Use firewall or not
rule
0The ip list can’t access
1Only allow the ip list to access
ipListNThe ip address(Network address) of list N
Example/cgi-bin/CGIProxy.fcgi?cmd=getFirewallConfig&usr=admin&pwd=

setFirewallConfig
FunctionSet firewall config
privilegeadmin
Usage /cgi-bin/CGIProxy.fcgi?cmd=setFirewallConfig
Param
isEnableUse firewall or not
rule
0The ip list can’t access
1Only allow the ip list to access
ipListNThe ip address(Network address) of list N
Example/cgi-bin/CGIProxy.fcgi?cmd=setFirewallConfig&isEnable=1&rule=0&ipList0=0&ipList1=0&ipList2=0&ipList3=0&ipList4=0&ipList5=0&ipList6=0&ipList7=0&usr=admin&pwd=

getLog
FunctionGet system log
privilegevisitor
Usage/cgi-bin/CGIProxy.fcgi?cmd=getLog
Param
offsetWhere you want to start get log
countHow many logs you want to get, must less then 20
Return
totalCntTotal log count
curCntcurrent log count
logNlog information, consist by time+user+ip+logID
NoteWe can have 1000 record of log at most. We can get 10 log at most one time
logID:
0:System power on
1:Detect motion alarm
2:user login
3:user logout
4:user off line
Example/cgi-bin/CGIProxy.fcgi?cmd=getLog&offset=0&count=20&usr=admin&pwd=