Request: HP Procurve send_command strips lines after the 80th character
See original GitHub issueWe 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:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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