Working With History; Cli-Php - NetModule NB2800 User Manual

Hide thumbs Also See for NB2800:
Table of Contents

Advertisement

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 con gure and control the
router remotely. It is enabled in factory con guration, 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 con guration parame-
ter:
cliphp . status=0
cliphp . status=1
This section describes the CLI-PHP interface for Version 2. It accepts POST and GET requests.
Running with GET requests, the general usage is de ned as follows:
Usage :
http ( s ) : / / cli . php ? < key1 >=<value1 >&<key2 >=<value2 > . . < keyN >=<valueN >
Available keys :
output
usr
pwd
command
arg0 . . arg31
Notes :
The commands correspond to CLI commands as seen by ' cli
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
NB2800 User Manual 4.2
Service is disabled
Service is enabled
Output format ( html , plain )
Username to be used for authentication
Password to be used for authentication
Command to be executed
Arguments passed to commands
182
l ' , the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NB2800 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents