Subversion Repositories sysadmin_scripts

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 rodolico 1
---
69 rodolico 2
# You must include at least one router.
3
# this will be queried to resolve IP's to MAC 
4
# using its arp table
5
# put IP and community name into the hash
5 rodolico 6
routers:
69 rodolico 7
  'DNS or IP':
8
    community: 'snmp community name'
9
# one or more switches and their corresponding
10
# community name. Use v1 snmp only
5 rodolico 11
switches:
69 rodolico 12
  'DNS or IP':
13
    community: 'snmp community name'
14
# the following list can be used to ignore ports on this switch. Note that these are the port numbers
15
# returned by OID iso.3.6.1.2.1.2.2.1.8
5 rodolico 16
    portsToIgnore:
69 rodolico 17
      - port
18
      - numbers
19
      - to
20
      - ignore
21
# this is entire optional, but if it exists, it will be used to supplement or override MAC to IP to DNS lookup.
22
# Each entry is optional
23
# MAC is the hexidecimal mac address, with no delimiters and all lower case. Example is: 
24
#    402cf4e9ae9b      CORRECT
25
#    40:2c:f4:e9:ae:9b WRONG, has delimiters (the colons)
26
#    402CF4E9AE9B      WRONG, alphas are upper case
27
# ip:       if this is entered, will be used as IP for the mac address, otherwise it is looked up in the routers arp table.
28
#           default is to get IP from router's arp table
29
# hostname: If this is entered, will be used for hostname, otherwise done via reverse DNS entry from router. Default is
30
#           to look up via rdns
31
# override: If false, ip/hostname only be used if no value returned from arp/rdns. If true, ip/hostname are not even
32
#           attempted, ie this will override anything in those services. Default is false, only use if you can not find
33
#           it.
34
staticmaps:
35
  MAC1:
36
    hostname: some.host.name
37
    ip: 1.1.1.1
38
    override: 0
39
  MAC2:
40
    hostname: 'some other host name'
41
    ip: 1.1.1.2
42
    override: 1
128 rodolico 43
 
44
# Optional files to be processed for items which were not in the router
45
# these are assumed to be tab delimited files which contain the column
46
# headers hostname, mac and ip, with values below
47
# this can be done via staticmaps (above), but is set up as an alternative
48
# here for very large files, say from database dumps
49
nonrouter:
50
  - filename
51
  - filename