Coder Social home page Coder Social logo

main's People

Contributors

launcherx avatar orion122 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

main's Issues

Custom prompt issue

Hello,

I've got issue to retrieve config of Extreme Switches because job make mistake between prompt symbol and comment symbol. Both are "#".

The only way to distinct it will be use regex for CLI custom prompt or allow spaces. Currently field is trimed.

Can you give me an hand with this?

"CBackup" Pre-dependency problem php-ssh2

Hello,
Here is my problem, I installed php 7.0 and all these essential packages, but when I install Cbackup I get this error message :

root@debian-switch:~# cd ~ && dpkg -i cbackup.deb
dpkg: about cbackup.deb containing cbackup, pre-dependency issue:
cbackup pre-dependent on php-ssh2
php-ssh2 is not installed.

dpkg: processing error of the cbackup.deb archive (--install) :
pre-dependency problem - cbackup not installed
Errors were encountered during execution:
cbackup.deb

I have downloaded and installed version php7-ssh2 but the problem is still there.

Can someone please help me?

feature request: Node permission

Hello,

I want to request a feature.
I want to create various users and that users can't access/view the configurations of some hosts or groups of hosts. This VIEWERS users cannot configure anything, just see the configurations (at the beginning).

Download Configuration files

The default name of the downloaded configuration is the node ID , please help if it could be Node description or hostname rather than its ID .

unable to backup the config

Hi all,

Not sure if this is a new issue or not, but I was unable to find anything close to what I'm experiencing with cBackup.

It just won't backup the config at all. Below is a schedule log screenshot.

schedule logs

When I try and test the credentials (which I'm 100% certain are correct) I get the following error:

Credentials test

Has anyone been experiencing similar issue?

Please let me know if there's a need to share more output/screenshots.

Thanks a lot,

SR

sudo: sorry, you must have a tty to run sudo

After installation, Java service did not start. On the web, I saw the error

sudo: sorry, you must have a tty to run sudo

After finding a solution, I had to disable requiretty in court, by command

visudo
#Defaults requiretty

Add this to the documentation or disable the need to use tty.

Missed RPM dependency

When installing the RPM package, the php-xml is not install.
After trying to connect via SSH/telnet to node, the application terminates with error

2019-12-05 13:44:53 [10.11.1.131][ADMIN][lqs2u39hoeuhl2pgma97di2gev][error][Error] Error: Call to undefined functio
n phpseclib\Net\utf8_decode() in /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php:3360
Stack trace:
#0 /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(3304): phpseclib\Net\SSH2->_filter('\r\n=============...',
false)
#1 /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2277): phpseclib\Net\SSH2->_get_binary_packet()
#2 /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2125): phpseclib\Net\SSH2->_login_helper('around', 'VeRySeCuRePaSsWoRd')
#3 [internal function]: phpseclib\Net\SSH2->_login('around', 'VeRySeCuRePaSsWoRd')
#4 /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2098): call_user_func_array(Array, Array)
#5 /opt/cbackup/models/CredentialTest.php(224): phpseclib\Net\SSH2->login('around', 'VeRySeCuRePaSsWoRd')
#6 /opt/cbackup/modules/network/controllers/CredentialController.php(347): app\models\CredentialTest->run()
#7 [internal function]: app\modules\network\controllers\CredentialController->actionAjaxTest()
#8 /opt/cbackup/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 /opt/cbackup/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#10 /opt/cbackup/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('ajax-test', Array)
#11 /opt/cbackup/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('network/credent...', Array)
#12 /opt/cbackup/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#13 /opt/cbackup/web/index.php(38): yii\base\Application->run()
#14 {main}
2019-12-05 13:44:53 [10.11.1.131][ADMIN][lqs2u39hoeuhl2pgma97di2gev][info][application] $_GET = [
    'r' => 'network/credential/ajax-test'
]

$_POST = [
    '_csrf' => 'BrapfKFPaST4tGgEqZ353v2zeGrq2x8wMQVf3WJVbetJ4NBO8y4DXc-ZHmPY2I6ctoodX7uvelhiaDCHJD88nQ=='
    'Credential' => [
        'name' => 'Volga_telnet'
        'enable_password' => ''
        'telnet_login' => 'around'
        'telnet_password' => 'VeRySeCuRePaSsWoRd'
        'ssh_login' => 'around'
        'ssh_password' => 'VeRySeCuRePaSsWoRd'
        'snmp_read' => 'public'
        'snmp_set' => ''
        'snmp_version' => '1'
        'snmp_encryption' => ''
        'port_telnet' => '23'
        'port_ssh' => '22'
        'port_snmp' => '161'
    ]
    'login_prompt' => ''
    'password_prompt' => ''
    'main_prompt' => ''
    'enable_prompt' => ''
    'enable_success' => ''
    'ip' => '10.11.0.2'
]

