Maintenance is complete- We've moved from the saas.hpe.com domain to softwaregrp.com click to read more
As part of our journey to complete our separation work and our future integration with Micro Focus, we've now updated our domain for the community. This is an interim step, which will be followed by a series of future update / improvements: - Piloting Idea boards - Refreshing the entire UI. (more to come later) - and more
Network Automation Practitioners Forum
cancel

HPNAv10 advScript word-wrapping long output lines

AKCL2016
New Member.

HPNAv10 advScript word-wrapping long output lines

I have a script that is sending a large list of custom output from a switch, on every port of the switch.

Output is so long in some cases, HPNA is word-wraping the output which HPNA perl external API is seeing as multiple-lines per "output line", which is causing issue with our perl execution script.

 

Here's the output from HPNA:

Description=Available|Port=Eth1/1|Status=disabled|VLan=1|IPAddr=unassigned|Module=48x1/10G-T 6x40G Ethernet Module|Duplex=auto|Speed=auto|Type=10g
Description=PAT_testing_via_iggy|Port=Eth1/2|Status=disabled|VLan=routed|IPAddr=2001::1|Module=48x1/10G-T 6x40G Ethernet Module|Duplex=auto|Speed=auto|Type=10g

 

Clearly showing the Module=... is split into two lines due to "advanced script output widith" of some sort?

Is there a default of width characters/size?  How can I increase this? thanks! 

1 REPLY
Highlighted
Huy_V
Super Contributor.

Re: HPNAv10 advScript word-wrapping long output lines

If you search in this forum, someone already provided a similar answer to your problem using "print join" in Perl to accomplish the job.

For example:

@config = $con->cmd("show run | include ....";

print join ("\n", @config);

If this does not help, please post your script.

Thanks,

Huy