Page 16 / 110 Scroll up to view Page 11 - 15
8
E-DOC-CTC-20051017-0147 v2.0
Chapter 1
Getting to know your SpeedTouch™
1.2.2
Access via CLI
To access the
SpeedTouch™ via the
Command Line
Interface (CLI)
You can access the Command Line Interface (CLI) via:
±
A Telnet session
This requires a TCP/IP connection between the host from which the Telnet
session is opened and the SpeedTouch™. Your SpeedTouch™ and the
connected computer must have an IP address in the same subnet.
±
Quote site commands (over FTP)
For more information, see
“ Quote site command” on page 12
.
For more information on CLI commands, see the SpeedTouch™ CLI Reference
Guide.
Page 17 / 110
9
E-DOC-CTC-20051017-0147 v2.0
Chapter 1
Getting to know your SpeedTouch™
To start a Telnet
session
Proceed as follows:
1
Open a telnet application.
2
Connect to your SpeedTouch™.
3
Enter your SpeedTouch™ security user name and password.
As soon as you have opened a session to the CLI, the SpeedTouch™ banner is
displayed, followed by the CLI prompt, as shown in the example below.
You can use the
Command Prompt
window.
In Microsoft Windows XP for instance:
1
On the Windows taskbar, click
Start.
2
Select (
All
)
Programs > Accessories > Command Prompt
.
In the Command Prompt window:
At the prompt, type
telnet
followed by the IP address of your
SpeedTouch™ (192.168.1.254 by default).
The default user is ‘Administrator’ and the default password is blank.
Username :
Administrator
-----------------------------------------------------------------------
-
*
______
SpeedTouch
*
___/_____/\
*
/
/\\
Version X.X
*
_____/__
/
\\
*
_/
/\_____/___ \
Copyright (c) 1999-2005,
*
//
/
\
/\ \
THOMSON
*
_______//_______/
\
/ _\/______
*
/
/ \
\
/
/ /
/\
*
__/
/
\
\
/
/ /
/ _\__
*
/ /
/
\_______\/
/ /
/ /
/\
* /_/______/___________________/ /________/ /___/
\
* \ \
\
___________
\ \
\ \
\
/
*
\_\
\
/
/\
\ \
\ \___\/
*
\
\/
/
\
\ \
\
/
*
\_____/
/
\
\ \________\/
*
/__________/
\
\
/
*
\
_____
\
/_____\/
*
\ /
/\
\
/___\/
*
/____/
\
\
/
*
\
\
/___\/
*
\____\/
-----------------------------------------------------------------------
{Administrator}=>
Page 18 / 110
10
E-DOC-CTC-20051017-0147 v2.0
Chapter 1
Getting to know your SpeedTouch™
1.2.3
Access via FTP
To access the
SpeedTouch™ via the
File Transfer Protocol
(FTP)
You can access the file system of the SpeedTouch™ via the File Transfer Protocol
(FTP), in order to:
±
Restore or back up configuration files, templates or language packs.
±
Upgrade your configuration or firmware.
File system
The SpeedTouch™ file system is stored on non-volatile memory and contains the
SpeedTouch™ software, service template files and (optionally) default setting files.
To open an FTP session
Proceed as follows:
1
Open a
Command Prompt
window.
2
At the prompt, type
ftp
followed by the IP address of your SpeedTouch™
(192.168.1.254 by default).
3
Enter your SpeedTouch™ security user name and password.
The example below shows an FTP session to the SpeedTouch™ file system.
File system structure
The structure of the file system is very simple: it consists of a single root directory
called
root
and two subdirectories called
active
and
dl
(download).
±
The
root
directory contains:
±
all the necessary files for the SpeedTouch™ to start correctly
±
the active and the dl directories
±
The
active
directory contains the active software image.
±
The
dl
directory contains the passive software image.
In Microsoft Windows XP for instance:
1
On the Windows taskbar, click
Start.
2
Select
(
All) Programs > Accessories > Command Prompt
.
The default user is ‘Administrator’ and the default password is blank.
If you made changes to the SpeedTouch™ configuration and saved
them, a user.ini configuration settings file is created in the
dl
subdirectory.
Page 19 / 110
11
E-DOC-CTC-20051017-0147 v2.0
Chapter 1
Getting to know your SpeedTouch™
File system access
rights
In the different directories you have the following rights:
Common FTP
commands
Depending on the access rights you have in a directory, you can use one of the
following commands:
Directory
Access rights
root
NO read/write
active
read-only
dl
read/write
Use the
command ...
to ...
cd
access another directory than the one currently open.
Example: ftp>cd dl.
dir
list the directory files.
Example: ftp>dir.
bin
set the transfer mode to ‘binary’.
hash
turn on the hashing option.
put
upload files.
Example: ftp>put C:/MyBackupFiles/user.ini.
A configuration file must be uploaded to the dl directory.
get
download files.
Example: ftp>get user.ini.
Downloading the configuration file must be done from the dl
directory.
delete
delete files.
bye
quit FTP.
Page 20 / 110
12
E-DOC-CTC-20051017-0147 v2.0
Chapter 1
Getting to know your SpeedTouch™
FTP file transfer
To allow correct file transfers, set the transfer mode to “binary”: at the ftp prompt,
type
bin
and press ENTER.
Example.
Quote site command
All the CLI commands can be executed from within an FTP session. Only complete
CLI commands (in other words, the complete command syntax with all the
parameters already specified) can be executed.
Example: To execute the CLI command
:ip iplist
to list all IP addresses
currently assigned to SpeedTouch™ interfaces, at the FTP prompt, type ‘quote site
ip iplist’ and press ENTER.
For more information on CLI commands, see the SpeedTouch™ CLI Reference
Guide.
Turn on the hashing option to see the progression of the file transfer: At the
ftp prompt, type
hash
and press ENTER.
/home/doejohn{1}$ftp 192.168.1.254
Connected to 192.168.1.254
220 Inactivity timer = 120 seconds. Use 'site idle <secs>' to change.
Name (192.168.1.254:doejohn):
331 SpeedTouch™
(00-90-D0-01-02-03) User 'doejohn' OK. Password requir
ed.
Password : ######
330 OK
ftp>
ftp>bin
200 TYPE is now 8-bit binary
ftp>
ftp>hash
200Hash mark printing on (8192 bytes/hash mark).
ftp>cd dl
250 Changed to /dl
ftp>put C:\user.ini
200 Connected to 192.168.1.10 port 1271
150 Opening data connection for user.ini
226 File written successfully
ftp: 256 bytes sent in 0,000Seconds 256000,000Kbytes/sec.
ftp>
ftp>
quote site ip iplist
200- Interface
Type
IP-address
Point-to-point/Mask
200- 2
LocalNetwork
Ethernet
10.0.0.138
255.255.255.0
200- 2
LocalNetwork
Ethernet
*192.168.1.254
255.255.255.0
200- 1
Internet
Serial
81.240.198.191
81.240.198.1
200- 0
loop
Internal
127.0.0.1
255.255.255.255
200-
200 CLI command "ip iplist" executed
ftp>

Rate

124.8 / 5 based on 304 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top