The issue is solved after yum install php-xml

Task assignment to devices does not work

Hello,

I can't seem to make task assignment to devices work. When I assign tasks to devices, the green square shows up, but when the task runs, it reports "can't get jobs from api.", API method: v1/core/get-jobs. Response code 404. Resource not found.

Maybe I just miss some part of the configuration, but I can't seem to make it work. When I assign tasks to nodes, it works properly, but it would be nice to be able to assign to devices as well.

Unable to Configure version control

Hello to all,

Its a fresh installation that run at the moment with only 3 Cisco switches as nodes.
I am trying to enable versioning under System -> System settings -> Git settings.
Repository status is: initialized but the init repository button is greyed out no matter what i tried. I also tried to setup a remote git repo but still no luck with that button.
At this moment i can see only the latest configuration of the switches only.

Below my support file.
GAAVM07-support.zip

Thanks!
Dimitris

ip in backup path

Hello.
How can change name of backup file, from id of device, to ip address device.
For example: /backup/2.txt change to /backup/192.168.1.1.txt

Exception while downloading configuration

Can not download device configuration if task backup destination is set to database.

file_get_contents(/var/www/cbackup/data/backup/2550.txt): failed to open stream: No such file or directory

Java service is not running

cBackup is installed on a CentOS 7 VM. The VM has another web server on it so I changed cBackup/httpd to use port 8080. The web UI comes up and when I click the computer icon in the upper, right hand corner of the screen, it says Java service is not running. At first, I had the issue where the Java scheduler is not running, but I fixed that using the info provided in Issues 22 and 23. So, half of the services are running.

image

Moving my mouse over the start button has the circle with \ through it. What did I miss with the setup?

SSH Public Key Auth

Hello,
An interesting feature would be support public key authentication for SSH.

Feature Request : Debug of backup

Hello,

I want to request a feature.

would it be possible to be able to launch the daemon in debug mode in order to have the logs of the ssh session for example

best regards

Huawei prompt is not an valid prompt

The problem Im experiencing is that currently only #, $, > are seen as valid prompts.
But the prompt Huawei is using is [HUAWEI] so can ] be added as a valid prompt?

Tags for SSH

Hello,
Cisco SG switches require connection tags similar to telnet in ssh. Is it possible to implement this functionality?

Failed for backup Avaya switch

I am successful to backup all HP and Cisco switch, but failed for Avaya, please see the log as below,

"Task backup, node 280: timeout. Telnet response expect failed. Check device auth sequence and credentials."

I also attached how I login the Avaya switch by SecureCRT and the authentication template by screen shot in detial

Could not resolve placeholder 'cbackup.scheme' in value "${cbackup.scheme}"

I'm running across this error while trying to start the Java service (systemctl start cbackup):

