CLI em modo menu

Usar Menus poderá ser uma forma rápida de permitir acesso a algumas das funções dos equipamentos. Existem outras formas como CBAC, ou atribuindo diferentes privilégios aos users.
username SOC privilege 15 password 0 CISCO
!Apos autenticação o user e redirecionado para o Menu através do autocommand
username SOC autocommand menu SOC
!
menu SOC title #
Menu for Level 1 SOC users
#
menu SOC text 1. Show Running Config
menu SOC command 1. show running-config
menu SOC text 2. Show Interface Brief
menu SOC command 2. show ip interface brief
menu SOC text 3. Show clock
menu SOC command 3. show Clock
menu SOC text 4. Exit
menu SOC command 4. exit

line vty 0 903
login local

Testando o respectivo Menu criado

R3#telnet 192.168.1.1
Trying 192.168.1.1 … Open

User Access Verification

Username: SOC
Password:
Menu for Level 1 SOC users

1.         Show Running Config

2.         Show Interface Brief

3.         Show clock

4.         Exit

Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            192.168.1.1      YES NVRAM  up                    up

Menu for Level 1 SOC users

1.         Show Running Config

2.         Show Interface Brief

3.         Show clock

4.         Exit

*03:53:17.163 UTC Fri Mar 1 2002
Menu for Level 1 NOC users

1.         Show Running Config

2.         Show Interface Brief

3.         Show clock

4.         Exit

[Connection to 192.168.1.1 closed by foreign host]
R3#

Leave a Comment

Translate »
Google no longer supports Google Images API and this plugin can't work.

You can try to use other plugins with the same feature:
WP Picasa Box - http://codecanyon.net/item/wp-picasa-box/16099962
WP Pixabay Search And Insert - http://wpclever.net/downloads/wordpress-pixabay-search-and-insert