Advertisement
Guest User

Untitled

a guest
Dec 8th, 2012
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. ===== Create a /opt/netdb/data/devicelist.csv file
  2.  
  3. This file contains all of your switches and routers, and scraper options on
  4. each device. It is in csv format, so you can easily build your own parser from
  5. another list of devices you already have. We use big brother here and store all
  6. the netdb options in that file, which is parsed in to this file.
  7.  
  8. Note: All of your devices must be listed by host name (no IPs here) and be in
  9. DNS. NetDB uses the hostname as the switchname for all reports, and not the
  10. local name on the device. You can add a search domain to your /etc/resolv.conf
  11. file if you don't want to use FQDNs here. If you have a small network, you
  12. could add local host entries to /etc/hosts for all of your devices.
  13.  
  14. In short, IPs will not work here, you must have your switches defined with some
  15. sort of hostname locally via /etc/hosts or via your DNS servers.
  16.  
  17. Device file format (each device on a line):
  18. hostname[,arp,vrf-VRFNAME,nomac,forcessh,ipv6]
  19.  
  20. Note:
  21. - SSH is enabled and telnet is disabled by default in the netdb.conf config
  22. file. You can override those settings on a per device basis with forcetelnet
  23. and forcessh.
  24. - By default, NetDB will try to pull the mac table from all devices in the file
  25. - If ,arp is appended, then NetDB will pull the arp table on a router
  26. - If ,vrf-VRFNAME is appended with arp, NetDB will pull the arp table
  27. from the vrf named VRFNAME
  28. - If ipv6 is appended, NetDB will pull the IPv6 Neighbor Table
  29. - If ,nomac is appended, NetDB will not try to pull the mac or int status
  30. data from the device (usefule for non-switching routers)
  31. - If you do not want to use FQDNs here, make sure the domain name for your devices
  32. is in your DNS search domain or use the local /etc/hosts file.
  33. - If your device is not a cisco device, you need to append devtype=XXX or change the
  34. default devtype setting in netdb.conf (see README for more info)
  35.  
  36. Sample devicelist.csv:
  37. L2switch.yourdomain.com
  38. L3Switch.yourdomain.com,arp,forcessh
  39. L3SwitchWithVrfs.yourdomain.com,arp,vrf-perim,vrf-guest
  40. :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement