- ‘그 시절 우리가 따랐던 원칙’을 대체하는 새 IT 리더십 규칙 8가지
- Hidden costs of compromised privacy: Protecting brands and customers
- NIS2, è scattata l’ora della compliance. Ma la corsa dei CIO non è finita
- Bubba AI, Inc. is launching Comp AI to help 100,000 startups get SOC 2 compliant by 2032
- 2025년 클라우드 시장 19% 성장··· AWS 올해 투자액 1,000억 달러 초과할 것
IOS Tricks with TCLs
Parser
Find the subcommands under a specific command such as ‘Clear’ that contain “call” keyword. Example: clear call voice …
Router# show parser dump exec | inc clear .*[a-z]+.*call
1 clear controller call-counters timeslots
1 clear controller call-counters timeslots
1 clear controller call-counters timeslots
1 clear controller call-counters timeslots
1 clear controller call-counters timeslots
1 clear controller call-counters timeslots
1 clear controller call-counters
1 clear controller call-counters system-hwm
1 clear controller call-counters all
1 clear call voice causecode long-dur-call
1 clear call voice causecode calling-number
1 clear call voice causecode called-number
1 clear call threshold total-calls
1 clear call threshold total-calls
1 clear call threshold interface int-calls
1 clear call threshold interface int-calls
1 clear crypto call admission statistics
TCL Script to Ping Group of Addresses
Router# tclsh
foreach address {
10.0.0.1
10.0.0.2
10.0.0.3
} { ping $address re 3 ti 1 }
Type escape sequence to abort.
Sending 10, 1500-byte ICMP Echos to 172.12.23.2, timeout is 2 seconds:
!!!!!!!!!!
It is useful to test your network reachability whenever you perform a change in routing system.
Define a Ping Macro for Catalyst Switches
Since TCL is not supported by Catalyst switches, we need to define a macro to ping addresses:
Switch(config)# macro name PING
do ping 10.0.0.100
do ping 10.0.1.100
do ping 10.0.2.100
@
Switch(config)# macro global apply PING
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.100, timeout is 2 seconds:
!!!!!