Wrong UID/passwd and VDdict login errors

Posted on
Fri Oct 19, 2018 3:37 pm
DPattee offline
Posts: 453
Joined: Jan 14, 2004
Location: Redmond, WA

Wrong UID/passwd and VDdict login errors

Running plugin 7.25.135, I'm getting some devices created in Indigo but I'm also getting errors in my event log:

Code: Select all
 unifi-Report                    getting _id for AP Access Point 1  /stat/device/fc:ec:da:d4:60:57
   Connection                      error: (wrong UID/passwd, ip number?) ...>>{ "data" : [ ] , "meta" : { "msg" : "api.err.Invalid" , "rc" : "error"}}<<
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   125  100    72  100    53     74     55 --:--:-- --:--:-- --:--:--    74
100   125  100    72  100    53     74     55 --:--:-- --:--:-- --:--:--    74

   unifi-Report                    getting _id for AP AP_b4:fb:e4:23:e9:15  /stat/device/b4:fb:e4:23:e9:15
   Connection                      error: (wrong UID/passwd, ip number?) ...>>{ "data" : [ ] , "meta" : { "msg" : "api.err.Invalid" , "rc" : "error"}}<<
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   125  100    72  100    53     81     59 --:--:-- --:--:-- --:--:--    81
100   125  100    72  100    53     81     59 --:--:-- --:--:-- --:--:--    81



For example this section has "wrong UID/passwd" errors for my two access points. Using the same user/pwd and IPs that I defined in the plugin configuration screen, I am able to ssh in to those two APs.

SSHing in to my USH, the 2 APs, and my Switch, the user/pass works properly and the Prompt patterns match what the plugin prompts are set to for each of those types of devices.

Additionally the following errors appear about a missing userid:

Code: Select all
Connection                      VDdict login disabled, userid is empty
   Connection                      VDdict login disabled, userid is empty
   uniFiAP                         executeCMDonNVR has error, no json object returned: ('', '  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to  port 7443: Connection refused\n')
   Connection                      VDdict login disabled, userid is empty

Posted on
Fri Oct 19, 2018 6:03 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: Wrong UID/passwd and VDdict login errors

could you email me a screen copy of your config & menus print config

karlwachs at me for com

Posted on
Fri Oct 19, 2018 7:05 pm
DPattee offline
Posts: 453
Joined: Jan 14, 2004
Location: Redmond, WA

Re: Wrong UID/passwd and VDdict login errors

Sure, just sent them over. I blurred the password in the screenshots and the log since it is my cloud password ;)

Posted on
Fri Oct 19, 2018 7:14 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: Wrong UID/passwd and VDdict login errors

the second part is a little bug. It is just a message. Does not do anything. It should not check the NVR part if not enabled or userid is empty .. will fix in the next release

For the first part, could you enable debug connection and post the log .

Thanks

Karl

Posted on
Fri Oct 19, 2018 8:12 pm
DPattee offline
Posts: 453
Joined: Jan 14, 2004
Location: Redmond, WA

Re: Wrong UID/passwd and VDdict login errors

I removed a bunch of the 'starting device...' and the '...newup' lines for for every single device in those 2 sections, and I trimmed off a bunch of those USG Kernel: IPv4: martian source... from the end , I don't think I removed anything important... And I did a find/replace on my 2 passwords and replaced them with **localpassword** and **cloudpassword**, other than that here's the log output with 'everything' selected:

Code: Select all


Starting plugin "uniFiAP 7.25.135" (pid 61067)
  uniFiAP                         setting parameters for indigo version: >>7<<
  Started plugin "uniFiAP 7.25.135"
  uniFiAP                         initializing    ... variables
  uniFiAP                         logfile handling: regular indigo logfile
  uniFiAP                         myLogSet settting parameters -- logFileActive= no;  logFile= ;  debugLevel= ['all']; maxFileSize= 5000000
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.8 ' | grep /usr/bin/expect | grep -v grep
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.28 ' | grep /usr/bin/expect | grep -v grep
  KILL                            killing request: ps -ef | grep uniFiAP | grep '192.168.1.x ' | grep /usr/bin/expect | grep -v grep
  KILL                            killing request: ps -ef | grep uniFiAP | grep '192.168.1.x ' | grep /usr/bin/expect | grep -v grep
  KILL                            killing request: ps -ef | grep uniFiAP | grep '192.168.1.x ' | grep /usr/bin/expect | grep -v grep
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.1 ' | grep /usr/bin/expect | grep -v grep
  KILL                            killing request: ps -ef | grep uniFiAP |   grep /usr/bin/expect   | grep -v grep
  unifi-Report                    getting _id for AP Access Point 1  /stat/device/fc:ec:da:d4:60:57
  Connection                      /usr/bin/curl --insecure -c /tmp/cookie   --data '{"username": "dpattee", "password": "**cloudpwd**"}' https://10.0.4.102:8443/api/login
  Connection                      error: (wrong UID/passwd, ip number?) ...>>{ "data" : [ ] , "meta" : { "msg" : "api.err.Invalid" , "rc" : "error"}}<<
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   125  100    72  100    53     84     62 --:--:-- --:--:-- --:--:--    84
100   125  100    72  100    53     84     62 --:--:-- --:--:-- --:--:--    84

  unifi-Report                    getting _id for AP AP_b4:fb:e4:23:e9:15  /stat/device/b4:fb:e4:23:e9:15
  Connection                      /usr/bin/curl --insecure -c /tmp/cookie   --data '{"username": "dpattee", "password": "**cloudpwd**"}' https://10.0.4.102:8443/api/login
  Connection                      error: (wrong UID/passwd, ip number?) ...>>{ "data" : [ ] , "meta" : { "msg" : "api.err.Invalid" , "rc" : "error"}}<<
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   125  100    72  100    53     84     61 --:--:-- --:--:-- --:--:--    84

  uniFiAP                         starting device:  Access Point 1  1293425066  fc:ec:da:d4:60:57
  uniFiAP                         starting device:  Access Point 2  1944743762  b4:fb:e4:23:e9:15
  uniFiAP                         starting device:  AP_b4:fb:e4:23:e9:15  388616357  b4:fb:e4:23:e9:15
  uniFiAP                         starting device:  Ubiquiti Switch  47143014  f0:9f:c2:09:29:a6
  uniFiAP                         starting device:  Ubiquiti USG  1754394261  78:8a:20:44:59:7c
  uniFiAP                         starting device:  UniFi_00:01:2e:41:9b:e2  178629054  00:01:2e:41:9b:e2
  >> clipped lines here
  uniFiAP                          start   runConcurrentThread, initializing variables ..
  uniFiAP                         ..getting missing vendor names for MAC #
  Connection                      VDdict login disabled, userid is empty
  Connection                      VDdict login disabled, userid is empty
  Video                           /usr/bin/curl --header "Content-Type: application/json"  --insecure     https://:7443/api/2.0/camera/?apiKey=
  uniFiAP                         executeCMDonNVR has error, no json object returned: ('', '  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to  port 7443: Connection refused\n')
  Connection                      VDdict login disabled, userid is empty
  uniFiAP                         ..starting threads for 2 APs 2 sec apart (MSG-log and db-DICT)
  START                           AP Thread # 0   10.0.4.8
  START                           launching APtail  10.0.4.8
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.8 ' | grep /usr/bin/expect | grep execLog.exp | grep -v grep
  EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpwd**' 10.0.4.8
  START                           launching APdict  10.0.4.8
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.8 ' | grep /usr/bin/expect | grep dictLoop.exp | grep -v grep
  EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpwd**' 10.0.4.8
  EXPECT                          startConnect: with 10.0.4.8    APtail    admin/**localpwd**
  EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp" admin **localpwd** 10.0.4.8 BZ.v "/usr/bin/tail -F /var/log/messages"
  EXPECT                          startConnect: with 10.0.4.8    APdict    admin/**localpwd**
  EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp" admin **localpwd** 10.0.4.8 BZ.v xxxThisIsTheEndTokenxxx 60 10 "mca-dump | sed -e 's/^ *//'"   /var/log/messages
  MS-----                         10.0.4.8   0   APtail  AP
