facter 1.5.8 → 1.5.9

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of facter might be problematic. Click here for more details.

Files changed (119) hide show
  1. data/CHANGELOG +94 -0
  2. data/INSTALL +1 -1
  3. data/README +1 -1
  4. data/README.rst +3 -3
  5. data/Rakefile +9 -6
  6. data/bin/facter +18 -123
  7. data/conf/redhat/facter.spec +21 -3
  8. data/conf/solaris/pkginfo +2 -2
  9. data/install.rb +18 -10
  10. data/lib/facter.rb +27 -1
  11. data/lib/facter/application.rb +123 -0
  12. data/lib/facter/arp.rb +28 -0
  13. data/lib/facter/ec2.rb +32 -11
  14. data/lib/facter/hardwareisa.rb +1 -1
  15. data/lib/facter/id.rb +2 -9
  16. data/lib/facter/interfaces.rb +1 -1
  17. data/lib/facter/ipaddress.rb +2 -33
  18. data/lib/facter/ipaddress6.rb +68 -0
  19. data/lib/facter/lsb.rb +5 -5
  20. data/lib/facter/lsbmajdistrelease.rb +1 -1
  21. data/lib/facter/macaddress.rb +4 -14
  22. data/lib/facter/manufacturer.rb +9 -0
  23. data/lib/facter/memory.rb +110 -6
  24. data/lib/facter/netmask.rb +1 -1
  25. data/lib/facter/operatingsystem.rb +17 -2
  26. data/lib/facter/operatingsystemrelease.rb +34 -0
  27. data/lib/facter/processor.rb +8 -5
  28. data/lib/facter/selinux.rb +37 -4
  29. data/lib/facter/uniqueid.rb +1 -1
  30. data/lib/facter/util/#uptime.rb# +64 -0
  31. data/lib/facter/util/ip.rb +23 -15
  32. data/lib/facter/util/loader.rb +2 -2
  33. data/lib/facter/util/macaddress.rb +28 -0
  34. data/lib/facter/util/manufacturer.rb +39 -2
  35. data/lib/facter/util/memory.rb +43 -0
  36. data/lib/facter/util/netmask.rb +1 -1
  37. data/lib/facter/util/resolution.rb +7 -0
  38. data/lib/facter/util/uptime.rb +11 -1
  39. data/lib/facter/util/virtual.rb +13 -2
  40. data/lib/facter/util/vlans.rb +2 -2
  41. data/lib/facter/util/xendomains.rb +10 -0
  42. data/lib/facter/virtual.rb +45 -13
  43. data/lib/facter/xendomains.rb +10 -0
  44. data/spec/fixtures/ifconfig/bsd_ifconfig_all_with_multiple_interfaces +18 -0
  45. data/spec/fixtures/ifconfig/centos_5_5 +17 -0
  46. data/spec/fixtures/ifconfig/centos_5_5_eth0 +8 -0
  47. data/spec/fixtures/ifconfig/darwin_10_3_0 +26 -0
  48. data/spec/fixtures/ifconfig/darwin_10_3_0_en0 +6 -0
  49. data/spec/fixtures/ifconfig/darwin_10_6_4 +28 -0
  50. data/spec/fixtures/ifconfig/darwin_10_6_4_en1 +6 -0
  51. data/spec/fixtures/ifconfig/darwin_10_6_6_dualstack +8 -0
  52. data/spec/fixtures/ifconfig/darwin_10_6_6_dualstack_en1 +7 -0
  53. data/spec/fixtures/ifconfig/darwin_9_8_0 +26 -0
  54. data/spec/fixtures/ifconfig/darwin_9_8_0_en0 +6 -0
  55. data/spec/fixtures/ifconfig/darwin_ifconfig_all_with_multiple_interfaces +23 -0
  56. data/spec/fixtures/ifconfig/fedora_10 +36 -0
  57. data/spec/fixtures/ifconfig/fedora_10_eth0 +9 -0
  58. data/spec/fixtures/ifconfig/fedora_13 +18 -0
  59. data/spec/fixtures/ifconfig/fedora_13_eth0 +9 -0
  60. data/spec/fixtures/ifconfig/fedora_8 +38 -0
  61. data/spec/fixtures/ifconfig/fedora_8_eth0 +9 -0
  62. data/spec/fixtures/ifconfig/freebsd_6_0 +12 -0
  63. data/spec/fixtures/ifconfig/linux_ifconfig_all_with_multiple_interfaces +19 -0
  64. data/spec/fixtures/ifconfig/open_solaris_10 +12 -0
  65. data/spec/fixtures/ifconfig/open_solaris_b132 +20 -0
  66. data/spec/fixtures/ifconfig/sunos_ifconfig_all_with_multiple_interfaces +10 -0
  67. data/spec/fixtures/ifconfig/ubuntu_7_04 +38 -0
  68. data/spec/fixtures/ifconfig/ubuntu_7_04_eth0 +9 -0
  69. data/spec/fixtures/netstat/centos_5_5 +5 -0
  70. data/spec/fixtures/netstat/darwin_10_3_0 +35 -0
  71. data/spec/fixtures/netstat/darwin_10_6_4 +29 -0
  72. data/spec/fixtures/netstat/darwin_10_6_6_dualstack +34 -0
  73. data/spec/fixtures/netstat/darwin_9_8_0 +28 -0
  74. data/spec/fixtures/netstat/fedora_10 +7 -0
  75. data/spec/fixtures/netstat/open_solaris_10 +16 -0
  76. data/spec/fixtures/netstat/open_solaris_b132 +17 -0
  77. data/spec/fixtures/netstat/ubuntu_7_04 +7 -0
  78. data/spec/fixtures/uptime/kstat_boot_time +1 -0
  79. data/spec/fixtures/virtual/proc_self_status/vserver_2_1/guest +37 -0
  80. data/spec/fixtures/virtual/proc_self_status/vserver_2_1/host +36 -0
  81. data/spec/fixtures/virtual/proc_self_status/vserver_2_3/guest +39 -0
  82. data/spec/fixtures/virtual/proc_self_status/vserver_2_3/host +39 -0
  83. data/spec/integration/{facter.rb → facter_spec.rb} +1 -1
  84. data/spec/spec_helper.rb +8 -3
  85. data/spec/unit/data/debian_kfreebsd_ifconfig +40 -0
  86. data/spec/unit/data/hpux_netstat_all_interfaces +3 -6
  87. data/spec/unit/data/selinux_sestatus +6 -0
  88. data/spec/unit/data/xendomains +4 -0
  89. data/spec/unit/{facter.rb → facter_spec.rb} +28 -1
  90. data/spec/unit/id_spec.rb +27 -0
  91. data/spec/unit/{interfaces.rb → interfaces_spec.rb} +1 -1
  92. data/spec/unit/ipaddress6_spec.rb +36 -0
  93. data/spec/unit/memory_spec.rb +45 -0
  94. data/spec/unit/{operatingsystem.rb → operatingsystem_spec.rb} +22 -8
  95. data/spec/unit/operatingsystemrelease_spec.rb +49 -0
  96. data/spec/unit/selinux_spec.rb +89 -0
  97. data/spec/unit/{uptime.rb → uptime_spec.rb} +4 -4
  98. data/spec/unit/util/{collection.rb → collection_spec.rb} +1 -1
  99. data/spec/unit/util/{confine.rb → confine_spec.rb} +1 -1
  100. data/spec/unit/util/{fact.rb → fact_spec.rb} +1 -1
  101. data/spec/unit/util/{ip.rb → ip_spec.rb} +47 -12
  102. data/spec/unit/util/{loader.rb → loader_spec.rb} +51 -1
  103. data/spec/unit/util/macaddress_spec.rb +68 -0
  104. data/spec/unit/util/{macosx.rb → macosx_spec.rb} +1 -1
  105. data/spec/unit/util/{manufacturer.rb → manufacturer_spec.rb} +15 -4
  106. data/spec/unit/util/{resolution.rb → resolution_spec.rb} +1 -1
  107. data/spec/unit/util/uptime_spec.rb +73 -0
  108. data/spec/unit/util/{virtual.rb → virtual_spec.rb} +37 -3
  109. data/spec/unit/util/{vlans.rb → vlans_spec.rb} +1 -1
  110. data/spec/unit/util/xendomains_spec.rb +23 -0
  111. data/spec/unit/virtual_spec.rb +196 -0
  112. metadata +149 -98
  113. data/spec/Rakefile +0 -18
  114. data/spec/unit/data/hpux_ifconfig +0 -3
  115. data/spec/unit/data/hpux_netscan +0 -4
  116. data/spec/unit/operatingsystemrelease.rb +0 -39
  117. data/spec/unit/selinux.rb +0 -48
  118. data/spec/unit/util/uptime.rb +0 -53
  119. data/spec/unit/virtual.rb +0 -71
@@ -50,5 +50,48 @@ module Facter::Memory
50
50
 
51
51
  return "%.2f %s" % [size, s]
52
52
  end
53
+
54
+ def self.vmstat_find_free_memory()
55
+ row = Facter::Util::Resolution.exec('vmstat').split("\n")[-1]
56
+ if row =~ /^\s*\d+\s*\d+\s*\d+\s*\d+\s*(\d+)/
57
+ Facter.add("MemoryFree") do
58
+ memfree = $1
59
+ setcode do
60
+ Facter::Memory.scale_number(memfree.to_f, "kB")
61
+ end
62
+ end
63
+ end
64
+ end
65
+
66
+ # Darwin had to be different. It's generally opaque with how much RAM it is
67
+ # using, and this figure could be improved upon too I fear.
68
+ # Parses the output of "vm_stat", takes the pages free & pages speculative
69
+ # and multiples that by the page size (also given in output). Ties in with
70
+ # what activity monitor outputs for free memory.
71
+ def self.vmstat_darwin_find_free_memory()
72
+
73
+ memfree = 0
74
+ pagesize = 0
75
+ memspecfree = 0
76
+
77
+ vmstats = Facter::Util::Resolution.exec('vm_stat')
78
+ vmstats.each do |vmline|
79
+ case
80
+ when vmline =~ /page\ssize\sof\s(\d+)\sbytes/
81
+ pagesize = $1.to_i
82
+ when vmline =~ /^Pages\sfree:\s+(\d+)\./
83
+ memfree = $1.to_i
84
+ when vmline =~ /^Pages\sspeculative:\s+(\d+)\./
85
+ memspecfree = $1.to_i
86
+ end
87
+ end
88
+
89
+ freemem = ( memfree + memspecfree ) * pagesize
90
+ Facter.add("MemoryFree") do
91
+ setcode do
92
+ Facter::Memory.scale_number(freemem.to_f, "")
93
+ end
94
+ end
95
+ end
53
96
  end
