-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions on how to run #1
Comments
Hi Jordan You can run executable from console or install it as Windows service.
|
Thanks for the info. Now all I need know which file will execute the program and I don't have one called "MalikP.Ubiquiti.DatabaseExporter.Service.exe" |
Did you download zip file from here ? |
Ah I was clearly downloading the source code ! Thanks for your help and sorry for bothering you with something so simple. |
No problem. I hope it will work well also in your environment.. |
@abzkebabs Could you provide me some feedback ?
|
Hi Peter , I did give it a go and the CMD prompt just stayed on all day with out any data being written to my file location. any ideas on why it would just hang and not do anything ? I was running it on Server 2016 FYI. Was planning on coming back to have another go soon when I have some spare time at work. Thanks |
Could you send me your config file (without passwords) to [email protected] and also attach some information about your controller ? Is it CloudKey or Windows based controller ? or try this (valid in case you are using cloudkey):
and do not forget change key:
and key :
|
Hello Peter, in first place, thanks for this awsome utility! I'm using it on my network, and dumping data from CloudKey to file system is going wel. I have problems when try to dump data to sql. I'm using a configuration based on the settings you suggest on Sept 17, 2018 The SQL related lines, are
Monitoring the process, I've found that none connections are made from the MalikP.Ubiquiti.DatabaseExporter.Service.exe to the SQL Server. Am I missing some configuration or pre-req installation? Thank you some much, in advance. |
Hi @juanpmox Please try these steps.:
please let me know if it helped or not |
Unfortunately, same result :(
Ran the tool again, from Windows cmd.exe, but none data is imported to DB |
Hmm .... 🤔
|
my comments below: |
@juanpmox Thank you for mail. I checked config, and i do not see any error. Is exactly the same as mine. I think there have to be something wrong in code. Could you try with SA user ? For example i use something like this: <add key="Sql-Connection-String" value="Server=sql.domain.local;Database=Ubiquiti-Unifi-Backup;Pooling=false;"/>
<add key="Sql-User-Id" value="sa"/>
<add key="Sql-User-Password" value=""/> I think I have to add some more logging. EDIT |
Hello Peter, thanks for being here!
I've tried with the "sa" user, with the same result
Below, you will see the output of the process (from the console). I've got
the information exported on FS, but none records are saved on the SQL
server...even worse, none process connection detected form the .exe to SQL,
checked with SQL Activity monitor, and Systernals Procees Monitor :(
D:\UniFi Database Exporter>MalikP.Ubiquiti.DatabaseExporter.Service.exe
Current collection name: stat_minute
Collection Name stat_minute saved to file system
Current collection name: system.indexes
FS: Blacklisted table: [ace_stat.system.indexes]
Current collection name: stat_5minutes
Collection Name stat_5minutes saved to file system
Current collection name: stat_hourly
Collection Name stat_hourly saved to file system
Current collection name: stat_daily
Collection Name stat_daily saved to file system
Current collection name: stat_monthly
Collection Name stat_monthly saved to file system
Current collection name: stat_life
Collection Name stat_life saved to file system
Current collection name: stat_archive
Collection Name stat_archive saved to file system
Current collection name: stat_dpi
Collection Name stat_dpi saved to file system
Current collection name: startup_log
Collection Name startup_log saved to file system
Current collection name: heatmap
Collection Name heatmap saved to file system
Current collection name: system.indexes
FS: Blacklisted table: [ace.system.indexes]
Current collection name: voucher
Collection Name voucher saved to file system
Current collection name: admin
Collection Name admin saved to file system
Current collection name: networkconf
Collection Name networkconf saved to file system
Current collection name: rogueknown
Collection Name rogueknown saved to file system
Current collection name: privilege
Collection Name privilege saved to file system
Current collection name: radiusprofile
Collection Name radiusprofile saved to file system
Current collection name: scheduletask
Collection Name scheduletask saved to file system
Current collection name: setting
Collection Name setting saved to file system
Current collection name: routing
Collection Name routing saved to file system
Current collection name: portconf
Collection Name portconf saved to file system
Current collection name: alarm
Collection Name alarm saved to file system
Current collection name: firewallrule
Collection Name firewallrule saved to file system
Current collection name: payment
Collection Name payment saved to file system
Current collection name: tag
Collection Name tag saved to file system
Current collection name: event
Collection Name event saved to file system
Current collection name: wlangroup
Collection Name wlangroup saved to file system
Current collection name: map
Collection Name map saved to file system
Current collection name: verification
Collection Name verification saved to file system
Current collection name: rogue
Collection Name rogue saved to file system
Current collection name: stat
Collection Name stat saved to file system
Current collection name: portalfile
Collection Name portalfile saved to file system
Current collection name: wlanconf
Collection Name wlanconf saved to file system
Current collection name: firewallgroup
Collection Name firewallgroup saved to file system
Current collection name: hotspotop
Collection Name hotspotop saved to file system
Current collection name: portforward
Collection Name portforward saved to file system
Current collection name: heatmappoint
Collection Name heatmappoint saved to file system
Current collection name: site
Collection Name site saved to file system
Current collection name: task
Collection Name task saved to file system
Current collection name: hotspot2conf
Collection Name hotspot2conf saved to file system
Current collection name: dynamicdns
Collection Name dynamicdns saved to file system
Current collection name: hotspotpackage
Collection Name hotspotpackage saved to file system
Current collection name: usergroup
Collection Name usergroup saved to file system
Current collection name: broadcastgroup
Collection Name broadcastgroup saved to file system
Current collection name: guest
Collection Name guest saved to file system
Current collection name: mediafile
Collection Name mediafile saved to file system
Current collection name: device
Collection Name device saved to file system
Current collection name: user
Collection Name user saved to file system
Current collection name: account
Collection Name account saved to file system
Current collection name: virtualdevice
Collection Name virtualdevice saved to file system
Current collection name: dhcpoption
Collection Name dhcpoption saved to file system
Current collection name: dpigroup
Collection Name dpigroup saved to file system
Current collection name: dpiapp
Collection Name dpiapp saved to file system
Current collection name: wall
Collection Name wall saved to file system
Current collection name: dashboard
Collection Name dashboard saved to file system
Finnished
Thanks and best regards.
Juan Pablo
El dom., 2 jun. 2019 a las 4:15, Peter Malík (<[email protected]>)
escribió:
… @juanpmox <https://github.com/juanpmox> Thank you for mail. I checked
config, and i do not see any error. Is exactly the same as i personally use
it. I think there have to be some defect or something wrong.
Could you try with SA user ?
For example i use something like this:
<add key="Sql-Connection-String" value="Server=sql.domain.local;Database=Ubiquiti-Unifi-Backup;Pooling=false;"/>
<add key="Sql-User-Id" value="sa"/>
<add key="Sql-User-Password" value=""/>
I think I have to add some more logging.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AJH6ZJI2XSFQA5K3QXR5U4DPYNXQDA5CNFSM4FTATXC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWXPQJQ#issuecomment-498006054>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJH6ZJMVBV53VYA4ZK2HTK3PYNXQDANCNFSM4FTATXCQ>
.
|
@juanpmox this log is from not the most new version right ? In the most new version i replaced 'IoC' library and also add log to show you what exporters are created. Please try this new version and sorry for these problems. In case SQL exporter is created you should see as firs lines in console after start.
|
Hi Peter, I'm back just to say that my problem is SOLVED now. My issue was related to UAC on the Windows 10 computer that I used to get the Unifi data. To get the Exporter working, in my case, I need to do that:
Now I' ve get information exported to DB and FS, without any problems. Thank you very much for this tool, and you support. Best regards |
Hi. |
1st. thanks a lot for this utility. |
Hi @rkwtemp1 i am not sure. I did not test it with Gen 2 or UDM/UDM-Pro. EDIT:I know where the problem is .. i will try export my data and then will write you workaround until i fix it :) EDIT2:Blacklist these tables like is bellow:
And i think you already used to login
Then it should work. EDIT3:Download new version EDIT4:Last version of controller: 6.0.41 has also new table |
Hi There, I see this is a bit old. I am wondering does this work on a device that is linked to the unifi cloud dashboard? |
Yes its old .. i did not have lot of time to upgrade it to most new version of UniFi Network |
Thank you very much for the quick response, appreciate that. |
Hi Peter ,
This might be a silly question and I apologize in advance.
Is there any instruction on how I actually run this and what OS it needs to be run on ?
The text was updated successfully, but these errors were encountered: