question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: HP Procurve send_command strips lines after the 80th character

See original GitHub issue

We have some lengthy lines on our running configuration files and when a line gets over 80 characters a “\n” is inserted. The good thing is that if a word is in between is not cut in half but the new line is inserted just before.

Could this be fixed so it could support a length of 110 characters? I noticed that fortinet uses a width of 100 chars but it has it’s own class, I don’t know how much work would be to create a specific class just for Procurve switches.

This are two examples where it happens:

ip authorized-managers 10.123.21.21 255.255.255.255 access operator
 access-method snmp
alias "portfull" "show interfaces custom all port:8 type enabled status name:20
 vlan"

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fefa2kcommented, May 11, 2016

The width can be modified on the fly with: ‘’‘ssh_object.remote_conn.resize_pty(width=x)’‘’

So I will probably just go with the fixed length solution. Thanks Kirk.

0reactions
fefa2kcommented, May 12, 2016

Yes, you are totally right, it doesn’t make sense that paramiko/netmiko does the wrapping, it just delivers the switch output, which had previously arranged the window size on the session establishment. Thanks again

Read more comments on GitHub >

github_iconTop Results From Across the Web

HP Switch Software - Interface Access via Console/Serial Link ...
If width is not specified, 80 characters is the default. Automatically wraps on word boundaries (such as spaces) for non-columnar output.
Read more >
HP ProCurve Command Line Interface Reference
This reference describes the Command Line Interface (CLI) for the following Hewlett-Packard Routing Switches. •. HP ProCurve Routing Switch 9315M.
Read more >
HP procurve - truncating characters · Issue #1135 - GitHub
It appears the show command is echoed back into the read_channel along with the legitimate output. The following not-so-clean :) code seemed to ......
Read more >
Aruba 2530 Access Security Guide for ArubaOS-Switch 16.10
Before you connect your switch to a network, Hewlett Packard Enterprise strongly ... After pressing Enter, the wizard exits to the command line...
Read more >
HP 5130 EI Switch Series - Login
The only warranties for HP products and services are set forth in the express warranty ... A command line can have up to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found