['spawn ssh admin@10.0.4.8', "admin@10.0.4.8's password: ", '', '', 'BusyBox v1.23.2 (2018-09-14 01:30:26 MDT) built-in shell (ash)', '', '', '  ___ ___      .__________.__', ' |   |   |____ |__\\_  ____/__|', ' |   |   /    \\|  ||  __) |  |   (c) 2010-2018', ' |   |  |   |  \\  ||  \\   |  |   Ubiquiti Networks, Inc.', ' |______|___|  /__||__/   |__|', '            |_/                  http://www.ubnt.com', '', '      Welcome to UniFi UAP-HD!', '', 'AP1-BZ.v3.9.54# ']
  MS-AP----                       10.0.4.8-0  spawn ssh admin@10.0.4.8
  MS-AP----                       10.0.4.8-0  admin@10.0.4.8's password:
  MS-AP----                       10.0.4.8-0  BusyBox v1.23.2 (2018-09-14 01:30:26 MDT) built-in shell (ash)
  MS-AP----                       10.0.4.8-0    ___ ___      .__________.__
  MS-AP----                       10.0.4.8-0   |   |   |____ |__\_  ____/__|
  MS-AP----                       10.0.4.8-0   |   |   /    \|  ||  __) |  |   (c) 2010-2018
  MS-AP----                       10.0.4.8-0   |   |  |   |  \  ||  \   |  |   Ubiquiti Networks, Inc.
  MS-AP----                       10.0.4.8-0   |______|___|  /__||__/   |__|
  MS-AP----                       10.0.4.8-0              |_/                  http://www.ubnt.com
  MS-AP----                       10.0.4.8-0        Welcome to UniFi UAP-HD!
  MS-AP----                       10.0.4.8-0  AP1-BZ.v3.9.54#
  START                           AP Thread # 1   10.0.4.28
  START                           launching APtail  10.0.4.28
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.28 ' | grep /usr/bin/expect | grep execLog.exp | grep -v grep
  EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpwd**' 10.0.4.28
  START                           launching APdict  10.0.4.28
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.28 ' | grep /usr/bin/expect | grep dictLoop.exp | grep -v grep
  EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpwd**' 10.0.4.28
  EXPECT                          startConnect: with 10.0.4.28    APtail    admin/**localpwd**
  EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp" admin **localpwd** 10.0.4.28 BZ.v "/usr/bin/tail -F /var/log/messages"
  EXPECT                          startConnect: with 10.0.4.28    APdict    admin/**localpwd**
  EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp" admin **localpwd** 10.0.4.28 BZ.v xxxThisIsTheEndTokenxxx 60 10 "mca-dump | sed -e 's/^ *//'"   /var/log/messages
  MS-----                         10.0.4.28   1   APtail  AP
['spawn ssh admin@10.0.4.28', "admin@10.0.4.28's password: ", '', '', 'BusyBox v1.23.2 (2018-09-14 01:30:26 MDT) built-in shell (ash)', '', '', '  ___ ___      .__________.__', ' |   |   |____ |__\\_  ____/__|', ' |   |   /    \\|  ||  __) |  |   (c) 2010-2018', ' |   |  |   |  \\  ||  \\   |  |   Ubiquiti Networks, Inc.', ' |______|___|  /__||__/   |__|', '            |_/                  http://www.ubnt.com', '', '      Welcome to UniFi UAP-HD!', '', 'AP2-BZ.v3.9.54# ']
  MS-AP----                       10.0.4.28-1  spawn ssh admin@10.0.4.28
  MS-AP----                       10.0.4.28-1  admin@10.0.4.28's password:
  MS-AP----                       10.0.4.28-1  BusyBox v1.23.2 (2018-09-14 01:30:26 MDT) built-in shell (ash)
  MS-AP----                       10.0.4.28-1    ___ ___      .__________.__
  MS-AP----                       10.0.4.28-1   |   |   |____ |__\_  ____/__|
  MS-AP----                       10.0.4.28-1   |   |   /    \|  ||  __) |  |   (c) 2010-2018
  MS-AP----                       10.0.4.28-1   |   |  |   |  \  ||  \   |  |   Ubiquiti Networks, Inc.
  MS-AP----                       10.0.4.28-1   |______|___|  /__||__/   |__|
  MS-AP----                       10.0.4.28-1              |_/                  http://www.ubnt.com
  MS-AP----                       10.0.4.28-1        Welcome to UniFi UAP-HD!
  MS-AP----                       10.0.4.28-1  AP2-BZ.v3.9.54#
  uniFiAP                         ..starting threads for GW (MSG-log and db-DICT)
  START                           launching GWtail  10.0.4.1
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.1 ' | grep /usr/bin/expect | grep execLog.exp | grep -v grep
  EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpwd**' 10.0.4.1
  START                           launching GWdict  10.0.4.1
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.1 ' | grep /usr/bin/expect | grep dictLoop.exp | grep -v grep
  uniFiAP                         ..starting threads for 1 SWs 11 sec apart (db-DICT only)
  START                           SW Thread tr # 0   10.0.4.7
  START                           launching SWdict  10.0.4.7
  KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.7 ' | grep /usr/bin/expect | grep dictLoop.exp | grep -v grep
  uniFiAP                         initialized
  EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpwd**' 10.0.4.7
  EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpwd**' 10.0.4.1
  MS-----                         10.0.4.8   0   APtail  AP
['/usr/bin/tail -F /var/log/messages', 'Oct 19 19:01:10 UBNT authpriv.info dropbear[16721]: Child connection from 10.0.4.100:52860', 'Oct 19 19:01:10 UBNT authpriv.info dropbear[16722]: Child connection from 10.0.4.100:52861', "Oct 19 19:01:10 UBNT authpriv.notice dropbear[16721]: Password auth succeeded for 'admin' from 10.0.4.100:52860", 'Oct 19 19:01:10 UBNT authpriv.info dropbear[16721]: Exit (admin): Disconnect received', "Oct 19 19:01:10 UBNT authpriv.notice dropbear[16722]: Password auth succeeded for 'admin' from 10.0.4.100:52861", 'Oct 19 19:01:10 UBNT authpriv.info dropbear[16722]: Exit (admin): Disconnect received', 'Oct 19 19:01:11 UBNT authpriv.info dropbear[16731]: Child connection from 10.0.4.100:52862', 'Oct 19 19:01:11 UBNT authpriv.info dropbear[16732]: Child connection from 10.0.4.100:52863', "Oct 19 19:01:11 UBNT authpriv.notice dropbear[16731]: Password auth succeeded for 'admin' from 10.0.4.100:52862", "Oct 19 19:01:11 UBNT authpriv.notice dropbear[16732]: Password auth succeeded for 'admin' from 10.0.4.100:52863", '']
  MS-AP----                       10.0.4.8-0  /usr/bin/tail -F /var/log/messages
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:10 UBNT authpriv.info dropbear[16721]: Child connection from 10.0.4.100:52860
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:10 UBNT authpriv.info dropbear[16722]: Child connection from 10.0.4.100:52861
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:10 UBNT authpriv.notice dropbear[16721]: Password auth succeeded for 'admin' from 10.0.4.100:52860
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:10 UBNT authpriv.info dropbear[16721]: Exit (admin): Disconnect received
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:10 UBNT authpriv.notice dropbear[16722]: Password auth succeeded for 'admin' from 10.0.4.100:52861
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:10 UBNT authpriv.info dropbear[16722]: Exit (admin): Disconnect received
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:11 UBNT authpriv.info dropbear[16731]: Child connection from 10.0.4.100:52862
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:11 UBNT authpriv.info dropbear[16732]: Child connection from 10.0.4.100:52863
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:11 UBNT authpriv.notice dropbear[16731]: Password auth succeeded for 'admin' from 10.0.4.100:52862
  MS-AP----                       10.0.4.8-0  Oct 19 19:01:11 UBNT authpriv.notice dropbear[16732]: Password auth succeeded for 'admin' from 10.0.4.100:52863
  EXPECT                          startConnect: with 10.0.4.1    GWtail    admin/**localpwd**
  EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp" admin **localpwd** 10.0.4.1 :~ "/usr/bin/tail -F /var/log/messages"
  EXPECT                          startConnect: with 10.0.4.1    GWdict    admin/**localpwd**
  EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp" admin **localpwd** 10.0.4.1 :~ xxxThisIsTheEndTokenxxx 60 10 "mca-dump | sed -e 's/^ *//'"   doNotSendAliveMessage
  EXPECT                          startConnect: with 10.0.4.7    SWdict    admin/**localpwd**
  EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp" admin **localpwd** 10.0.4.7 US.v xxxThisIsTheEndTokenxxx 60 10 "mca-dump | sed -e 's/^ *//'"   doNotSendAliveMessage
  MS-----                         10.0.4.1   GW   GWtail  GW
['spawn ssh admin@10.0.4.1', 'Welcome to EdgeOS', '', 'By logging in, accessing, or using the Ubiquiti product, you', 'acknowledge that you have read and understood the Ubiquiti', 'License Agreement (available in the Web UI at, by default,', 'http://192.168.1.1) and agree to be bound by its terms.', '', "admin@10.0.4.1's password: ", 'Linux ubnt 3.10.107-UBNT #1 SMP Thu Aug 30 06:21:39 MDT 2018 mips64', '', '  ___ ___      .__________.__', ' |   |   |____ |__\\_  ____/__|', ' |   |   /    \\|  ||  __) |  |   (c) 2010-2018', ' |   |  |   |  \\  ||  \\   |  |   Ubiquiti Networks, Inc.', ' |______|___|  /__||__/   |__|', '            |_/                  http://www.ubnt.com', '', '      Welcome to EdgeOS on UniFi Security Gateway!', '', '*NOTE*: Configuration changes made here are not persistent.', 'They will be overwritten by the controller on next provision.', '', 'Last login: Fri Oct 19 19:01:15 2018 from 10.0.4.100\r', 'admin@USG:~$ ']
  DC-----                         ipNumber: 10.0.4.8   apNumb: 0    uType: APdict   unifiDeviceType: AP  {u'wifi_caps': 32757, u'countrycode_table': [840, 124, 630], u'ip': u'10.0.4.8', u'if_table': [{u'rx....
  DC-AP---                        10.0.4.8 hostname:AP1 MAC:fc:ec:da:d4:60:57 GHz:2  essid:Abydos channel:5   nStations:1    tx_power:25   radio:ng
  DC-WF---                        [{u'state_pwrmgt': False, u'tx_rts_retries': 0, u'ip': u'10.0.4.153', u'tx_data_mpdu_bytes': 2763543....
  DC-WF-NN                        10.0.4.8 88:71:e5:40:0d:60 UniFi_88:71:e5:40:0d:60 GHz:2 ip:10.0.4.153  txRate:72000 rxRate:65000 uptime:255870  signal:-41  name:amazon-de5b6aea9  powerMgmt:False
  DC-AP---                        10.0.4.8 hostname:AP1 MAC:fc:ec:da:d4:60:57 GHz:2  essid:Atlantis channel:5   nStations:0    tx_power:25   radio:ng
  DC-AP---                        10.0.4.8 hostname:AP1 MAC:fc:ec:da:d4:60:57 GHz:5  essid:Abydos channel:128   nStations:1    tx_power:22   radio:na
  DC-WF---                        [{u'state_pwrmgt': False, u'tx_rts_retries': 0, u'ip': u'10.0.4.172', u'tx_data_mpdu_bytes': 2795757....
  DC-WF-NN                        10.0.4.8 74:75:48:84:52:e2 UniFi_74:75:48:84:52:e2 GHz:5 ip:10.0.4.172  txRate:300000 rxRate:243000 uptime:249870  signal:-72  name:  powerMgmt:False
  DC-AP---                        10.0.4.8 hostname:AP1 MAC:fc:ec:da:d4:60:57 GHz:5  essid:Atlantis channel:128   nStations:3    tx_power:22   radio:na
  DC-WF---                        [{u'state_pwrmgt': False, u'tx_rts_retries': 0, u'ip': u'10.0.4.29', u'tx_data_mpdu_bytes': 14010423....
  DC-WF-NN                        10.0.4.8 6c:19:c0:02:d2:fd Xpad Main GHz:5 ip:10.0.4.29  txRate:400000 rxRate:400000 uptime:38728  signal:-57  name:XPad-Main  powerMgmt:False
  DC-WF-NN                        10.0.4.8 9c:b6:d0:0e:33:5f UniFi_9c:b6:d0:0e:33:5f GHz:5 ip:10.0.4.119  txRate:360000 rxRate:400000 uptime:132037  signal:-64  name:DPattee-Stealth  powerMgmt:False
  DC-WF-0                         10.0.4.8 9c:b6:d0:0e:33:5f UniFi_9c:b6:d0:0e:33:5fnewUpTime:132037   oldUpTime:132021  idletime:0   idleTimeMaxSecs:5  old/new associated 10.0.4.8/10.0.4.8
  DC-WF-NN                        10.0.4.8 a8:86:dd:b0:52:7f UniFi_a8:86:dd:b0:52:7f GHz:5 ip:10.0.4.149  txRate:450000 rxRate:450000 uptime:567639  signal:-48  name:Cathedral  powerMgmt:True
  MS-----                         10.0.4.28   1   APtail  AP
['/usr/bin/tail -F /var/log/messages', 'Oct 19 19:01:12 AP2 authpriv.info dropbear[27329]: Child connection from 10.0.4.100:52864', "Oct 19 19:01:12 AP2 authpriv.notice dropbear[27329]: Password auth succeeded for 'admin' from 10.0.4.100:52864", 'Oct 19 19:01:12 AP2 authpriv.info dropbear[27331]: Child connection from 10.0.4.100:52865', 'Oct 19 19:01:12 AP2 authpriv.info dropbear[27329]: Exit (admin): Disconnect received', "Oct 19 19:01:12 AP2 authpriv.notice dropbear[27331]: Password auth succeeded for 'admin' from 10.0.4.100:52865", 'Oct 19 19:01:12 AP2 authpriv.info dropbear[27331]: Exit (admin): Disconnect received', 'Oct 19 19:01:13 AP2 authpriv.info dropbear[27339]: Child connection from 10.0.4.100:52866', "Oct 19 19:01:13 AP2 authpriv.notice dropbear[27339]: Password auth succeeded for 'admin' from 10.0.4.100:52866", 'Oct 19 19:01:13 AP2 authpriv.info dropbear[27340]: Child connection from 10.0.4.100:52867', "Oct 19 19:01:13 AP2 authpriv.notice dropbear[27340]: Password auth succeeded for 'admin' from 10.0.4.100:52867", '']
  MS-AP----                       10.0.4.28-1  /usr/bin/tail -F /var/log/messages
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:12 AP2 authpriv.info dropbear[27329]: Child connection from 10.0.4.100:52864
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:12 AP2 authpriv.notice dropbear[27329]: Password auth succeeded for 'admin' from 10.0.4.100:52864
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:12 AP2 authpriv.info dropbear[27331]: Child connection from 10.0.4.100:52865
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:12 AP2 authpriv.info dropbear[27329]: Exit (admin): Disconnect received
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:12 AP2 authpriv.notice dropbear[27331]: Password auth succeeded for 'admin' from 10.0.4.100:52865
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:12 AP2 authpriv.info dropbear[27331]: Exit (admin): Disconnect received
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:13 AP2 authpriv.info dropbear[27339]: Child connection from 10.0.4.100:52866
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:13 AP2 authpriv.notice dropbear[27339]: Password auth succeeded for 'admin' from 10.0.4.100:52866
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:13 AP2 authpriv.info dropbear[27340]: Child connection from 10.0.4.100:52867
  MS-AP----                       10.0.4.28-1  Oct 19 19:01:13 AP2 authpriv.notice dropbear[27340]: Password auth succeeded for 'admin' from 10.0.4.100:52867
  DC-----                         ipNumber: 10.0.4.28   apNumb: 1    uType: APdict   unifiDeviceType: AP  {u'wifi_caps': 32757, u'countrycode_table': [840, 124, 630], u'ip': u'10.0.4.28', u'if_table': [{u'r....
  DC-AP---                        10.0.4.28 hostname:AP2 MAC:b4:fb:e4:23:e9:15 GHz:2  essid:Abydos channel:1   nStations:6    tx_power:25   radio:ng
  DC-WF---                        [{u'state_pwrmgt': False, u'tx_rts_retries': 0, u'ip': u'10.0.4.222', u'tx_data_mpdu_bytes': 31338, ....
  DC-WF-NN                        10.0.4.28 00:24:23:30:8a:cd UniFi_00:24:23:30:8a:cd GHz:2 ip:10.0.4.222  txRate:54000 rxRate:54000 uptime:9006  signal:-44  name:  powerMgmt:False
  DC-WF-NN                        10.0.4.28 b0:fc:0d:fb:00:2b UniFi_b0:fc:0d:fb:00:2b GHz:2 ip:10.0.4.141  txRate:144000 rxRate:144000 uptime:163775  signal:-43  name:amazon-8c3ebb44a  powerMgmt:False
  DC-WF-NN                        10.0.4.28 50:dc:e7:57:7f:3a UniFi_50:dc:e7:57:7f:3a GHz:2 ip:10.0.4.224  txRate:72000 rxRate:72000 uptime:254479  signal:-55  name:amazon-cc9eaa3d4  powerMgmt:False
  DC-WF-NN                        10.0.4.28 64:16:66:0f:29:c3 UniFi_64:16:66:0f:29:c3 GHz:2 ip:10.0.4.30  txRate:58000 rxRate:72000 uptime:264896  signal:-60  name:09AA01AC02180T84  powerMgmt:True
  DC-WF-NN                        10.0.4.28 00:1d:6e:d4:25:31 UniFi_00:1d:6e:d4:25:31 GHz:2 ip:10.0.4.25  txRate:54000 rxRate:54000 uptime:284295  signal:-45  name:Nokia-N810-43-7  powerMgmt:True
  DC-WF-0                         10.0.4.28 00:1d:6e:d4:25:31 UniFi_00:1d:6e:d4:25:31newUpTime:284295   oldUpTime:284243  idletime:2555   idleTimeMaxSecs:5  old/new associated 10.0.4.28/10.0.4.28
  DC-WF-NN                        10.0.4.28 58:63:56:2d:b1:dc UniFi_58:63:56:2d:b1:dc GHz:2 ip:10.0.4.196  txRate:72000 rxRate:58000 uptime:351787  signal:-60  name:LaMetric-LM3518  powerMgmt:True
  DC-AP---                        10.0.4.28 hostname:AP2 MAC:b4:fb:e4:23:e9:15 GHz:2  essid:Atlantis channel:1   nStations:0    tx_power:25   radio:ng
  DC-AP---                        10.0.4.28 hostname:AP2 MAC:b4:fb:e4:23:e9:15 GHz:5  essid:Abydos channel:36   nStations:0    tx_power:25   radio:na
  DC-AP---                        10.0.4.28 hostname:AP2 MAC:b4:fb:e4:23:e9:15 GHz:5  essid:Atlantis channel:36   nStations:3    tx_power:25   radio:na
  DC-WF---                        [{u'state_pwrmgt': True, u'tx_rts_retries': 0, u'ip': u'10.0.4.9', u'tx_data_mpdu_bytes': 512048, u'....
  DC-WF-NN                        10.0.4.28 dc:0c:5c:ac:77:59 XPhone 7 GHz:5 ip:10.0.4.9  txRate:135000 rxRate:162000 uptime:182  signal:-59  name:  powerMgmt:True
  DC-WF-NN                        10.0.4.28 54:e4:3a:ee:d4:e1 UniFi_54:e4:3a:ee:d4:e1 GHz:5 ip:10.0.4.24  txRate:540000 rxRate:600000 uptime:75909  signal:-45  name:Core  powerMgmt:False
  DC-WF-NN                        10.0.4.28 28:cf:da:02:2b:17 UniFi_28:cf:da:02:2b:17 GHz:5 ip:10.0.4.167  txRate:243000 rxRate:243000 uptime:99305  signal:-72  name:Controller  powerMgmt:True
  DC-WF-0                         10.0.4.28 28:cf:da:02:2b:17 UniFi_28:cf:da:02:2b:17newUpTime:99305   oldUpTime:99253  idletime:1128   idleTimeMaxSecs:5  old/new associated 10.0.4.28/10.0.4.28
  MS-----                         10.0.4.1   GW   GWtail  GW
['/usr/bin/tail -F /var/log/messages', 'Oct 19 18:56:56 USG kernel: IPv4: martian source 52.216.16.136 from 10.0.3.177, on dev eth0', 'Oct 19 18:56:56 USG kernel: ll header: 00000000: 78 8a 20 44 59 7a 58 55 ca 11 c2 e6 08 00        x. DYzXU......', 'Oct 19 18:56:58 USG kernel: IPv4: martian source 52.216.18.224 from 10.0.3.104, on dev eth0', 'Oct 19 18:56:58 USG kernel: ll header: 00000000: 78 8a 20 44 59 7a 58 55 ca 11 c2 e6 08 00        x. DYzXU......', 'Oct 19 18:57:16 USG kernel: IPv4: martian source 52.216.18.224 from 10.0.3.104, on dev eth0', 'Oct 19 18:57:16 USG kernel: ll header: 00000000: 78 8a 20 44 59 7a 58 55 ca 11 c2 e6 08 00        x. DYzXU......', 'Oct 19 18:57:32 USG kernel: IPv4: martian source 52.216.16.136 from 10.0.3.177, on dev eth0', 'Oct 19 18:57:32 USG kernel: ll header: 00000000: 78 8a 20 44 59 7a 58 55 ca 11 c2 e6 08 00        x. DYzXU......', 'Oct 19 18:57:52 USG kernel: IPv4: martian source 52.216.18.224 from 10.0.3.104, on dev eth0', 'Oct 19 18:57:52 USG kernel: ll header: 00000000: 78 8a 20 44 59 7a 58 55 ca 11 c2 e6 08 00        x. DYzXU......', '']
  DC-----                         ipNumber: 10.0.4.1   apNumb: GW    uType: GWdict   unifiDeviceType: GW  {u'usg_caps': 131069, u'hostname': u'USG', u'ip': u'50.35.68.130', u'if_table': [{u'rx_multicast': 1....
  DC-GW-1                         78:8a:20:44:59:7c    ip:10.0.4.001   Ubiquiti USG   new data
  DC-DHCP-00                      host_table len:20    [{u'rx_packets': 25, u'tx_packets': 13, u'tx_bytes': 1027, u'rx_bytes': 5867, u'bc_packets': 7, u'ip
  DC-DHCP-0                       10.0.4.1 00:01:2e:41:9b:e2 UniFi_00:01:2e:41:9b:e2 ip:10.0.4.17 age:8 uptime:29
  DC-DHCP-0                       10.0.4.1 00:16:cb:a3:51:f6 UniFi_00:16:cb:a3:51:f6 ip:10.0.4.113 age:0 uptime:4463
  DC-DHCP-0                       10.0.4.1 0c:4d:e9:99:79:5e UniFi_0c:4d:e9:99:79:5e ip:10.0.4.102 age:3 uptime:5
  DC-DHCP-0                       10.0.4.1 2c:54:91:13:41:64 UniFi_2c:54:91:13:41:64 ip:10.0.4.202 age:37 uptime:905
  DC-DHCP-0                       10.0.4.1 50:dc:e7:57:7f:3a UniFi_50:dc:e7:57:7f:3a ip:10.0.4.224 age:0 uptime:19
  DC-DHCP-0                       10.0.4.1 54:e4:3a:ee:d4:e1 UniFi_54:e4:3a:ee:d4:e1 ip:10.0.4.24 age:0 uptime:4
  DC-DHCP-0                       10.0.4.1 58:55:ca:11:c2:e6 UniFi_58:55:ca:11:c2:e6 ip:10.0.4.185 age:6 uptime:7
  DC-DHCP-0                       10.0.4.1 58:63:56:2d:b1:dc UniFi_58:63:56:2d:b1:dc ip:10.0.4.196 age:6 uptime:71
  DC-DHCP-0                       10.0.4.1 5c:aa:fd:53:21:78 UniFi_5c:aa:fd:53:21:78 ip:10.0.4.21 age:20 uptime:96
  DC-DHCP-0                       10.0.4.1 6c:19:c0:02:d2:fd Xpad Main ip:10.0.4.29 age:22 uptime:33
  DC-DHCP-0                       10.0.4.1 74:75:48:84:52:e2 UniFi_74:75:48:84:52:e2 ip:10.0.4.172 age:2 uptime:74
  DC-DHCP-0                       10.0.4.1 88:71:e5:40:0d:60 UniFi_88:71:e5:40:0d:60 ip:10.0.4.153 age:1 uptime:9
  DC-DHCP-4                       UniFi_88:71:e5:40:0d:60        status up         GW DICT network_table
  STAT-Change                      88:71:e5:40:0d:60 st changed  down/up; UniFi_88:71:e5:40:0d:60        status up         GW DICT network_table
  DC-DHCP-0                       10.0.4.1 9c:b6:d0:0e:33:5f UniFi_9c:b6:d0:0e:33:5f ip:10.0.4.119 age:4 uptime:161
  DC-DHCP-0                       10.0.4.1 a8:86:dd:b0:52:7f UniFi_a8:86:dd:b0:52:7f ip:10.0.4.149 age:21 uptime:47769
  DC-DHCP-0                       10.0.4.1 b0:fc:0d:fb:00:2b UniFi_b0:fc:0d:fb:00:2b ip:10.0.4.141 age:9 uptime:10
  DC-DHCP-0                       10.0.4.1 b8:e9:37:3b:79:76 UniFi_b8:e9:37:3b:79:76 ip:10.0.4.22 age:7 uptime:8
  DC-DHCP-0                       10.0.4.1 b8:e9:37:8e:5b:9c UniFi_b8:e9:37:8e:5b:9c ip:10.0.4.23 age:2 uptime:756
  DC-DHCP-0                       10.0.4.1 c8:2a:14:57:a6:30 UniFi_c8:2a:14:57:a6:30 ip:10.0.4.100 age:0 uptime:8
  DC-DHCP-0                       10.0.4.1 dc:0c:5c:ac:77:59 XPhone 7 ip:10.0.4.9 age:0 uptime:0
  DC-DHCP-0                       10.0.4.1 f0:9f:c2:09:29:a7 UniFi_f0:9f:c2:09:29:a7 ip: age:0 uptime:642863
  STATUS-DHCP                     UniFi_2c:9e:fc:05:60:d6        in list status down       DHCP    dt= 126.0;  expT= 120.0  wifi:
  STAT-Change                      2c:9e:fc:05:60:d6 st changed  up/down; UniFi_2c:9e:fc:05:60:d6        in list status down       DHCP    dt= 126.0;  expT= 120.0  wifi:
  STATUS-DHCP                     UniFi_64:16:66:0f:29:c3        in list status down       DHCP    dt= 126.0;  expT= 120.0  wifi:
  STAT-Change                      64:16:66:0f:29:c3 st changed  up/down; UniFi_64:16:66:0f:29:c3        in list status down       DHCP    dt= 126.0;  expT= 120.0  wifi:
  Matplotlib Warning              thest-thermo-2-chart: Line 1 marker is suppressed to display annotations. To see the marker, disable annotations for this line.
  DC-----                         ipNumber: 10.0.4.7   apNumb: 0    uType: SWdict   unifiDeviceType: SW  {u'root_switch': u'f0:9f:c2:09:29:a6', u'ip': u'10.0.4.7', u'if_table': [{u'rx_multicast': 0, u'rx_p....
  DC-SW-1                         10.0.4.7 SW  hostname:Switch16 MAC:f0:9f:c2:09:29:a6
  DC-SW-00                        10.0.4.7 c8:2a:14:57:a6:30 UniFi_c8:2a:14:57:a6:30; IP:10.0.4.100; AGE:15; newUp:675522; nameSW:Controller
  >> clipped lines here
  MS-----                         10.0.4.1   GW   GWtail  GW
['Oct 19 19:01:21 USG kernel: IPv4: martian source 52.216.81.200 from 10.0.3.177, on dev eth0', 'Oct 19 19:01:21 USG kernel: ll header: 00000000: 78 8a 20 44 59 7a 58 55 ca 11 c2 e6 08 00        x. DYzXU......', 'Oct 19 19:01:21 USG kernel: IPv4: martian source 52.216.81.200 from 10.0.3.177, on dev eth0', 'Oct 19 19:01:21 USG kernel: ll header: 00000000: 78 8a 20 44 59 7a 58 55 ca 11 c2 e6 08 00        x. DYzXU......', 'Oct 19 19:01:21 USG kernel: IPv4: martian source 52.216.81.200 from 10.0.3.177, on dev eth0', 'Oct 19 19:01:21 USG kernel: ll header: 00000000: 78 8a 20 44 59 7a 58 55 ca 11 c2 e6 08 00        x. DYzXU......', '']
  MS-----                         10.0.4.1   GW   GWtail  GW







And here is a version with just the 'ssh' option selected if it is easier to read:

Code: Select all

Starting plugin "uniFiAP 7.25.135" (pid 61409)
   uniFiAP                         setting parameters for indigo version: >>7<<
   Started plugin "uniFiAP 7.25.135"
   uniFiAP                         initializing    ... variables
   uniFiAP                         logfile handling: regular indigo logfile
   uniFiAP                         myLogSet settting parameters -- logFileActive= no;  logFile= ;  debugLevel= ['Connection']; maxFileSize= 5000000
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.8 ' | grep /usr/bin/expect | grep -v grep
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.28 ' | grep /usr/bin/expect | grep -v grep
   KILL                            killing request: ps -ef | grep uniFiAP | grep '192.168.1.x ' | grep /usr/bin/expect | grep -v grep
   KILL                            killing request: ps -ef | grep uniFiAP | grep '192.168.1.x ' | grep /usr/bin/expect | grep -v grep
   KILL                            killing request: ps -ef | grep uniFiAP | grep '192.168.1.x ' | grep /usr/bin/expect | grep -v grep
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.1 ' | grep /usr/bin/expect | grep -v grep
   KILL                            killing request: ps -ef | grep uniFiAP |   grep /usr/bin/expect   | grep -v grep
   unifi-Report                    getting _id for AP Access Point 1  /stat/device/fc:ec:da:d4:60:57
   Connection                      /usr/bin/curl --insecure -c /tmp/cookie   --data '{"username": "dpattee", "password": "**cloudpassword**"}' https://10.0.4.102:8443/api/login
   Connection                      error: (wrong UID/passwd, ip number?) ...>>{ "data" : [ ] , "meta" : { "msg" : "api.err.Invalid" , "rc" : "error"}}<<
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   125  100    72  100    53     79     58 --:--:-- --:--:-- --:--:--    79

   unifi-Report                    getting _id for AP AP_b4:fb:e4:23:e9:15  /stat/device/b4:fb:e4:23:e9:15
   Connection                      /usr/bin/curl --insecure -c /tmp/cookie   --data '{"username": "dpattee", "password": "**cloudpassword**"}' https://10.0.4.102:8443/api/login
   Connection                      error: (wrong UID/passwd, ip number?) ...>>{ "data" : [ ] , "meta" : { "msg" : "api.err.Invalid" , "rc" : "error"}}<<
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   125  100    72  100    53     75     55 --:--:-- --:--:-- --:--:--    75

   uniFiAP                          start   runConcurrentThread, initializing variables ..
   uniFiAP                         ..getting missing vendor names for MAC #
   Connection                      VDdict login disabled, userid is empty
   Connection                      VDdict login disabled, userid is empty
   uniFiAP                         executeCMDonNVR has error, no json object returned: ('', '  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to  port 7443: Connection refused\n')
   Connection                      VDdict login disabled, userid is empty
   uniFiAP                         ..starting threads for 2 APs 2 sec apart (MSG-log and db-DICT)
   START                           launching APtail  10.0.4.8
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.8 ' | grep /usr/bin/expect | grep execLog.exp | grep -v grep
   EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpassword**' 10.0.4.8
   START                           launching APdict  10.0.4.8
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.8 ' | grep /usr/bin/expect | grep dictLoop.exp | grep -v grep
   EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpassword**' 10.0.4.8
   EXPECT                          startConnect: with 10.0.4.8    APtail    admin/**localpassword**
   EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp" admin **localpassword** 10.0.4.8 BZ.v "/usr/bin/tail -F /var/log/messages"
   EXPECT                          startConnect: with 10.0.4.8    APdict    admin/**localpassword**
   EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp" admin **localpassword** 10.0.4.8 BZ.v xxxThisIsTheEndTokenxxx 60 10 "mca-dump | sed -e 's/^ *//'"   /var/log/messages
   START                           launching APtail  10.0.4.28
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.28 ' | grep /usr/bin/expect | grep execLog.exp | grep -v grep
   EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpassword**' 10.0.4.28
   START                           launching APdict  10.0.4.28
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.28 ' | grep /usr/bin/expect | grep dictLoop.exp | grep -v grep
   EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpassword**' 10.0.4.28
   EXPECT                          startConnect: with 10.0.4.28    APtail    admin/**localpassword**
   EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp" admin **localpassword** 10.0.4.28 BZ.v "/usr/bin/tail -F /var/log/messages"
   EXPECT                          startConnect: with 10.0.4.28    APdict    admin/**localpassword**
   EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp" admin **localpassword** 10.0.4.28 BZ.v xxxThisIsTheEndTokenxxx 60 10 "mca-dump | sed -e 's/^ *//'"   /var/log/messages
   uniFiAP                         ..starting threads for GW (MSG-log and db-DICT)
   START                           launching GWtail  10.0.4.1
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.1 ' | grep /usr/bin/expect | grep execLog.exp | grep -v grep
   EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpassword**' 10.0.4.1
   START                           launching GWdict  10.0.4.1
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.1 ' | grep /usr/bin/expect | grep dictLoop.exp | grep -v grep
   uniFiAP                         ..starting threads for 1 SWs 11 sec apart (db-DICT only)
   uniFiAP                         initialized
   START                           launching SWdict  10.0.4.7
   KILL                            killing request: ps -ef | grep uniFiAP | grep '10.0.4.7 ' | grep /usr/bin/expect | grep dictLoop.exp | grep -v grep
   EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpassword**' 10.0.4.1
   EXPECT                          /usr/bin/expect   '/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/test.exp' 'admin' '**localpassword**' 10.0.4.7
   EXPECT                          startConnect: with 10.0.4.1    GWtail    admin/**localpassword**
   EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp" admin **localpassword** 10.0.4.1 :~ "/usr/bin/tail -F /var/log/messages"
   EXPECT                          startConnect: with 10.0.4.1    GWdict    admin/**localpassword**
   EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp" admin **localpassword** 10.0.4.1 :~ xxxThisIsTheEndTokenxxx 60 10 "mca-dump | sed -e 's/^ *//'"   doNotSendAliveMessage
   EXPECT                          startConnect: with 10.0.4.7    SWdict    admin/**localpassword**
   EXPECT                          /usr/bin/expect   "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp" admin **localpassword** 10.0.4.7 US.v xxxThisIsTheEndTokenxxx 60 10 "mca-dump | sed -e 's/^ *//'"   doNotSendAliveMessage

Oct 19, 2018 at 7:10:00 PM
   Schedule                        Temperature Variable Sync

Oct 19, 2018 at 7:10:34 PM
   CONNect                         APtail  10.0.4.8 ThisIsTheAliveTestFromUnifiToPlugin received
   CONNect                         APtail  10.0.4.28 ThisIsTheAliveTestFromUnifiToPlugin received


Posted on
Fri Oct 19, 2018 8:44 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: Wrong UID/passwd and VDdict login errors

here is the error:
Code: Select all
Connection                      /usr/bin/curl --insecure -c /tmp/cookie   --data '{"username": "dpattee", "password": "**cloudpwd**"}' https://10.0.4.102:8443/api/login
  Connection                      error: (wrong UID/passwd, ip number?) ...>>{ "data" : [ ] , "meta" : { "msg" : "api.err.Invalid" , "rc" : "error"}}<<
 

if this does not work
Code: Select all
/usr/bin/curl --insecure -c /tmp/cookie   --data '{"username": "dpattee", "password": "**cloudpwd**"}' https://10.0.4.102:8443/api/login
either userid, password or IP# is wrong

the IP must be the IP of the controller ...

Karl

Posted on
Fri Oct 19, 2018 10:23 pm
DPattee offline
Posts: 453
Joined: Jan 14, 2004
Location: Redmond, WA

Re: Wrong UID/passwd and VDdict login errors

Okay, so the controller username/password isn't necessarily the same username and password that you use to log in to the controller :shock:

There is a separate local login that has a separate password until you go in to Settings:Cloud Access:Enable Local Login with UBNT Account. Once I get everything working I'll create a separate admin account with reduced access specifically for Indigo, but I'm still working through stuff...

The next issue was:

Code: Select all
 Connection                      /usr/bin/curl --insecure -c /tmp/cookie   --data '{"username": "dpattee", "password": "**cloudpassword**"}' https://10.0.4.102:8443/api/login
 Connection                      /usr/bin/curl --insecure -b /tmp/cookie  -X PUT https://10.0.4.102:8443/api/s/Redmond/stat/device/b4:fb:e4:23:e9:15
 Connection                      error: >>{ "data" : [ ] , "meta" : { "msg" : "api.err.NoSiteContext" , "rc" : "error"}}<<


I found some non-indigoplugin api posts about the site name only working if it was all lowercase. So I changed my site name in both the Controller and the Indigo Plugin configuration to be lowercase... same 'NoSiteContext' error.

Ultimately it turned out that the site name has nothing to do with the site id, and the site id is 'default' lmao

Posted on
Fri Oct 19, 2018 10:26 pm
DPattee offline
Posts: 453
Joined: Jan 14, 2004
Location: Redmond, WA

Re: Wrong UID/passwd and VDdict login errors

:) Looks like things are working now... With a local user set to 'administrator' with 'adopt, restart, system stats' permissions all the log lines look 'good'

Posted on
Fri Oct 19, 2018 10:52 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: Wrong UID/passwd and VDdict login errors

thanks for sharing

Karl

Posted on
Sat Oct 20, 2018 12:12 pm
kw123 offline
User avatar
Posts: 8360
Joined: May 12, 2013
Location: Dallas, TX

Re: Wrong UID/passwd and VDdict login errors

In order to support the setup, I have posted a new version that shows a lot of info that should make it much easier to configure the plugin.

It describes in some detail the various userid passwords, ip#'s api keys login prompts etc used / not used for
GW, AP, SW, Controller, Video NVR.

The boxes can be accessed through ssh on the unix level and (some) through HTTP (s) web access (w & w/o (s)) through cURL or python requests(*) and naturally they all can have different IDs prompts etc.

hope that helps

Karl

(*) newer OSX work with cURL and requests, older only with cURL, and one access (snapshots) only w requests w/o encryption..

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron