cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
859
Views
0
Helpful
5
Replies

Creating Logfiles on Cisco Nexus 9000 Switch

vondoom2
Level 1
Level 1

We used to use Macro scripts for testing on a Cisco Catalyst 3850 switch.  Below is an example of the logwrites from the script we used.  I am currently trying to get the same routine to work on the Nexus 9000 switch and it has not been working so far. Can anyone confirm that logwrites do work with this particular switch please?  

(Below is Example from a Catalyst 3850 Switch)

;Write test results to Summary file
logopen summary_log 0 0
logwrite '====================================================='#13#10
logwrite 'Network Connectivity Test Summary'#13#10
logwrite #13#10
logwrite 'Working DIR: '
logwrite WDIR
logwrite #13#10
logwrite 'Log DIR: '
logwrite log_DIR
logwrite #13#10
logwrite logpath
logwrite #13#10
logwrite '====================================================='#13#10
logwrite #13#10#13#10#13#10
logwrite ' Network Connectivity '
logwrite TestStatus
logwrite #13#10

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

what script is this ? how are you running? from what devices ?

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The script is written in C Programming to run using TeraTerm from our local test PC connected to the Console port of the Nexus Switch

honestly not sure what that C script trying to do here.

can you please explain the goal you looking to do or already doing with Cat 3850 so we can suggest something similar ?

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The goal was to have a logfile created as my testing transpires, that way should a problem occur I can review the logfile to see what was happening at the time of event.  Also, it is a tool for proof of completion without any faults.  And as I am responding and I am here to let you know that the issue was found.  As painstaking as it is there were a few extra spaces in the script when looking for the call commands and the script was not happy with that.  It took a bit of time and a lot of screen watching but the issue was found.  Thank you so much for your responses and willingness to assist.

Thank you and glad you able to resolve the issue.,

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help