2019-07-11 17:00:25.327  WARN 2253 --- [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'cbackup.scheme' in value "${cbackup.scheme}"
2019-07-11 17:00:25.337  INFO 2253 --- [           main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-07-11 17:00:25.347 ERROR 2253 --- [           main] o.s.boot.SpringApplication               : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'cbackup.scheme' in value "${cbackup.scheme}"

This is what my application.properties looks like:

#cbackup
cbackup.scheme=http
cbackup.site=nms02.sundown.local/cbackup/index.php
cbackup.token=767F755E-A1C5-46B7-A24B-93A17E28A593

Any ideas?

System Time

My Cbackup is running on centos 7 , and I am facing an issue with system time of cbackup , the time of the logs or task is in GMT and the time on centos 7 in GMT+2, hot to set it to GMT+2 on Cbackup .

Advanced task assign to nodes: there is no option to select worker

When I select Task assignments, Advanced task assign, I can assign multiple nodes to a task in one shot. However there is no option to select the worker, so as a next step I need to edit each assignment one by one and assign a worker, which defeats the purpose of mass assignment.

I wonder if I miss something, or is this a bug?

Backup Fiberhome

Hello,
I have a question about the "backup" of OLT Fiberhome. I'm try make the backup using the commands bellow:

cd service
terminal length 0
cd ..
show startup-config
The system

the system can connect by telnet at olt, but can't give the commands. The log is this:

Task backup, node 8: timeout. Command: cd service
. Telnet response expect failed. Check command timeouts.
Schedule id: NONE
Task name: backup
Node id: 8
Worker id: 3

What can I do?

Thanks.

Cisco auth template not working

Hi,

I'm trying to backup my Cisco 2960 switch with CBackup. After dealing with Java issues related in the post #23, I finally succeed in activating the scheduler but now I'm stuck with an other issues.

I can't find the right way to set my auth template. I've tried the default one, some others that I maid, but nothing seems to work. Everytime I try to backup my switch, the scheduler log give me this :

Task backup, node 1: timeout. SSH response expect failed. Check device auth sequence.
Schedule id: NONE
Task name: backup
Node id: 1
Worker id: 1

I also precise that my task and worker are configured, and also that my ssh connection is working properly from an other device.

Is there somebody here who deal with the same problem ?

Regards

Vincent

Add possibility of archiving config

I'm testing cbackup and I think it has a lot of potential. But one feature I'm missing is the ability to archive configs after deleting a node. Of course it will still be stored in the git repository, but it would be good to keep the files also, so we don't need to dig in the commit history to see when a file was deleted if we need it later.
Maybe add a two step deletion, so we can archive a host and reuse its IP in a new one. Maybe it could have a "clean_archive" schedule to delete it permanently later, which would remove the files. So we could archive old configs for periods, like 6 months or a year.

Discovery Error

When I run "discovery", there is an error as below,

Task discovery: failed to set result via API.
Schedule id: NONE
Task name: discovery
Node id: NONE
Worker id: NONE
API method: v1/core/set-discovery-result
Response code: 500
Response message: Internal Server Error.
Wrong MAC address specified

but the task still can be completed and devices can be discovered.

Thanks in advance if any suggestion.

Java Scheduler Fails to Start

After starting the Java service (It will not be running after a restart of the VM) the Java Scheduler will error with Cannot connect to 127.0.0.1:8437. Error 111. Connection Refused.
If I then try to start the Java Scheduler it will say Can't get settings from API.
Looking in the logs I see:
Apr 2 12:08:36 cbackup.jar: 2019-04-02 12:08:36.081 INFO 28163 --- []-nio2-thread-2] o.a.s.s.session.ServerUserAuthService : Session cbadmin@/127.0.0.1:50200 authenticated
Apr 2 12:08:36 cbackup.jar: 2019-04-02 12:08:36.268 INFO 28163 --- [ssh-cli cbadmin] s.s.s.console.TerminalProcessor : null
Apr 2 12:08:37 cbackup.jar: 2019-04-02 12:08:37.360 INFO 28163 --- []-nio2-thread-4] o.a.s.s.session.ServerUserAuthService : Session cbadmin@/127.0.0.1:50202 authenticated
Apr 2 12:08:37 cbackup.jar: 2019-04-02 12:08:37.445 INFO 28163 --- [ssh-cli cbadmin] s.s.s.console.TerminalProcessor : null
If I login to the Java service and do a "cbackup start" I get
Can't start cron service.

Does anyone have any idea how to fix this?

Automatic Schedule

When I set a schedule to start the task automatically , it shows that the next run will be on the time but it doesn't start by it self , I have to click on it to start manually

An internal server error occurred.

Здравствуйте, у меня не открывается сайт, в логах апач пишет:

