I am evaluating options to improve the Perl scripts that process sFlow records. I managed to get the Docker setup up and running, but it is unclear to me how one could integrate the sFlow features with that
Here is what I tried so far:
cat db.env
export DB_HOST="localhost"
export DB_USERNAME="docker"
export DB_PASSWORD="docker"
export DB_DATABASE="ixpmanager"
export DBI_DRIVER="mysql"
jeroen@jvm:~/srlinux/IXP-Manager/tools/runtime/sflow$ ./sflow-detect-ixp-bgp-sessions
Can't connect to data source 'DBI::database=' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /home/jeroen/srlinux/IXP-Manager/tools/runtime/sflow/../../perl-lib/IXPManager/lib/IXPManager/Config.pm line 105.
jeroen@jvm:~/srlinux/IXP-Manager/tools/runtime/sflow$ cat /etc/ixpmanager.conf
jeroen@jvm:~/srlinux/IXP-Manager/tools/runtime/sflow$ source db.env
jeroen@jvm:~/srlinux/IXP-Manager/tools/runtime/sflow$ ./sflow-detect-ixp-bgp-sessions
DBI connect('database=','',...) failed: Access denied for user 'jeroen'@'localhost' (using password: NO) at /home/jeroen/srlinux/IXP-Manager/tools/runtime/sflow/../../perl-lib/IXPManager/lib/IXPManager/Config.pm line 105.
Would appreciate some pointers, and can contribute documentation when I get it working
I am evaluating options to improve the Perl scripts that process sFlow records. I managed to get the Docker setup up and running, but it is unclear to me how one could integrate the sFlow features with that
Here is what I tried so far:
Would appreciate some pointers, and can contribute documentation when I get it working