OneAcess 4.04 CLI v3.0 Overview
OneAcess 4.04 CLI v3.0 Overview
OneAcess 4.04 CLI v3.0 Overview
4.4 CLI
& System Management
3
System Management
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
management interfaces:
console port:
serial, 9600 bps async, 8 bits, 1 stop, no parity, no flow control
ethernet port
factory IP address: 192.168.1.10
configuration using telnet
FTP/TFTP for downloading/uploading files
default login:
login = admin
password = admin
4
System Management
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
5
File System 1/4
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
7
File System 3/4
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
root directory
FLASHDISK
BSA subdirectory
RAMDISK
FLASHDISK
8
File System 4/4
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
password file
lists the software & configuration files to start-up the device by bootsoftware
9
Power-Up Message 1/4
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
serial nr
➙
10
Power-Up Message 2/4
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
➙
➙
software version:
11
Power-Up Message 3/4
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
➙
hardware configuration
➙
12
Power-Up Message 4/4
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
➙
configuration file name
13
United Networking
15
Getting Started with CLI
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
edition keystrokes
16
basic CLI Commands
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
Hardware Configuration
OneOs>show system hardware
17
basic CLI Commands
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
System Status
OneOs>show system status
18
basic CLI Commands
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
19
basic CLI Commands
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
20
basic CLI Commands
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
Saving configuration :
OneOs> save running-config [ to <filename>]
Router reboot :
OneOs> reboot [ { after <seconds> | at <hh>:<mm>[:<ss>] } ]
OneOs> reboot cancel
Restart with default configuration :
OneOs> erase saved-config
Are you sure you want to erase running configuration? (Y/N) : y
Restore factory settings :
OneOs> restore factory-setting
21
basic CLI Commands
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
Adjusting universal time acquired by NTP to local time zone and time offset:
OneOs(configure)> clock timezone <name> <-23 .. 23>
OneOs(configure)> clock summer-time recurring <name> { <1-4> | first |
last } <day> <month> { <1-4> | first | last } <day> <month>
Example:
clock timezone GMT 1
clock summer-time recurring PARIS last Sunday March 02:00 last Sunday
October 03:00
22
Password Recovery
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
password recovery
example:
23
CLI Help 1
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
OneOs>help
atm-capture - Capture ATM traffic on a specific PVC
auto-call - make an automatic call
auto-update - Start/Stop AutoUpdate sequence
boot - Configure the boot application
capture - Set protocol analyser filters
configure - Enter configuration mode
console - Disable/Enable console input
copy - Copy <URL Source> <URL Destination>
debug - Debug
disable - Turn off privileged commands
dot11 - 802.11 management commands
enable - Reserved
erase - Erase running-config and reboot
exec - Execute a file
exit - Exit intermediate mode
factory - factory <lock | unlock | fxs>
factory-conf - factory-conf <serialnumber> <MACaddr> [<password>]
ftp - Enter ftp session
hostname - Get host name
isdn - helpfull isdn commands
monitor - Monitor administration functions
24
CLI Help 2
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
OneOs>help
no - Disable ping / flood ping sessions
package-options - Package options management
ping - Send ICMP echo request
post-mortem - Enable/disable post mortem
pstn - helpfull pstn commands
restore - Restore factory default settings
save - Save configuration [to filename]
serial-capture - Capture traffic on serial interface
snmp - snmp
software - Change operational or backup software version
telnet - Telnet to host
term - Reserved
trace - Filter trace calls
trace-oam - Manage display of OAM traffic
traceroute - Traces route to host
untar - untar a file on flash
verify - Verify boot or soft files
write - Write running config
x25 - x25 management commands
xping - Set ping session
25
CLI Help Commands 1
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
OneOs>help commands
26
CLI Help Commands 2
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
OneOs>help commands
27
CLI Help Commands 3
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
OneOs>help commands
28
Download / Upload 1
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
File download/upload
first: checking flash disk space !
the last line of the command output indicates the available memory
example:
OneOs> show device status flash
... ... ...
- free space on volume: 26,310,656 bytes
OneOs>
29
Download / Upload 2
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
FTP or TFTP
ONExx has embedded FTP or TFTP clients
Connection to FTP or TFTP Server from
The ONExx after opening a telnet session from the PC
The ONExx through the console session
30
TFTP Upload
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
TFTP upload:
example:
- transfer of bsaStart.cfg from ONExx to the PC
- TFTP server IP address = 192.168.1.1
31
TFTP Download
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
TFTP download:
example:
- transfer of bsaStart.cfg from the PC/tftp server to the ONExx/tftp
client
- TFTP server IP address = 192.168.1.1
32
FTP Upload
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
FTP upload:
example:
transfer of bsaStart.cfg from ONExx to the PC
FTP server IP address = 192.168.1.1
note: during any FTP sessions following commands are available:
LOCAL / ONExxx : REMOTE / PC :
lls ( local ls command ) ls ( ls command )
lcd ( local cd command ) cd ( cd command )
33
FTP Download
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
FTP download:
example:
- transfer of bsaStart.cfg from the PC to the ONExx
- FTP server IP address = 192.168.1.1
34
Software Upgrade
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
Read the bsaBoot.inf file to read the current location and software name:
OneOs> cd BSA
OneOs> cat bsaBoot.inf
flash:/BSA/binaries/OneOs (software binary name)
flash:/BSA/config/bsaStart.cfg
35
Software Integrity
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
example:
36
United Networking
Objective
Reload a router as if it was coming from factory
CLI Command
restore factory-setting
Are you sure you want to restore factory settings?(Y/N):
Action
Removes all files except certain system files:
flash: /BSA/bsaBoot.inf
flash: /BSA/binaries/OneOs
flash: /factory-backup/ (and all files found under that directory)
flash: /ibc (and all files found under that directory)
flash: /tftpboot (and all files found under that directory)
Regenerates certain system files
Flash:/password
Flash:/BSA/bsaBoot.inf
System Reboots
38
Factory Settings via CLI 2/2
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g
39
Factory Settings via Hardware
U
U nn iitte ed d N eNt e
w tow
r koi rnkgi n g