[Sat Oct 05 23:05:38.029224 2019] [:error] [pid 23866] [client 10.10.10.10:63945] An Error occurred while handling another error:\nyii\base\InvalidArgumentException: Invalid path alias: @webroot/assets in /opt/cbackup/vendor/yiisoft/yii2/BaseYii.php:154\nStack trace:\n#0 /opt/cbackup/vendor/yiisoft/yii2/web/AssetManager.php(211): yii\BaseYii::getAlias('@webroot/assets')\n#1 /opt/cbackup/vendor/yiisoft/yii2/base/BaseObject.php(109): yii\web\AssetManager->init()\n#2 [internal function]: yii\base\BaseObject->__construct(Array)\n#3 /opt/cbackup/vendor/yiisoft/yii2/di/Container.php(383): ReflectionClass->newInstanceArgs(Array)\n#4 /opt/cbackup/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('yii\\web\\AssetMa...', Array, Array)\n#5 /opt/cbackup/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('yii\\web\\AssetMa...', Array, Array)\n#6 /opt/cbackup/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array)\n#7 /opt/cbackup/vendor/yiisoft/yii2/base/Module.php(742): yii\di\ServiceLocator->get('assetManager', true)\n#8 /opt/cbackup/vendor/yiisoft/yii2/base/Application.php(608): yii\base\Module->get('assetManager')\n#9 /opt/cbackup/vendor/yiisoft/yii2/web/View.php(225): yii\base\Application->getAssetManager()\n#10 /opt/cbackup/vendor/yiisoft/yii2/web/View.php(285): yii\web\View->getAssetManager()\n#11 /opt/cbackup/vendor/yiisoft/yii2/web/AssetBundle.php(125): yii\web\View->registerAssetBundle('app\\assets\\Alph...')\n#12 /opt/cbackup/views/layouts/plain.php(27): yii\web\AssetBundle::register(Object(yii\web\View))\n#13 /opt/cbackup/vendor/yiisoft/yii2/base/View.php(336): require('/opt/cbackup/vi...')\n#14 /opt/cbackup/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/opt/cbackup/vi...', Array)\n#15 /opt/cbackup/vendor/yiisoft/yii2/base/Controller.php(399): yii\base\View->renderFile('/opt/cbackup/vi...', Array, Object(app\controllers\SiteController))\n#16 /opt/cbackup/vendor/yiisoft/yii2/base/Controller.php(385): yii\base\Controller->renderContent('<section class=...')\n#17 /opt/cbackup/vendor/yiisoft/yii2/web/ErrorAction.php(139): yii\base\Controller->render('error', Array)\n#18 /opt/cbackup/vendor/yiisoft/yii2/web/ErrorAction.php(118): yii\web\ErrorAction->renderHtmlResponse()\n#19 [internal function]: yii\web\ErrorAction->run()\n#20 /opt/cbackup/vendor/yiisoft/yii2/base/Action.php(94): call_user_func_array(Array, Array)\n#21 /opt/cbackup/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\Action->runWithParams(Array)\n#22 /opt/cbackup/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('error', Array)\n#23 /opt/cbackup/vendor/yiisoft/yii2/web/ErrorHandler.php(108): yii\base\Module->runAction('site/error')\n#24 /opt/cbackup/vendor/yiisoft/yii2/base/ErrorHandler.php(111): yii\web\ErrorHandler->renderException(Object(yii\base\InvalidConfigException))\n#25 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\base\InvalidConfigException))\n#26 {main}\nPrevious exception:\nyii\base\InvalidConfigException: The table does not exist: {{%user}} in /opt/cbackup/vendor/yiisoft/yii2/db/ActiveRecord.php:353\nStack trace:\n#0 /opt/cbackup/vendor/yiisoft/yii2/db/ActiveRecord.php(374): yii\db\ActiveRecord::getTableSchema()\n#1 /opt/cbackup/vendor/yiisoft/yii2/db/ActiveRecord.php(177): yii\db\ActiveRecord::primaryKey()\n#2 /opt/cbackup/vendor/yiisoft/yii2/db/BaseActiveRecord.php(112): yii\db\ActiveRecord::findByCondition('ADMIN')\n#3 /opt/cbackup/models/User.php(199): yii\db\BaseActiveRecord::findOne('ADMIN')\n#4 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(579): app\models\User::findIdentity('ADMIN')\n#5 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(298): yii\web\User->getIdentityAndDurationFromCookie()\n#6 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(694): yii\web\User->loginByCookie()\n#7 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(192): yii\web\User->renewAuthStatus()\n#8 /opt/cbackup/vendor/yiisoft/yii2/web/User.php(344): yii\web\User->getIdentity()\n#9 /opt/cbackup/vendor/yiisoft/yii2/base/Component.php(139): yii\web\User->getIsGuest()\n#10 /opt/cbackup/behaviors/LanguageBehavior.php(40): yii\base\Component->__get('isGuest')\n#11 /opt/cbackup/vendor/yiisoft/yii2/base/BaseObject.php(109): app\behaviors\LanguageBehavior->init()\n#12 [internal function]: yii\base\BaseObject->__construct(Array)\n#13 /opt/cbackup/vendor/yiisoft/yii2/di/Container.php(375): ReflectionClass->newInstanceArgs(Array)\n#14 /opt/cbackup/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('app\\behaviors\\L...', Array, Array)\n#15 /opt/cbackup/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('app\\behaviors\\L...', Array, Array)\n#16 /opt/cbackup/vendor/yiisoft/yii2/base/Component.php(191): yii\BaseYii::createObject(Array)\n#17 /opt/cbackup/vendor/yiisoft/yii2/BaseYii.php(546): yii\base\Component->__set('beforeRequest', Array)\n#18 /opt/cbackup/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(yii\web\Application), Array)\n#19 /opt/cbackup/vendor/yiisoft/yii2/base/Application.php(206): yii\base\BaseObject->__construct(Array)\n#20 /opt/cbackup/web/index.php(38): yii\base\Application->__construct(Array)\n#21 {main}\n$_SERVER = [\n 'HTTP_HOST' => 'cbackup.domain.ru',\n 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0',\n 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8',\n 'HTTP_ACCEPT_LANGUAGE' => 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',\n 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',\n 'HTTP_DNT' => '1',\n 'HTTP_CONNECTION' => 'keep-alive',\n 'HTTP_COOKIE' => '_ym_uid=1536034104217284985; _ym_d=1560735892; __utma=253463051.2089322560.1536034105.1545630924.1560735892.28; __utmz=253463051.1544751244.26.4.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _ga=GA1.2.2089322560.1536034105; _identity=cb7b543804dda950281c355d9a9be3a02d7d285908729067e04b0f58fbcd5cdba%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A52%3A%22%5B%22ADMIN%22%2C%22hlzD7dWaXYA3o2doLOW4vUCyelyfhr2D%22%2C2592000%5D%22%3B%7D; PHPSESSID=cgcdir6q79s8s3s3qi72rc2922; _csrf=10a98092e155d5d30d178558bd8a8c6a05aabc6940bad755a826998970d743c8a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22HPpBGMz66uN9u-gFkXnxOwr_h7IgiABn%22%3B%7D; language=18349af6644bab8d1de2bfd4211705353d6f65fd38cb58af2de2fed2352900a0a%3A2%3A%7Bi%3A0%3Bs%3A8%3A%22language%22%3Bi%3A1%3Bs%3A5%3A%22en-US%22%3B%7D',\n 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',\n 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n 'SERVER_SIGNATURE' => '',\n 'SERVER_SOFTWARE' => 'Apache/2.4.25 (Debian)',\n 'SERVER_NAME' => 'cbackup.domain.ru',\n 'SERVER_ADDR' => '10.10.10.7',\n 'SERVER_PORT' => '80',\n 'REMOTE_ADDR' => '10.10.10.10',\n 'DOCUMENT_ROOT' => '/opt/cbackup',\n 'REQUEST_SCHEME' => 'http',\n 'CONTEXT_PREFIX' => '',\n 'CONTEXT_DOCUMENT_ROOT' => '/opt/cbackup',\n 'SERVER_ADMIN' => '[email protected]',\n 'SCRIPT_FILENAME' => '/opt/cbackup/web/index.php',\n 'REMOTE_PORT' => '63945',\n 'GATEWAY_INTERFACE' => 'CGI/1.1',\n 'SERVER_PROTOCOL' => 'HTTP/1.1',\n 'REQUEST_METHOD' => 'GET',\n 'QUERY_STRING' => '',\n 'REQUEST_URI' => '/web/index.php',\n 'SCRIPT_NAME' => '/web/index.php',\n 'PHP_SELF' => '/web/index.php',\n 'REQUEST_TIME_FLOAT' => 1570284338.023,\n 'REQUEST_TIME' => 1570284338,\n

