1
Discovery / Re: libcli.pm for Comware 7
« on: April 11, 2018, 04:42:06 pm »
OK - I finally found some time at work to modify libcli.pm and test each change.
It seems Comware3 enable prompt works but due to lack of screen-length disable and incorrect "more" definition it fails to complete the backup.
I totally forgot about it since testing with Comware3 was the first thing I tried few months ago...
So at the moment I am using following Comware3 definition and it works perfectly:
# HP
$cmd{'Comwar3'}{'ropr'} = 'GitsDoNid';
$cmd{'Comwar3'}{'enpr'} = '[\w+()<\[.-]+[>\]]\s?(\n%.+)?$'; # Sends a % line after login prompt!
$cmd{'Comwar3'}{'enab'} = 'super';
#$cmd{'Comwar3'}{'more'} = ' ---- More ----'; # Experimental, to get old 3Com switches backed up
$cmd{'Comwar3'}{'more'} = '---- More ----'; # added by pakalino
$cmd{'Comwar3'}{'page'} = 'screen-length disable'; # added by pakalino
$cmd{'Comwar3'}{'shcf'} = 'display current';
$cmd{'Comwar3'}{'cfst'} = '#';
It seems Comware3 enable prompt works but due to lack of screen-length disable and incorrect "more" definition it fails to complete the backup.
I totally forgot about it since testing with Comware3 was the first thing I tried few months ago...
So at the moment I am using following Comware3 definition and it works perfectly:
# HP
$cmd{'Comwar3'}{'ropr'} = 'GitsDoNid';
$cmd{'Comwar3'}{'enpr'} = '[\w+()<\[.-]+[>\]]\s?(\n%.+)?$'; # Sends a % line after login prompt!
$cmd{'Comwar3'}{'enab'} = 'super';
#$cmd{'Comwar3'}{'more'} = ' ---- More ----'; # Experimental, to get old 3Com switches backed up
$cmd{'Comwar3'}{'more'} = '---- More ----'; # added by pakalino
$cmd{'Comwar3'}{'page'} = 'screen-length disable'; # added by pakalino
$cmd{'Comwar3'}{'shcf'} = 'display current';
$cmd{'Comwar3'}{'cfst'} = '#';