Welcome, Guest. Please login or register.

Author Topic: Problem backup Aerohive AP  (Read 236 times)

mmarodin

  • Newbie
  • *
  • Posts: 8
    • View Profile
Problem backup Aerohive AP
« on: November 11, 2016, 05:42:29 PM »
Hi.

I've a problem trying to backup Aerohive APs.
Debugging the discover it seems to work, but it fails with an error:
Use of uninitialized value in regexp compilation at ./inc/libcli.pm line 1105.

Here the debug part:
Code: [Select]
[nedi@test-mon01 nedi]$ ./nedi.pl -SsamirfgtedbpowAO -B2 -vka 192.168.0.201
RCFG:./nedi.pl path is relative
CLI :IO-Pty loaded
WEB :LWP-UserAgent loaded
RDEV:65 devices read from nedi.devices
OUI :24975 NIC vendor entries read
RMON:0 entries (dev) read from nedi.monitoring
RMON:0 entries (node) read from nedi.monitoring
RUSR:1 entries (groups & 8 = 8 AND (phone != '' OR email != '')) read from nedi.users
TODO:192.168.0.201  192.168.0.201             added
RADR:1572 IF MAC, 47 IP and 9 IPv6 addresses read.
MAIN:10 threads, 1st from Fri Nov 11 10:15:14 2016 seems ok adding this one

Network Discovery (1.5.225p3) ./nedi.pl -SsamirfgtedbpowAO -B2 -vka 192.168.0.201
Started with 1 seeds at Fri Nov 11 12:40:19 2016
-------------------------------------------------------------------------------
Device                          Status                          Todo/Done-Time
===============================================================================
DISC:192.168.0.201 ID 192.168.0.201

Identify 192.168.0.201 ++++++++++++++++++++++++++
SNMP:Connect 192.168.0.201 public v2 Tout:2s MaxMS:1472 Retry:1 NB:0
IDNT:Name=test-ap230-01
SOBJ:Reading 1.3.6.1.4.1.26928.1.def (HiveAP330)
IDNT:OS=Aerohive SRV=6 TYPE=HiveAP330
DISC:no skip policy using -S samirfgtedbpowAO

Enterprise   ------------------------------------------------------------------
SNMP:Connect 192.168.0.201 public v2 Tout:2s MaxMS:2048 Retry:1 NB:0

Interfaces   ------------------------------------------------------------------
RIF :17 IF read (WHERE device = 'test-ap230-01') from nedi.interfaces
SNMP:Connect 192.168.0.201 public v2 Tout:5s MaxMS:1472 Retry:1 NB:0
IF  :Walking high-speed
IF  :Index Name          Spd Dup St Pvid Description     Alias             PoE
IF  :     1 lo             0  -   3    0 lo                                  0
IF  :     2 tunl0          0  -   0    0 tunl0                               0
IF  :     3 gre0           0  -   0    0 gre0                                0
IF  :     4 sit0           0  -   0    0 sit0                                0
IF  :     5 ip6tnl0        0  -   0    0 ip6tnl0                             0
IF  :     6 Et0            0  -   3    0 eth0                                0
IF  :     8 Et1            0  -   1    0 eth1                                0
IF  :    10 wifi0          0  -   3    0 wifi0                               0
IF  :    11 wifi1          0  -   3    0 wifi1                               0
IF  :    14 mgt0           0  -   3    0 mgt0                                0
IF  :    17 wifi0.1        0  -   3    0 wifi0.1                             0
EVNT:MOD=D/1 L=150 CL=supe TGT=test-ap230-01 MSG=1 available Ethernet port is below threshold of 5

IfAddresses  ------------------------------------------------------------------
IFIP:No useip policy set, always using discovered IPs
SNMP:Connect 192.168.0.201 public v2 Tout:2s MaxMS:1472 Retry:1 NB:0
IFIP:Walking old address table
IFIP:192.168.0.201/24 on mgt0 is ok & unique
IFIP:127.0.0.1/8 on lo is not usable

KeyScan       -----------------------------------------------------------------
ERR :ssh-keyscan rsa failed, trying dsa
KEY :# 192.168.0.201 SSH-2.0-OpenSSH_5.9 (DSA) added to ~/.ssh/known_hosts

Prepare (CLI)  ----------------------------------------------------------------
PREP:cfg supported and user admin;1 exists

Config (CLI)   ----------------------------------------------------------------
SSH :admin;1@192.168.0.201:22 Tout:2s OS:Aerohive EN:[\w+().-]+#\s?$
PTY :Forking ssh  -l admin 192.168.0.201
CLI2:Matched 'password:' sending password
CLI3:Password sent
CLI8:Matched enable prompt, OK
CMDR:console page 0 result is OK
CMDR:show config running result is OK
[b]Use of uninitialized value in regexp compilation at ./inc/libcli.pm line 1105.[/b]
WAIT:show config running
WAIT:security mac-filter Test default permit
WAIT:security-object TEST_MOBILE
WAIT:security-object TEST_MOBILE security protocol-suite wpa2-aes-psk ascii-key ***
WAIT:security-object TEST_MOBILE default-user-profile-attr 104
WAIT:ssid TEST_MOBILE
WAIT:ssid TEST_MOBILE security-object TEST_MOBILE
WAIT:ssid TEST_MOBILE security mac-filter TEST_MOBILE
WAIT:hive Test
WAIT:hive Test security mac-filter Test
WAIT:hive Test manage snmp
WAIT:hive Test password ***
WAIT:interface eth0 manage snmp
WAIT:interface eth1 manage snmp
WAIT:interface wifi1 mode access
WAIT:interface mgt0 hive Test
WAIT:interface mgt0 vlan 30
WAIT:interface wifi1 ssid TEST_MOBILE
WAIT:no system led power-saving-mode
WAIT:lldp
WAIT:lldp max-power 154
WAIT:access-console security protocol-suite wpa-auto-psk ascii-key ***
WAIT:hostname test-ap230-01
WAIT:admin root-admin admin password ***
WAIT:interface mgt0 ip 192.168.0.201 255.255.255.0
WAIT:ip route net 0.0.0.0 0.0.0.0 gateway 192.168.0.1
WAIT:no interface mgt0 dhcp client
WAIT:dns server-ip 192.168.0.1
WAIT:dns domain-name domain.local
WAIT:ntp server 192.168.0.1
WAIT:ntp interval 1440
WAIT:clock time-zone 1
WAIT:clock time-zone daylight-saving-time 03-27 01:59:59 10-30 02:59:59
WAIT:no snmp trap-info over-capwap
WAIT:snmp trap-info over-snmp
WAIT:snmp trap-host v2c 192.168.0.1 community testcommunity
WAIT:console page 0
WAIT:config version 43
WAIT:config rollback enable
WAIT:snmp location "server room"
WAIT:no snmp reader version any community public
WAIT:snmp reader version v2c community testcommunity 192.168.0.1
WAIT:snmp reader version v2c community public 192.168.0.0/24
WAIT:capwap client server name 10.10.10.10
WAIT:capwap client dtls hm-defined-passphrase *** key-id 1
WAIT:capwap client vhm-name Test
WAIT:no capwap client dtls negotiation enable
WAIT:location aerohive enable
WAIT:no location aerohive list-match enable
WAIT:qos policy def-user-qos user-profile 2000000 10 user 1000000
WAIT:qos policy def-user-qos qos 0 wrr 1000000 10
WAIT:qos policy def-user-qos qos 1 wrr 1000000 20
WAIT:qos policy def-user-qos qos 2 wrr 1000000 30
WAIT:qos policy def-user-qos qos 3 wrr 1000000 40
WAIT:qos policy def-user-qos qos 4 wrr 1000000 50
WAIT:qos policy def-user-qos qos 5 wrr 1000000 60
WAIT:qos policy def-user-qos qos 6 strict 20000 0
WAIT:qos policy def-user-qos qos 7 strict 20000 0
WAIT:user-profile Test qos-policy def-user-qos vlan-id 15 attribute 10
WAIT:no bonjour-gateway enable
WAIT:bonjour-gateway realm "address here"
WAIT:application reporting auto
ERR :No config ()

ProPolicy    -------------------------------------------------------------------
PPOL :No actions triggered

Write Device Info -------------------------------------------------------------
WDEV:test-ap230-01 written to nedi.devices
WIF :17 interfaces written to nedi.interfaces
WVLN:0 vlans written to nedi.vlans
WNET:2 networks written to nedi.networks
DISC:ToDo/Done-Time                                        0/1-0s

===============================================================================
MAIN:1 devices discovered
MAIN:11 threads running right now
ALRT:0 mails and 0 SMS sent with 0 events

MacLinks ------------------------------------------------------------------------
ITER:1 found 0 MAC links

END :Took 0 minutes

Could you help me?
Thanks, bye

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2495
    • View Profile
    • NeDi
Re: Problem backup Aerohive AP
« Reply #1 on: November 15, 2016, 12:49:25 PM »
Change line 157 in libcli.pm to:

$cmd{'Aerohive'}{'cfst'} = '.';

Will be fixed in 1.6...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

mmarodin

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Problem backup Aerohive AP
« Reply #2 on: November 17, 2016, 04:12:34 PM »
Thanks, it works!