NB3000-Line-Hd User Manual 4.2
6.16. Working with History
The
history
command will print the list of entered commands on a per-user basis.
>
history
−
h
Usage
:
history
[
−
c
]
It can be cleared by
history -c
.
6.17. CLI-PHP
CLI-PHP, the HTTP frontend to the CLI application, can be used to configure and control the
router remotely. It is enabled in factory configuration, thus can be used for deployment
purposes, but disabled as soon as the admin account has been set up.
The service can later be turned on/off by setting the
cliphp.status
configuration parame-
ter:
cliphp
.
status
=0
Service is disabled
cliphp
.
status
=1
Service is enabled
This section describes the CLI-PHP interface for Version 2. It accepts POST and GET requests.
Running with GET requests, the general usage is defined as follows:
Usage
:
http
(
s
) : / /
cli
.
php
? <
key1
>=<
value1
>&<
key2
>=<
value2
> . . <
keyN
>=<
valueN
>
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
&
arg2
=
admin
.
access
will lead to cli being called as
:
cli get
"admin.password" "admin.debug" "admin.access"
It supports whitespaces but please be aware that any special characters
in
185
Содержание NB3000-Line-Hd
Страница 15: ...3 Speci cations 3 1 Appearance 6...
Страница 106: ...NB3000 Line Hd User Manual 4 2 5 6 VPN 5 6 1 OpenVPN OpenVPN Administration Figure 5 28 OpenVPN Administration 97...
Страница 186: ...NB3000 Line Hd User Manual 4 2 5 9 LOGOUT Please use this menu to log out from the Web Manager 177...