Как это исправить?

HTTP error when open the page Scheduler log

Recentely I am facing the problem when I try to open the page Logs --> Scheduler and the log of "Failed", but all the others pages are working fine. Those 2 pages can not display and show "HTTP 500 error", please see the attached screenshot for detail.

Thanks.

2

Change Select2 source

Install Select2 plugin version 4.0.3 via bower and update Select2Asset.php.
Remove Select2 plugin from web/plugins directory.

Cisco STP

Welcome to wonderful world of Cisco SNMP.

Algorithm for Cisco with Port Channel. If Port Channel is not used common STP algorithm can be used.

Description

Task: STP Worker: cisco_stp
Jobs:

  1. get_node_mac : OID -> 1.3.6.1.2.1.17.1.1.0 -> Save result to DB
  2. get_root_mac: OID -> 1.3.6.1.2.1.17.2.5.0 ->Save result to DB
  3. get_root_port_index: OID -> 1.3.6.1.2.1.17.2.7.0 -> Store result in %%ROOT_PORT_INDEX%% This result will be used in future jobs
  4. get_port_if_index: OID -> 1.3.6.1.2.1.17.1.4.1.2.%%ROOT_PORT_INDEX%% -> Store result in %%PORT_IF_INDEX%% This result will be used in future jobs
  5. get_root_port OID -> 1.3.6.1.2.1.31.1.1.1.1.%%PORT_IF_INDEX%% -> Save result to DB. This will return interface name which theoretically is normal because cisco use this weird style of port names (Po1, Gi0/1)
  6. get_bridge_mac OID -> 1.3.6.1.2.1.17.2.15.1.8.%%ROOT_PORT_INDEX%% -> Save result to DB

