Rconfig

From Notes_Wiki

Home > CentOS > CentOS 6.x > Network related tools > Rconfig

rconfig allows taking periodic backup of cisco devices (switches, routers, firewalls). It can be configured to run any necessary command such as:

  1. show running-config
  2. show startup-config
  3. show cdp nei

and capture their output. The tool also supports cron configuration so that the same set of commands can be run at scheduled interval automatically.


rconfig installation

rconfig must be installed separately on individual machine without sharing with other websites. The machine can be VM or container. To install rconfig use following steps:

  1. Create account on www.rconfig.com, if not present already
  2. Download rconfig source code and copy it to server
  3. Run visudo and append following at end
    apache ALL = (ALL) NOPASSWD: /usr/bin/crontab, /usr/bin/zip, /bin/chmod, /bin/chown, /usr/bin/whoami
    Defaults:apache !requiretty
  4. Unzip rconfig sources in /home
  5. Then run
    chown -R apache /home/rconfig
    mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.original
    cp /home/rconfig/www/install/httpd.conf.new /etc/httpd/conf/httpd.conf
    yum -y install php php-mysql mysql-server
    service mysqld start
    chkconfig mysqld on
    chkconfig httpd on
    service httpd restart
  6. Open http://<server>/install
  7. Accept license agreement
  8. Enter following values:
    Database server
    localhost
    Port
    3306
    Database name
    rconfig
    Database username
    : root
  9. Click on check settings
  10. Click on install settings
  11. Login into rconfig using admin:admin
  12. If things are fine do =rm /home/rconfig/www/install -rf=
  13. Change admin password
  14. Add device and see if connectivity to devices work. Try connectivity from terminal first to ensure that firewall (iptables) rules on machine and ACL on remote device allow corresponding proctocol (telnet, SSH) from rconfig server source IP.


Home > CentOS > CentOS 6.x > Network related tools > Rconfig