1-Tek bir komutta birden çok CLI komutu yürütme
show clock ; show hostname
Ayrcı yapılandırma modunda da çalışabilir.
conf t ; hostname N3K
2-Snapshot ve Rollback ayarlarını yapabilirsiniz.
checkpoint N3K
show checkpoint summary
1) N3K:
Created by admin
Created at Tue, 11:23:07 24 Nov 2020
Size is 18,025 bytes
Description: None
N3K(config)# rollback running-config checkpoint N3K
Collecting Running-Config
Generating Rollback patch for switch profile
Rollback Patch is Empty
Note: Applying config parallelly may fail Rollback verification
Collecting Running-Config
#Generating Rollback Patch
Rollback Patch is Empty
Rollback completed successfully.
3-Accounting Logs
Son değişiklikleri kimin yaptığını görebiliriz.
show accounting log , show accounting log | last 10
Ayrıca log çıktılarını da kontrol edebilirsiniz.
N3K(config)# show logging last ?
*** No matching command found in current mode, matching in (exec) mode ***
<1-9999> Enter number of lines to display
4-Terminal rengi değiştirilebilir.
N3K(config)# terminal color
5-Command Aliases
Komutlara takma isim verilebilir.
N3K(config)# cli alias name wr copy running-config startup-config
N3K(config)# wr
[########################################] 100%
Copy complete, now saving to disk (please wait)...
6-Customize terminal settings
Terminal ayarlarını özelleştirebiliriz.
N3K(config)# show terminal
TTY: /dev/ttyS0 Type: "vt100"
Length: 24 lines, Width: 80 columns
Session Timeout: 0 minutes
Event Manager CLI event bypass: no
Redirection mode: ascii
Accounting log all commands (including show commands): no
Vlan mutex value: 1
Vlan batch mode: yes
N3K(config)# terminal session-timeout 0
!
N3K(config)# terminal length 30
N3K(config)# terminal width 100
7-CLI history
Komut geçmişini gözlemleyebiliriz.
N3K# show cli history
0 10:53:13 end
1 10:53:15 conf t
2 10:55:47 wr
8-Running Linux Commands
Linux komutlarını çalıştırabilirsiniz.
feature bash-shell
!
run bash clear
9-CLI Variables
CLI değişkenlerini ayarlayabilirsiniz.
N3K# tac-pac bootflash:$(SWITCHNAME)-$(TIMESTAMP)-show-tech-all.gz
N3K# dir bootflash: | i show-tech
397943 Nov 24 11:54:36 2020 N3K-2020-11-24-11.54.16-show-tech-all.gz
N3K# dir bootflash:
397943 Nov 24 11:54:36 2020 N3K-2020-11-24-11.54.16-show-tech-all.gz
N3K# delete bootflash:N3K-2020-11-24-11.54.16-show-tech-all.gz
10-CallHome
Cisco CallHome özelliği ile cihazlar üzerinde oluşan problemlerde yöneticilere mail atabilirisiniz.
Doğrudan Cisco ile bir hizmet sözleşmeniz varsa, Cisco TAC ile Otomatik Hizmet talepleriniz başlatılabilir.(Smartnet Sözleşme Numarası - Cisco Kimliği gereklidir.)
conf t
snmp-server contact personname@companyname.com
callhome
email-contact administrator@mycompany.com
phone-contact +90-555-555-555-555
streetaddress TR/ANK/CANKAYA
Hedef Profil >
callhome
destination-profile Destek format full-txt
destination-profile full-txt-destination email-addr kaanozdere@gmail.com
destination-profile ciscoTAC-1 email-addr x.x.x.x@cisco.com
destination-profile full-text-destination message-level 5
destination-profile full-text-destination message-size 10000
destination-profile Destek alert-group All
!
transport email smtp-server 192.168.5.5 veya use-vrf SMTP-VRF
show callhome
show callhome destination-profile profile Destek
show callhome transport
show startup-config callhome
show running-config callhome [all]