This algorithm probably will work on all Cisco devices because these are public OIDS. But there is one problem - this algorithm will not work with ROOT switch because it returns root_port_index as 0 which is correct so we do not need execute other jobs.

Problem

Because we do not store get_root_port_index in any SQL table variable how to tell Java to STOP executing when root_port_index is 0

One of solution is to use custom stp commands only for root switch. For other use algorithm above. This will work only in your case because root switch will never change.

Same device, multiple

Hello

I'm trying to test cBackup, and it's promising. But I have been stuck with something.
So, I have a few devices (ASR9001 and 9010). I just put 3 networks /24 on autodiscovery. It's working pretty fine(with Huawei, Raisecom, Mikrotik...), until I recognized the ASR9001 devices.

With other devices, multiples interfaces that are presents in two or more networks aren't discovered as individual nodes. That's what I thought it was the premise. But when I recognized 3 devices ASR9001, every address from our 3 subnets presents in these devices are added as NEW NODES.
So, discovery creates almost 20-50 new nodes, all of the same 3 ASR9001.

I need to delete the OID reference, make the device unknown and then, delete directly from database the found nodes. With that, I can't monitor with autodiscovery these particular devices.

cbackup-victor.zip

Maybe I'm doing something wrong. Still learning how to do it. I can't find anywhere on the documentation though. Mostly I learned from trial and error.

Thanks, and have a nice day.

Add possibility to view running tasks

Add java command which will allow user to view which tasks are currently running in scheduler. And if it's possible show how many nodes are left to finish and how many are already finished.

config versions not working

just set up a new installation and configured the workers/devices/nodes/etc. manual backups work fine. when make a change to the config and then back it up again, it only shows the most recent and no other versions are list/available. ideas? we are coming from rConfig and like this new design but need it to work.

Java scheduler is not running

hi guys am getting an issue when trying to start the Java scheduler in the top menu bar, the log file in /var/log/cbackup shows this when trying to start
Feb 20 10:53:27 XXXX cbackup.jar[2600]: 2019-02-20 10:53:27.195 INFO 2627 --- []-nio2-thread-3] o.a.s.s.session.ServerUserAuthService : Session cbadmin@/127.0.0.1:56066 authenticated
Feb 20 10:53:27 XXXX cbackup.jar[2600]: 2019-02-20 10:53:27.296 INFO 2627 --- [ssh-cli cbadmin] s.s.s.console.TerminalProcessor : null
Feb 20 10:53:28 XXXX cbackup.jar[2600]: 2019-02-20 10:53:28.004 INFO 2627 --- []-nio2-thread-3] o.a.s.s.session.ServerUserAuthService : Session cbadmin@/127.0.0.1:56068 authenticated
Feb 20 10:53:31 XXXX cbackup.jar[2600]: 2019-02-20 10:53:31.085 INFO 2627 --- [ssh-cli cbadmin] s.s.s.console.TerminalProcessor : null

this is the message i get when trying to start the scheduler on the top menu
Can't get settings from API.
any ideas??

i connect to the daemon service with ssh -p 8437 [email protected] and getting this output
cbackup> cbackup status
Scheduler is not running
cbackup> cbackup start
Can't start cron service.

Mikrotik configs: would it be possible to exclude the date?

Hello,

I am trying to use cBackup to save the configuration of Mikrotik RouterOS devices. The output of the export command on these devices contain the current date/time. Because of this, cBackup sees each backup as different from the earlier one and will show the 30 last backups instead of showing the last 30 backups where the config was really changed.

Is there a way to work around this issue?

There is a thread on Mikrotik forum about this issue, but there is not much out there unfortunately. https://forum.mikrotik.com/viewtopic.php?t=138461

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.