View Only

 Suppress printout of results at XMC->Scripts

Jump to Best Answer
StephanH's profile image
StephanH posted 04-20-2021 07:37

Hello community,

if you query a switch with a pyhton script in XMC, when you execute the script via the XMC GUI, everything that the switch returns is displayed under results. So e.g. if you send a "show vlan" all vlans will be displayed, even if you only want to process the output and not display it.

Is there a way to change the behavior so that all results are suppressed and only shows what you want to see, e.g. what you output with print?


Ludovico Stevens's profile image
Ludovico Stevens

Don’t think that is possible.

The approach I use is to have a clean summary printed at the very end. So you just scroll to the bottom to see that.

StephanH's profile image

Hello Ludivico,

thank you for the quick reply. Your suggestion I use so far also.

If you have a lot of show commands the output becomes a bit long and the customer has a long way to scroll down.

But no problem, would have been only a nice optical thing.