Welcome, Guest. Please login or register.

Author Topic: Dlink 3100 and 1510 CLI access and config backup  (Read 1821 times)

leckermojito

  • Newbie
  • *
  • Posts: 16
    • View Profile
Dlink 3100 and 1510 CLI access and config backup
« on: January 30, 2019, 10:16:13 pm »
Hi Remo,

could you please add this to your next version of Nedi:

Other-Defgen:
<option value="DLINK3100"<?= ($os == "DLiNK3100")?" selected":"" ?>>DLINK3100
<option value="DLINK1510"<?= ($os == "DLINK1510")?" selected":"" ?>>DLINK1510

libcli:
# DLINK3100
$cmd{'DLINK3100'}{'ropr'} = '(.+?)>\s?$';
$cmd{'DLINK3100'}{'enpr'} = '(.+?)#\s?$';
$cmd{'DLINK3100'}{'page'} = 'disable clipaging';
$cmd{'DLINK3100'}{'shcf'} = 'show configuration running';
$cmd{'DLINK3100'}{'cfst'} = '!-';

# DLINK1510
$cmd{'DLINK1510'}{'ropr'} = '(.+?)>\s?$';
$cmd{'DLINK1510'}{'enpr'} = '(.+?)#\s?$';
#$cmd{'DLINK1510'}{'enab'} = 'enable';
$cmd{'DLINK1510'}{'page'} = 'terminal length 0';
$cmd{'DLINK1510'}{'shcf'} = 'show running-config';
$cmd{'DLINK1510'}{'cfst'} = '#--';

libmisc:
        }elsif( $_[0] =~ /^1.3.6.1.4.1.(171)\./ ){
                return'D-Link';

I will post the defgen of the switches soon in the definitions section

@Remo: Thanks for your great tool!
cheers

Benjamin

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2901
    • View Profile
    • NeDi
Re: Dlink 3100 and 1510 CLI access and config backup
« Reply #1 on: February 04, 2019, 06:18:17 pm »
Ok, will do. Thanks for your work!
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo