10-26-2022 12:44 PM
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
10-26-2022 01:56 PM
what script is this ? how are you running? from what devices ?
=====Preenayamo Vasudevam=====
***** Rate All Helpful Responses *****
10-26-2022 02:02 PM
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
10-27-2022 10:53 AM
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 ?
=====Preenayamo Vasudevam=====
***** Rate All Helpful Responses *****
10-27-2022 03:02 PM
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.
10-27-2022 04:17 PM
Thank you and glad you able to resolve the issue.,
=====Preenayamo Vasudevam=====
***** Rate All Helpful Responses *****
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide