lg_config.php.example 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php isset($_CONFIG) or die('No direct access allowed.');
  2. // ------------------------------------------------------------------------
  3. // LOOKING GLASS CONFIGURATIONS
  4. // ------------------------------------------------------------------------
  5. /*
  6. * Your own AS number
  7. */
  8. $_CONFIG['asn'] = '12345';
  9. /*
  10. * Your own company name
  11. */
  12. $_CONFIG['company'] = 'My Company Name';
  13. /*
  14. * Your logo URL (or FALSE)
  15. */
  16. $_CONFIG['logo'] = 'lg_logo.gif';
  17. /*
  18. * Main style color
  19. */
  20. $_CONFIG['color'] = '#E48559';
  21. /*
  22. * Putty `plink' command path (for SSH connections)
  23. */
  24. $_CONFIG['plink'] = '/usr/local/bin/plink';
  25. /*
  26. * URL address of the IP whois service
  27. */
  28. $_CONFIG['ipwhois'] = 'http://noc.hsdn.org/whois/';
  29. /*
  30. * URL address of the AS whois service
  31. */
  32. $_CONFIG['aswhois'] = 'http://noc.hsdn.org/aswhois/';
  33. /**
  34. * Router nodes
  35. *
  36. * Parameters:
  37. * url - URL address in format: [ssh|telnet]://[login]:[password]@[host]:[port]
  38. * pingtraceurl - URL address for ping and traceroute tools (or FALSE)
  39. * description - Node description
  40. * group - Node group name (of FALSE)
  41. * ipv6 - Node is supports IPv6 (TRUE/FALSE)
  42. * os - Node OS (ios, mikrotik, quagga, junos)
  43. */
  44. $_CONFIG['routers'] = array
  45. (
  46. 'example1' => array
  47. (
  48. 'url' => 'telnet://route-views.optus.net.au:23',
  49. 'pingtraceurl' => FALSE,
  50. 'description' => 'Example Router 1',
  51. 'group' => 'AS12345',
  52. 'ipv6' => TRUE,
  53. 'os' => 'ios',
  54. ),
  55. 'example2' => array
  56. (
  57. 'url' => 'telnet://route-server.eastlink.ca:23',
  58. 'pingtraceurl' => FALSE,
  59. 'description' => 'Example Router 2',
  60. 'group' => 'AS12345',
  61. 'ipv6' => TRUE,
  62. 'os' => 'ios',
  63. ),
  64. );
  65. /* End of file */