4.4 CLI & System Management

Slides:



Advertisements
Similar presentations
Configuring a Router Harold Hernandez, MS, CCNI. 3.1 Configuring a Router Name a router Set passwords Examine show commands Configure a serial interface.
Advertisements

Managing Cisco IOS Software. Overview The router boot sequence Locating IOS software The configuration register Recovering Passwords Backing Up the Cisco.
4.5 OneOs Downloading Software Upgrade
1 Passwords and Banners Cisco Devices Packet Tracer.
4.3 Boot Loader Copyright © OneAccess Networks - All rights reserved -
CCNA2 MODULE 5.
Cisco Router. Overview Understanding and configuring the Cisco Internetwork Operating System (IOS) Connecting to a router Bringing up a router Logging.
Introduction to the Cisco IOS
DASAN NETWORKS GPON Training
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
Managing Cisco IOS Software
CCNA 2 v3.1 Module 2.
WANs and Routers Routers. Router Description Specialized computer Like a general purpose PC, a router has:  CPU  Memory  System Bus Connecting Internal.
Chapter 9 Managing a Cisco Internetwork Cisco Router Components Bootstrap - Brings up the router during initialization POST - Checks basic functionality;
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
Sybex CCNA Chapter 7: Managing a Cisco Internetwork Instructor & Todd Lammle.
Routers A router is a computer Computers have four basic components:
1 Chapter 2 ROUTER FUNDAMENTALS By: Tassos Tassou.
1 Semester 2 Module 3 Configuring a Router Yuda college of business James Chen
Basic Router Configuration Warren Toomey GCIT. Introduction A Cisco router is simply a computer that receives packets and forwards them on based on what.
Basic Router Configuration Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Configuring a network os
Starting the switch Configuring the Switch
Ch.2 – Introduction to Routers
Instructor & Todd Lammle
CCNA Guide to Cisco Networking
Instructor & Todd Lammle
1 Pertemuan 9 Switch Configuration. Discussion Topics Starting the Switch Configuring the Switch 2.
Cisco S2 C4 Router Components. Configure a Router You can configure a router from –from the console terminal (a computer connected to the router –through.
Page 110/19/2015 Chapter 5 CCNA2 Chapter 5 Managing Cisco IOS Software.
2002 Networking Operating Systems (CO32010) 1. Operating Systems 2. Processes and scheduling 3.
Basic Router Configuration 1.1 Global configuration Cisco allows us to configure the router to support various protocols and interfaces. The router stores.
Ch.2 – Introduction to Routers
Sem 2v2 Chapter4: Router Components 4.1. Understand Router Components Understand Router Show Commands Understand Router's Network Neighbors.
Release 16/07/2009Jetking Infotrain Ltd. Basic Router Configuration Chapter 5.
IOS Backup & Password Breaking Technique of Routers & Switches Chapter 17 powered by DJ 1.
1 Version 3.0 Module 6 Switch Configuration. 2 Version 3.0 Switches Contain: –CPU –RAM –Operating System.
Module 3 Configuring a Router.
Router Fundamentals PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
Routers and Routing Basics CCNA 2 Chapter 3 1.
Introduction to Routers
CCNA2 Chapter 2 Cisco IOS Software. Cisco’s operating system is called Cisco Internetwork Operating System (IOS) IOS provides the following network services:
Lesson 3a © 2005 Cisco Systems, Inc. All rights reserved. CSPFA v4.0—19-1 System Management and Maintenance.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Chapter 2: Configure a Network Operating System
Sem 2v2 Chapter 5 Router Startup and Setup. A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 5 Managing Cisco IOS Software.
Configuring a Router Module 3 Semester 2. Router Configuration Tasks Name a router Set passwords Examine show commands Configure a serial interface Configure.
1 21-Mar-16 Configuring and testing CCNA Exploration Semester 1 Chapter 11.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
Introduction to networking (Yarnfield) Configure a router.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 2 Introduction to Routers.
Router Components & Configuration. Router Components & Configurations Topics Physical components Memory components Configuration modes Keystroke shortcuts.
Instructor Materials Chapter 8 Configuring Cisco Devices
Managing a Cisco Devices Internetwork
1.1.2 OneOs Downloading Software Upgrade
Chapter 2: Configure a Network Operating System
Switch Commands Exec Commands Switch#? exec Commands
CCNA Routing and Switching Routing and Switching Essentials v6.0
Chapter 10: Device Discovery, Management, and Maintenance
CCNA Routing and Switching Routing and Switching Essentials v6.0
Chapter 2: Configure a Network Operating System
Chapter 10: Device Discovery, Management, and Maintenance
Configuring a Router Module 3 Semester 2.
Sem 2v2 Chapter4: Router Components
Introduction to Cisco IOS -(Internetwork Operating System)
Lecture9: Embedded Network Operating System: cisco IOS
CCNA 2 2 Double JEOPARDY Midterm REVIEW S2C06 Jeopardy Review.
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

4.4 CLI & System Management Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

System management basics Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

System Management CLI-Based user interface (CLI: Command Line Interface) commands are not case-sensitive file names & directory names are case-sensitive e.g.: config, show config, show running-config, cd BSA, ... web-based configurator (WCF: Web Configurator Factory) CWMP TR-69 SNMP V1/V2/V3 SNTP synchronization support of user privileges upload/download of configuration & binaries via FTP/TFTP QoS measurement probe traceroute, ping, extended ping user authentication via RADIUS or TACACS+ RADIUS accounting event and trace buffering flow capture and decoding Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

management interfaces: System Management 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 access rights: 3 levels user (level 0): only access to elementary show functions or diagnostics manager (level 7): access to all show functions, traces and configurations administrator (level 15): access to all functions including system debugging default login: login = admin password = admin Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

local user management System Management users with different access rights can be defined each user has a username, password and belongs to a group 3 pre-defined user groups with 3 levels of access rights: levels 0 (user) , 7 (manager) & 15 (administrator) CLI commands: example: create user "teacher" with password "severe" and level "administrator" Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

any file can be uploaded / downloaded File System 1/4 file system: 2 DISKS FLASH disk (non volatile / EEPROM saved, default): BSA directory with sub-directories config : for configuration files binaries : for software binaries dump : for log files RAM disk (volatile : erased on power reset, not after reboot) used by the system itself (temporary files) used for log files (events or traces) contains: the "tmp" directory for saving temporary files the "running-config": a txt file with the CLI commands to build the current configuration event files (log messages) any file can be uploaded / downloaded software binaries, boot binaries, configuration and log files Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

CLI commands for file and directory management: File System 2/4 CLI commands for file and directory management: devs [flash | ramdisk] : without parameters, displays the file system in use. with the parameters, the user can change the current working file system. pwd : displays the current working directory cd <directory> : change directory mkdir <directory> : create a new directory ls : list the files and sub-directories of the current directory cat <filename> : list content of a text file (config., logs) who : provides the list of users who are connected to the router rm <filename> : remove a file exec -echo <filename> : executes a CLI script mv <filename1> <filename2> : rename a file copy <file1> <file2> : copy a file (source: file1, destination: file2) Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

file and directory management File System 3/4 file and directory management root directory FLASHDISK BSA subdirectory RAMDISK FLASHDISK Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

file and directory management File System 4/4 file and directory management logging of all SNMP v3 sessions logging of all Telnet sessions password file lists the software & configuration files to start-up the device by bootsoftware configuration management history Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

device motherboard description Power-Up Message 1/4 device motherboard description serial nr free Flash memory ➙ Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

software binary file location software binary file name Power-Up Message 2/4 software binary file location software binary file name ➙ ➙ software version: ONEOS1: ONE 60 - 200 ONEOS2: ONE 400 ONEOS4: ONE 20A – 100A ONEOS5: ONE 80 -180 – 300 ONEOS6: ONE 20D – 100D ONEOS7: ONECell 25 ONEOS35: ONECell 35 Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

hardware configuration Power-Up Message 3/4 ➙ hardware configuration ➙ Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

configuration file name Power-Up Message 4/4 ➙ configuration file name Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Basic CLI handling Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Getting Started with CLI you do not have to fully write CLI keywords: ➨ press <TAB> to complete the keyword. If there are more than one keyword match for a partial word, the CLI answers ‘Ambiguous command’. (example: ‘sh’ matches ‘shutdown’ and ‘show’) if you do not know what to enter: ➨ press ‘?’ anywhere in the command line to get help the CLI is not case-sensitive ? Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Getting Started with CLI edition keystrokes Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Hardware Configuration basic CLI Commands Hardware Configuration OneOs>show system hardware Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

System Status basic CLI Commands OneOs>show system status Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

System Configuration (1) basic CLI Commands System Configuration (1) OneOs>show running-config Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

System Configuration (2) basic CLI Commands System Configuration (2) OneOs>show configuration OneOs>show configuration interface Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

basic CLI Commands Accessing the configuration mode (admin/manager privilege) : OneOs> configure terminal 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 Actually this command does : OneOs> rm /BSA/config/bsaStart.cfg OneOs> rm /password OneOs> rm /snmpv3.users OneOs> reboot Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

basic CLI Commands Manual date/time setting : OneOs> date 29/01/2008 OneOs> date <dd>/<mm>/<yr> OneOs> time 11:06:30 OneOs> time <hh>:<mn>:<sc> Date/time synchronisation on an NTP clock source (SNTP client): OneOs> configure terminal OneOs(configure)> sntp broadcast client OneOs(configure)> sntp <server-ip-address> [<source-if> <unit>] 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 Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

password recovery Password Recovery If the login/passwords are lost, password recovery is possible from the console port typing: <ESCAPE>, then <CTRL>+Y and finally <CTRL>+N the ‘/password’ file and the configuration file are erased. If you attempt to log in after reboot the password file is recreated with the default ‘admin’/’admin’ login/password. example: Username: <ESC> <Ctrl Y> <Ctrl N> Are you sure you want to reset configuration? (y/n) y System will reboot now. Rebooting the device... Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

CLI Help 1 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 Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

CLI Help 2 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 Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

CLI Help Commands 1 OneOs>help commands activate - Configure system alias - Text substitution bind - Bind an address to telnet server broadcast - Write message to all users logged in cat - Display contents of a file cd - Change working directory chkdsk <device:> - DOS file system sanity check / co clear - Reset functions cpuClkStart - Start task activity monitor running at ticksPerSec ticks per second cpuClkStop - Stop collecting data cpuHelp - Print the list of cpu report functionalities cpuReport - Prints display of task activity statistics cpuStart - Start cpuClkStart and do a report every freq seconds cpuStop - Stop collecting data and reports cpuTask - Run periodic task activity reports date - Print/set the date delay - Delays devs - List or change all system-known devices echo - Echo text typed in end - Reserved Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

CLI Help Commands 2 OneOs>help commands event - Filter events calls format - Format the flash groups - Show system groups help - Show command help history - Show command history logout - Log off this system ls - List files mkdir - Create directory mv - Move file power-on-reboot - do a power on reboot prompt - Change current prompt pwd - Print curent working directory reboot - Reboot the equipment reboot-check - Reboot the equipment repeat - Repeat a message rm - Remove a file serial-port - Change serial port caracteristics show - Show running system information sleep - Sleep for n seconds start - start a call generator Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

CLI Help Commands 3 OneOs>help commands stop - stop a call generator stty - Terminal settings syntax - Show command syntax system - System settings time - Print/set the time tree - Show command tree tshell - Switch to Target Shell on this session user - User configuration who - Display users currently logged in whoami - Show current user info write_message - Write text to another user Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

File download/upload Download / Upload 1 first: checking flash disk space ! the last line of the command output indicates the available memory example: required space depends on the OneOS version: OneOs> show device status flash OneOs> show device status flash ... ... ... - free space on volume: 26,310,656 bytes OneOs> Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Any file may be uploaded/downloaded : Download / Upload 2 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 Any file may be uploaded/downloaded : Software and boot binary files Configuration files Log files (events) file transfer must be started from the directory where the file is located Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

TFTP upload: TFTP Upload example: - transfer of bsaStart.cfg from ONExx to the PC - TFTP server IP address = 192.168.1.1 Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

TFTP download: 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 Executing a configuration file: OneOs> exec –echo bsaStart.cfg Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

FTP upload: 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 : lls ( local ls command ) lcd ( local cd command ) REMOTE / PC : ls ( ls command ) cd ( cd command ) Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

FTP download: FTP Download example: - transfer of bsaStart.cfg from the PC to the ONExx - FTP server IP address = 192.168.1.1 Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Software Upgrade Example for downloading a new software release: Read the bsaBoot.inf file to read the current location and software name: Run a TFTP server on a PC (IP address = 192.168.1.1) and enter the following command: Rename OneOs and reboot OneOs> cd BSA OneOs> cat bsaBoot.inf flash:/BSA/binaries/OneOs (software binary name) flash:/BSA/config/bsaStart.cfg OneOs> cd BSA/binaries OneOs> copy tftp://192.168.1.1/OneOs_file.ZZZ OneOsNew OneOs> mv OneOs OneOsold OneOs> mv OneOsNew OneOs OneOs> reboot Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

verification of software integrity example: OneOs>show soft-file info [<path>/]<filename> Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Recover Factory Settings Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Factory Settings via CLI 1/2 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 Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Factory Settings via CLI 2/2 Some customer settings can be restored Files in Factory-backup directory are restored flash:/factory-backup/default-bsaStart.cfg flash:/factory-backup/default-web.tar flash:/factory-backup/default.wcfaccounts.ini flash:/factory-backup/default-password Following files are erased: snmpv3.user ssh_host_dsa_key.pub (SSH public DSA key) ssh_host_dsa_key (SSH DSA key) pinecode (PIN code for Mobile Access Routers) Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com

Factory Settings via Hardware Restore Factory Settings via hardware No need to access via Console Port Specific boot Flag must be set flags (f) : 0x8008 the router configuration is overwritten with the factory configuration flags (f) : 0x4008 the router configuration is renamed as /BSA/config/bsaStart.rescue and the factory configuration is copied such that it is used as start configuration Procedure Power-on the product The ‘Status’ LED blinks very quickly, then it blinks more slowly. When all LEDs of the front panel are lit, unplug the power cable. Repeat the process three times and then let the router boot. The restore operation will be done. Copyright © OneAccess Networks - All rights reserved - www.oneaccess-net.com