NG800
User Manual for NRSW version 4.5.0.100
Available keys
:
output
Output format
(
html
,
plain
)
usr
Username to be used for authentication
pwd
Password to be used for authentication
command
Command to be executed
arg0
. .
arg31
Arguments passed to commands
Notes
:
The commands correspond to CLI commands as seen by
'cli -l'
,
the
arguments
(
arg0
. .
arg31
)
will be directly passed to cli
.
Thus
,
an URL containing the following sequence
:
command
=
get
&
arg0
=
admin
.
password
&
arg1
=
admin
.
debug
will lead to cli being called as
:
cli get
"admin.password" "admin.debug"
It supports whitespaces but please be aware that any special characters in
the URL must be specified according to RFC1738
(
usually done by common
clients such as wget
,
lynx
,
curl
) .
Response
:
The returned response will always contain a status line in the format
:
<
return
> : <
msg
>
with return values of OK if succeeded and ERROR if failed
.
Any
output from the commands will be appended
.
Examples
:
OK
:
status command successful
ERROR
:
authentication failed
status - Display status information
Key usage
:
command
=
status
[&
arg0
=<
section
> ]
Notes
:
Available sections can be retrieved by running
command
=
status
&
arg0
=
−
h
.
Please note that the status summary can be displayed without authentication
.
Examples
:
http
: / / 1 9 2 . 1 6 8 . 1 . 1 /
cli
.
php
?
version
=2&
output
=
html
&
usr
=
admin
&
pwd
=
admin01
&
command
=
status
&
arg0
=
−
h
http
: / / 1 9 2 . 1 6 8 . 1 . 1 /
cli
.
php
?
version
=2&
output
=
html
&
usr
=
admin
&
pwd
=
admin01
&
command
=
status
&
arg0
=
summary
192