From f97dcdd539407d5987236bdffacc093cc790d373 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Sat, 14 Jun 2014 23:17:22 +0200 Subject: Add preliminary support for Cisco routers. Need to be tested. --- config.php.example | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'config.php.example') diff --git a/config.php.example b/config.php.example index 0f19e46..0749398 100644 --- a/config.php.example +++ b/config.php.example @@ -29,16 +29,16 @@ $config['filters'][1] = '/^NotToShow/'; // Routers definitions -// Authentication based on SSH with password +// Authentication based on SSH or Telnet with password // The hostname or the IP address $config['routers']['router1']['host'] = 'r1.example.net'; // The user to use to connect to the router $config['routers']['router1']['user'] = 'readonlyuser'; // The password of the given user $config['routers']['router1']['pass'] = 'readonlypassword'; -// The authentication mecanism to use (ssh-password, ssh-key or telnet) +// The authentication mecanism to use (can be ssh-password or telnet) $config['routers']['router1']['auth'] = 'ssh-password'; -// The router type (juniper/junos only supported for now) +// The router type (can be cisco, ios, juniper or junos) $config['routers']['router1']['type'] = 'juniper'; // The router description to be displayed in the router list $config['routers']['router1']['desc'] = 'Example\'s Router 1'; @@ -54,25 +54,11 @@ $config['routers']['router2']['public_key'] = '/home/user/.ssh/key.pub'; $config['routers']['router2']['private_key'] = '/home/user/.ssh/key.pub'; // The passphrase of the key (optional if the key has no passphrase) $config['routers']['router2']['pass'] = 'mypassphrase'; -// The authentication mecanism to use (ssh-password, ssh-key or telnet) +// The authentication mecanism to use (ssh-key for SSH based on keys) $config['routers']['router2']['auth'] = 'ssh-key'; -// The router type (juniper/junos only supported for now) +// The router type (can be cisco, ios, juniper or junos) $config['routers']['router2']['type'] = 'juniper'; // The router description to be displayed in the router list $config['routers']['router2']['desc'] = 'Example\'s Router 2'; -// Authentication based on Telnet -// The hostname or the IP address -$config['routers']['router3']['host'] = 'r3.example.net'; -// The user to use to connect to the router -$config['routers']['router3']['user'] = 'readonlyuser'; -// The password of the given user -$config['routers']['router3']['pass'] = 'readonlypassword'; -// The authentication mecanism to use (ssh-password, ssh-key or telnet) -$config['routers']['router3']['auth'] = 'telnet'; -// The router type (juniper/junos only supported for now) -$config['routers']['router3']['type'] = 'juniper'; -// The router description to be displayed in the router list -$config['routers']['router3']['desc'] = 'Example\'s Router 3'; - // End of config.php -- cgit v1.2.3