54
97
 
@@ -17,7 +17,7 @@ module Facter::NetMask
17
17
  :regex => %r{\s+ inet \s #{Facter.ipaddress} \s netmask \s (\w{8})}x,
18
18
  :munge => Proc.new { |mask| mask.scan(/../).collect do |byte| byte.to_i(16) end.join('.') }
19
19
  }
20
- when 'FreeBSD','NetBSD','OpenBSD', 'Darwin'
20
+ when 'FreeBSD','NetBSD','OpenBSD', 'Darwin', 'GNU/kFreeBSD'
21
21
  ops = {
22
22
  :ifconfig => '/sbin/ifconfig -a',
23
23
  :regex => %r{\s+ inet \s #{Facter.ipaddress} \s netmask \s 0x(\w{8})}x,
@@ -135,6 +135,9 @@ class Facter::Util::Resolution
135
135
  def value
136
136
  result = nil
137
137
  return result if @code == nil and @interpreter == nil
138
+
139
+ starttime = Time.now.to_f
140
+
138
141
  begin
139
142
  Timeout.timeout(limit) do
140
143
  if @code.is_a?(Proc)
@@ -156,6 +159,10 @@ class Facter::Util::Resolution
156
159
  return nil
157
160
  end
158
161
 
162
+ finishtime = Time.now.to_f
163
+ ms = (finishtime - starttime) * 1000
164
+ Facter.show_time "#{self.name}: #{"%.2f" % ms}ms"
165
+
159
166
  return nil if result == ""
160
167
  return result
161
168
  end
@@ -4,7 +4,7 @@ require 'time'
4
4
  #
5
5
  module Facter::Util::Uptime
6
6
  def self.get_uptime_seconds_unix
7
- uptime_proc_uptime or uptime_sysctl or uptime_who_dash_b
7
+ uptime_proc_uptime or uptime_sysctl or uptime_kstat or uptime_who_dash_b
8
8
  end
9
9
 
10
10
  def self.get_uptime_seconds_win
@@ -30,6 +30,12 @@ module Facter::Util::Uptime
30
30
  end
31
31
  end
32
32
 
33
+ def self.uptime_kstat
34
+ if output = Facter::Util::Resolution.exec("#{uptime_kstat_cmd} 2>/dev/null")
35
+ compute_uptime(Time.at(output.chomp.split(/\s/).last.to_i))
36
+ end
37
+ end
38
+
33
39
  def self.uptime_who_dash_b
34
40
  if output = Facter::Util::Resolution.exec("#{uptime_who_cmd} 2>/dev/null")
35
41
  compute_uptime(Time.parse(output))
@@ -48,6 +54,10 @@ module Facter::Util::Uptime
48
54
  'sysctl -b kern.boottime'
49
55
  end
50
56
 
57
+ def self.uptime_kstat_cmd
58
+ 'kstat -p unix:::boot_time'
59
+ end
60
+
51
61
  def self.uptime_who_cmd
52
62
  'who -b'
53
63
  end
@@ -22,7 +22,7 @@ module Facter::Util::Virtual
22
22
  def self.vserver?
23
23
  return false unless FileTest.exists?("/proc/self/status")
24
24
  txt = File.read("/proc/self/status")
25
- return true if txt =~ /^(s_context|VxID):[[:blank:]]*[1-9]/
25
+ return true if txt =~ /^(s_context|VxID):[[:blank:]]*[0-9]/
26
26
  return false
27
27
  end
28
28
 
@@ -59,7 +59,18 @@ module Facter::Util::Virtual
59
59
  end
60
60
 
61
61
  def self.jail?
62
- Facter::Util::Resolution.exec("/sbin/sysctl -n security.jail.jailed") == "1"
62
+ path = case Facter.value(:kernel)
63
+ when "FreeBSD" then "/sbin"
64
+ when "GNU/kFreeBSD" then "/bin"
65
+ end
66
+ Facter::Util::Resolution.exec("#{path}/sysctl -n security.jail.jailed") == "1"
67
+ end
68
+
69
+ def self.hpvm?
70
+ Facter::Util::Resolution.exec("/usr/bin/getconf MACHINE_MODEL").chomp =~ /Virtual Machine/
63
71
  end
64
72
 
73
+ def self.zlinux?
74
+ "zlinux"
75
+ end
65
76
  end
@@ -12,7 +12,7 @@ module Facter::Util::Vlans
12
12
  def self.get_vlans
13
13
  vlans = Array.new
14
14
  if self.get_vlan_config
15
- self.get_vlan_config.each do |line|
15
+ self.get_vlan_config.each_line do |line|
16
16
  if line =~ /^([0-9A-Za-z]+)\.([0-9]+) /
17
17
  vlans.insert(-1, $~[2]) if $~[2]
18
18
  end
@@ -21,4 +21,4 @@ module Facter::Util::Vlans
21
21
 
22
22
  vlans.join(',')
23
23
  end
24
- end
24
+ end
@@ -0,0 +1,10 @@
1
+ # A module to gather running Xen Domains
2
+ #
3
+ module Facter::Util::Xendomains
4
+ def self.get_domains
5
+ if xm_list = Facter::Util::Resolution.exec('/usr/sbin/xm list 2>/dev/null')
6
+ domains = xm_list.split("\n").reject { |line| line =~ /^(Name|Domain-0)/ }
7
+ domains.map { |line| line.split(/\s/)[0] }.join(',')
8
+ end
9
+ end
10
+ end
@@ -1,13 +1,41 @@
1
1
  require 'facter/util/virtual'
2
2
 
3
3
  Facter.add("virtual") do
4
- confine :kernel => %w{Linux FreeBSD OpenBSD SunOS}
4
+ confine :kernel => "Darwin"
5
+
6
+ setcode do
7
+ require 'facter/util/macosx'
8
+ result = "physical"
9
+ output = Facter::Util::Macosx.profiler_data("SPDisplaysDataType")
10
+ if output.is_a?(Hash)
11
+ result = "parallels" if output["spdisplays_vendor-id"] =~ /0x1ab8/
12
+ result = "parallels" if output["spdisplays_vendor"] =~ /[Pp]arallels/
13
+ result = "vmware" if output["spdisplays_vendor-id"] =~ /0x15ad/
14
+ result = "vmware" if output["spdisplays_vendor"] =~ /VM[wW]are/
15
+ end
16
+ result
17
+ end
18
+ end
19
+
20
+
21
+ Facter.add("virtual") do
22
+ confine :kernel => %w{Linux FreeBSD OpenBSD SunOS HP-UX GNU/kFreeBSD}
5
23
 
6
24
  result = "physical"
7
25
 
8
26
  setcode do
9
27
 
10
- result = "zone" if Facter::Util::Virtual.zone?
28
+ if Facter::Util::Virtual.zone? and Facter.value(:operatingsystem) == "Solaris"
29
+ result = "zone"
30
+ end
31
+
32
+ if Facter.value(:kernel)=="HP-UX"
33
+ result = "hpvm" if Facter::Util::Virtual.hpvm?
34
+ end
35
+
36
+ if Facter.value(:architecture)=="s390x"
37
+ result = "zlinux" if Facter::Util::Virtual.zlinux?
38
+ end
11
39
 
12
40
  if Facter::Util::Virtual.openvz?
13
41
  result = Facter::Util::Virtual.openvz_type()
@@ -38,7 +66,7 @@ Facter.add("virtual") do
38
66
  result = Facter::Util::Virtual.kvm_type()
39
67
  end
40
68
 
41
- if Facter.value(:kernel)=="FreeBSD"
69
+ if ["FreeBSD", "GNU/kFreeBSD"].include? Facter.value(:kernel)
42
70
  result = "jail" if Facter::Util::Virtual.jail?
43
71
  end
44
72
 
@@ -49,23 +77,28 @@ Facter.add("virtual") do
49
77
  # --- look for the vmware video card to determine if it is virtual => vmware.
50
78
  # --- 00:0f.0 VGA compatible controller: VMware Inc [VMware SVGA II] PCI Display Adapter
51
79
  result = "vmware" if p =~ /VM[wW]are/
80
+ # --- look for pci vendor id used by Parallels video card
81
+ # --- 01:00.0 VGA compatible controller: Unknown device 1ab8:4005
82
+ result = "parallels" if p =~ /1ab8:|[Pp]arallels/
52
83
  end
53
84
  else
54
85
  output = Facter::Util::Resolution.exec('dmidecode')
55
86
  if not output.nil?
56
87
  output.each_line do |pd|
57
- result = "vmware" if pd =~ /VMware|Parallels/
88
+ result = "parallels" if pd =~ /Parallels/
89
+ result = "vmware" if pd =~ /VMware/
58
90
  end
59
91
  else
60
92
  output = Facter::Util::Resolution.exec('prtdiag')
61
93
  if not output.nil?
62
94
  output.each_line do |pd|
63
- result = "vmware" if pd =~ /VMware|Parallels/
95
+ result = "parallels" if pd =~ /Parallels/
96
+ result = "vmware" if pd =~ /VMware/
64
97
  end
65
98
  end
66
99
  end
67
100
  end
68
- # VMware server 1.0.3 rpm places vmware-vmx in this place, other versions or platforms may not.
101
+
69
102
  if FileTest.exists?("/usr/lib/vmware/bin/vmware-vmx")
70
103
  result = "vmware_server"
71
104
  end
@@ -74,16 +107,15 @@ Facter.add("virtual") do
74
107
  result
75
108
  end
76
109
  end
77
-
110
+
78
111
  Facter.add("is_virtual") do
79
- confine :kernel => %w{Linux FreeBSD OpenBSD SunOS}
112
+ confine :kernel => %w{Linux FreeBSD OpenBSD SunOS HP-UX Darwin GNU/kFreeBSD}
80
113
 
81
114
  setcode do
82
- case Facter.value(:virtual)
83
- when "xenu", "openvzve", "vmware", "kvm", "vserver", "jail"
84
- true
85
- else
86
- false
115
+ if Facter.value(:virtual) != "physical" && Facter.value(:virtual) != "xen0"
116
+ "true"
117
+ else
118
+ "false"
87
119
  end
88
120
  end
89
121
  end
@@ -0,0 +1,10 @@
1
+ require 'facter/util/xendomains'
2
+
3
+ Facter.add("xendomains") do
4
+ confine :kernel => %w{Linux FreeBSD OpenBSD SunOS}
5
+ confine :virtual => 'xen0'
6
+
7
+ setcode do
8
+ Facter::Util::Xendomains.get_domains
9
+ end
10
+ end
@@ -0,0 +1,18 @@
1
+ bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
2
+ options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
3
+ ether 00:0b:db:93:09:67
4
+ inet 131.252.208.203 netmask 0xffffff00 broadcast 131.252.208.255
5
+ inet6 fe80::20b:dbff:fe93:967%bge0 prefixlen 64 scopeid 0x1
6
+ inet6 2610:10:20:208:20b:dbff:fe93:967 prefixlen 64 autoconf
7
+ media: Ethernet autoselect (1000baseT <full-duplex>)
8
+ status: active
9
+ bge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
10
+ options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
11
+ ether 00:0b:db:93:09:68
12
+ media: Ethernet autoselect (none)
13
+ status: no carrier
14
+ lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
15
+ options=3<RXCSUM,TXCSUM>
16
+ inet 127.0.0.1 netmask 0xff000000
17
+ inet6 ::1 prefixlen 128
18
+ inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
@@ -0,0 +1,17 @@
1
+ eth0 Link encap:Ethernet HWaddr 16:8D:2A:15:17:91
2
+ inet addr:100.100.100.92 Bcast:100.100.100.255 Mask:255.255.255.0
3
+ inet6 addr: fe80::148d:2aff:fe15:1791/64 Scope:Link
4
+ UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
5
+ RX packets:1914742 errors:0 dropped:0 overruns:0 frame:0
6
+ TX packets:3933 errors:0 dropped:0 overruns:0 carrier:0
7
+ collisions:0 txqueuelen:1000
8
+ RX bytes:178728699 (170.4 MiB) TX bytes:389936 (380.7 KiB)
9
+
10
+ lo Link encap:Local Loopback
11
+ inet addr:127.0.0.1 Mask:255.0.0.0
12
+ inet6 addr: ::1/128 Scope:Host
13
+ UP LOOPBACK RUNNING MTU:16436 Metric:1
14
+ RX packets:0 errors:0 dropped:0 overruns:0 frame:0
15
+ TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
16
+ collisions:0 txqueuelen:0
17
+ RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
@@ -0,0 +1,8 @@
1
+ eth0 Link encap:Ethernet HWaddr 16:8D:2A:15:17:91
2
+ inet addr:100.100.100.92 Bcast:100.100.100.255 Mask:255.255.255.0
3
+ inet6 addr: fe80::148d:2aff:fe15:1791/64 Scope:Link
4
+ UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
5
+ RX packets:1914871 errors:0 dropped:0 overruns:0 frame:0
6
+ TX packets:3960 errors:0 dropped:0 overruns:0 carrier:0
7
+ collisions:0 txqueuelen:1000
8
+ RX bytes:178738891 (170.4 MiB) TX bytes:393862 (384.6 KiB)
@@ -0,0 +1,26 @@
1
+ lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
2
+ inet6 ::1 prefixlen 128
3
+ inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
4
+ inet 127.0.0.1 netmask 0xff000000
5
+ gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
6
+ stf0: flags=0<> mtu 1280
7
+ en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
8
+ ether 00:17:f2:06:e3:c2
9
+ inet6 fe80::217:f2ff:fe06:e3c2%en0 prefixlen 64 scopeid 0x4
10
+ inet 100.100.104.12 netmask 0xffffff00 broadcast 100.100.104.255
11
+ media: autoselect (1000baseT <full-duplex>)
12
+ status: active
13
+ en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
14
+ ether 00:17:f2:06:e3:c3
15
+ media: autoselect
16
+ status: inactive
17
+ fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
18
+ lladdr 00:16:cb:ff:fe:76:6e:be
19
+ media: autoselect <full-duplex>
20
+ status: inactive
21
+ vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
22
+ ether 00:50:56:c0:00:08
23
+ inet 172.16.95.1 netmask 0xffffff00 broadcast 172.16.95.255
24
+ vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
25
+ ether 00:50:56:c0:00:01
26
+ inet 172.16.201.1 netmask 0xffffff00 broadcast 172.16.201.255
@@ -0,0 +1,6 @@
1
+ en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
2
+ ether 00:17:f2:06:e3:c2
3
+ inet6 fe80::217:f2ff:fe06:e3c2%en0 prefixlen 64 scopeid 0x4
4
+ inet 100.100.104.12 netmask 0xffffff00 broadcast 100.100.104.255
5
+ media: autoselect (1000baseT <full-duplex>)
6
+ status: active
@@ -0,0 +1,28 @@
1
+ lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
2
+ inet6 ::1 prefixlen 128
3
+ inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
4
+ inet 127.0.0.1 netmask 0xff000000
5
+ gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
6
+ stf0: flags=0<> mtu 1280
7
+ en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
8
+ ether 58:b0:35:fa:08:b1
9
+ media: autoselect
10
+ status: inactive
11
+ en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
12
+ ether 58:b0:35:7f:25:b3
13
+ inet6 fe80::5ab0:35ff:fe7f:25b3%en1 prefixlen 64 scopeid 0x5
14
+ inet 192.168.100.230 netmask 0xffffff00 broadcast 192.168.100.255
15
+ media: <unknown subtype>
16
+ status: active
17
+ fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
18
+ lladdr c4:2c:03:ff:fe:fc:c8:aa
19
+ media: autoselect <full-duplex>
20
+ status: inactive
21
+ vboxnet0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
22
+ ether 0a:00:27:00:00:00
23
+ vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
24
+ ether 00:50:56:c0:00:01
25
+ inet 172.16.135.1 netmask 0xffffff00 broadcast 172.16.135.255
26
+ vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
27
+ ether 00:50:56:c0:00:08
28
+ inet 172.16.38.1 netmask 0xffffff00 broadcast 172.16.38.255
@@ -0,0 +1,6 @@
1
+ en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
2
+ ether 58:b0:35:7f:25:b3
3
+ inet6 fe80::5ab0:35ff:fe7f:25b3%en1 prefixlen 64 scopeid 0x5
4
+ inet 192.168.100.230 netmask 0xffffff00 broadcast 192.168.100.255
5
+ media: <unknown subtype>
6
+ status: active
@@ -0,0 +1,8 @@
1
+ lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
2
+ inet 127.0.0.1 netmask 0xff000000
3
+ inet6 ::1 prefixlen 128
4
+ inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
5
+ en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
6
+ ether 00:25:4b:ca:56:72
7
+ media: autoselect
8
+ status: inactive
@@ -0,0 +1,7 @@
1
+ en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
2
+ ether 00:25:00:48:19:ef
3
+ inet6 fe80::225:ff:fe48:19ef%en1 prefixlen 64 scopeid 0x5
4
+ inet 192.168.1.207 netmask 0xffffff00 broadcast 192.168.1.255
5
+ inet6 2000:44b4:32:400::1 prefixlen 64
6
+ media: autoselect
7
+ status: active
@@ -0,0 +1,26 @@
1
+ lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
2
+ inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
3
+ inet 127.0.0.1 netmask 0xff000000
4
+ inet6 ::1 prefixlen 128
5
+ gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
6
+ stf0: flags=0<> mtu 1280
7
+ en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
8
+ inet6 fe80::217:f2ff:fe06:e42e%en0 prefixlen 64 scopeid 0x4
9
+ inet 100.100.107.4 netmask 0xffffff00 broadcast 100.100.107.255
10
+ ether 00:17:f2:06:e4:2e
11
+ media: autoselect (1000baseT <full-duplex>) status: active
12
+ supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control>
13
+ en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
14
+ ether 00:17:f2:06:e4:2f
15
+ media: autoselect status: inactive
16
+ supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control>
17
+ fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
18
+ lladdr 00:16:cb:ff:fe:76:66:f2
19
+ media: autoselect <full-duplex> status: inactive
20
+ supported media: autoselect <full-duplex>
21
+ vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
22
+ inet 192.168.210.1 netmask 0xffffff00 broadcast 192.168.210.255
23
+ ether 00:50:56:c0:00:08
24
+ vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
25
+ inet 192.168.61.1 netmask 0xffffff00 broadcast 192.168.61.255
26
+ ether 00:50:56:c0:00:01