cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7959
Views
15
Helpful
6
Replies

TCLscript on nexus 7000

Ali Koussan
Level 1
Level 1

hi

have anyone tried to write ping tcl script on nexus 7000 ?

Sent from Cisco Technical Support iPad App

1 Accepted Solution

Accepted Solutions

Oleksandr Nesterov
Cisco Employee
Cisco Employee

Hi Ali, Here is TCL guid for Nexus platform

http://www.cisco.com/en/US/docs/switches/datacenter/sw/5_x/nx-os/fundamentals/configuration/guide/Cisco_Nexus_7000_Series_NX-OS_Fundamentals_Configuration_Guide_Release_5.x_chapter9.html

Also here is simple ping script:

nexus# tclsh

nexus-tcl# forech address {

> X.X.X.X

> X.X.X.X

> X.X.X.X

>} {exec "ping $address" }

HTH,

Alex

View solution in original post

6 Replies 6

Oleksandr Nesterov
Cisco Employee
Cisco Employee

Hi Ali, Here is TCL guid for Nexus platform

http://www.cisco.com/en/US/docs/switches/datacenter/sw/5_x/nx-os/fundamentals/configuration/guide/Cisco_Nexus_7000_Series_NX-OS_Fundamentals_Configuration_Guide_Release_5.x_chapter9.html

Also here is simple ping script:

nexus# tclsh

nexus-tcl# forech address {

> X.X.X.X

> X.X.X.X

> X.X.X.X

>} {exec "ping $address" }

HTH,

Alex

Thanks alex ,

so it is the same as IOS ...nice to know.

Ali

Hi Alex

I tried the script but it did not work , it gave error at the word "$address"

Have you tested the script before ?

Ali

Sent from Cisco Technical Support iPad App

Do this:

foreach address {


} {cli ping $address}

Sent from Cisco Technical Support iPad App

Thanks Alex , I will try it.

Ali

Sent from Cisco Technical Support iPad App

Review Cisco Networking for a $25 gift card