Welcome, Guest. Please login or register.

Author Topic: Backup of Netgear GS110TPv3?  (Read 856 times)

padawan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Backup of Netgear GS110TPv3?
« on: November 22, 2023, 02:12:27 pm »
Hello Community,

does anybody know how to backup a Netgear GS110TPv3 with nedi?
This switch has a CLI and is accessable through ssh.

I get the following message while trying to make a backup:


root@mgmt-nedi:/var/nedi# sudo -u www-data /var/nedi/nedi.pl -v -kK -B0 -P1 -L"admin;2" -SAFGgadobewitjumpsvx -a"IP address"
...
Prepare (CLI)  ----------------------------------------------------------------  Wed Nov 22 12:44:09 2023
PREP:Unknown OS other (mode shru)

Write Device Info -------------------------------------------------------------  Wed Nov 22 12:44:09 2023
WDEV:Netgear-G012 written to nedi.devices
...


The information about this switch is here: https://www.netgear.de/support/product/gs110tpv3#docs

It is a nice littel POE+ Switch with many features. Maybe someone else is already using Nedi with this device.
"show running config" is working as expected.

Any assistance to solve this would be appreciated

Best regards

padawan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Backup of Netgear GS110TPv3?
« Reply #1 on: November 22, 2023, 03:55:47 pm »
I did a bit of research and found out that the manufacturer can be found using snmpwalk.

iso.3.6.1.2.1.47.1.1.1.1.12.67108992 = STRING: "Netgear"

As soon as this manufacturer is stored for the table devices in the MySQL database for that device and the file

inc/libcli.pm

is extended by the following line

$cmd{'Netgear'}{'more'} = '--More--';

the config is at least read (but not yet saved).

Creating a backup with
sudo -u www-data /var/nedi/nedi.pl -v -kK -B0 -P1 -L"admin;2" -SAFGgadobewitjumpsvx -a"IPaddress"

looks like that now:

...
WAIT:show run
WAIT:SYSTEM CONFIG FILE ::= BEGIN
WAIT:! Model: GS110TPv3
...


If anybody can help, it would be great.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2901
    • View Profile
    • NeDi
Re: Backup of Netgear GS110TPv3?
« Reply #2 on: December 13, 2023, 12:01:06 pm »
Did you add config start match as well?

$cmd{'IOS-rtr'}{'cfst'} = '^Current';

You can simply use '.' to match anything returned after the show command...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo