Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

TCLscript on nexus 7000

hi

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

Sent from Cisco Technical Support iPad App

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

TCLscript on nexus 7000

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

5 REPLIES
Cisco Employee

TCLscript on nexus 7000

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

New Member

TCLscript on nexus 7000

Thanks alex ,

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

Ali

New Member

Re: TCLscript on nexus 7000

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

Bronze

Re: TCLscript on nexus 7000

Do this:

foreach address {


} {cli ping $address}

Sent from Cisco Technical Support iPad App

New Member

Re: TCLscript on nexus 7000

Thanks Alex , I will try it.

Ali

Sent from Cisco Technical Support iPad App

3422
Views
5
Helpful
5
Replies
CreatePlease login to create content