If you mean using EEM, you cam do that using something like:
set output [cli_run [list "enable" "ping www.cisco.com"]]
if { [regexp {Echos to ([\d\.]+)} $output -> ip] } {
puts "Address is $ip"
}
Getting Started
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: