Issue #21518 has been updated by Rob Reynolds.

Status changed from Accepted to In Topic Branch Pending Review
Assignee set to Rob Reynolds
Branch set to https://github.com/puppetlabs/facter/pull/496

----------------------------------------
Bug #21518: "interface" fact not available on windows 2003
https://projects.puppetlabs.com/issues/21518#change-95657

* Author: Georgi Georgiev
* Status: In Topic Branch Pending Review
* Priority: Normal
* Assignee: Rob Reynolds
* Category: windows
* Target version: 
* Keywords: windows
* Branch: https://github.com/puppetlabs/facter/pull/496
* Affected Facter version: 1.6.18
----------------------------------------
Facter does not report any interfaces on Windows 2003. Facter uses the "netsh 
interface ip show interfaces" command to figure out the interfaces on the 
machine. However, the regex does not work on Windows 2003 at all:

Windows 2008 output:

    > netsh interface ip show interface
    
        Idx  Met   MTU   State        Name
    ---  ---  -----  -----------  -------------------
      1   50 4294967295  connected    Loopback Pseudo-Interface 1
     10    5   1500  connected    data
     11    5   1500  connected    mgmt

Windows 2003 R2 output:

    MIB-II Interface Information
    ------------------------------------------------------
    Index:                              1
    User-friendly Name:                 Loopback
    GUID Name:                          Loopback
    Type:                               Loopback
    MTU:                                32768
    Speed:                              10000000
    Physical Address:                   
    Admin Status:                       Up
    Operational Status:                 Operational
    Last Change:                        0
    In Octets:                          0
    In Unicast Packets:                 0
    In Non-unicast Packets:             0
    In Packets Discarded:               0
    In Erroneous Packets:               0
    In Unknown Protocol Packets:        0
    Out Octets:                         0
    Out Unicast Packets:                0
    Out Non-unicast Packets:            0
    Out Packets Discarded:              0
    Out Erroneous Packets:              0
    Output Queue Length:                0
    Description:                        Internal loopback interface for 127.0.0 
network
    
    Index:                              65539
    User-friendly Name:                 MGMT
    GUID Name:                          {769ADA9C-0419-4327-90E9-4EB6DB29537A}
    Type:                               Ethernet
    MTU:                                1500
    Speed:                              1410065408
    Physical Address:                   00-15-5D-21-2B-0A
    Admin Status:                       Up
    Operational Status:                 Operational
    Last Change:                        264334033
    In Octets:                          18630084
    In Unicast Packets:                 76008
    In Non-unicast Packets:             121246
    In Packets Discarded:               0
    In Erroneous Packets:               0
    In Unknown Protocol Packets:        11
    Out Octets:                         8059173
    Out Unicast Packets:                48225
    Out Non-unicast Packets:            5499
    Out Packets Discarded:              0
    Out Erroneous Packets:              0
    Output Queue Length:                0
    Description:                        Microsoft Virtual Machine Bus Network 
Adapter #2
    
    Index:                              65540
    User-friendly Name:                 DATA
    GUID Name:                          {86EE41CB-CB46-4F1A-AE99-566855AE14C4}
    Type:                               Ethernet
    MTU:                                1500
    Speed:                              1410065408
    Physical Address:                   00-15-5D-21-2B-08
    Admin Status:                       Up
    Operational Status:                 Operational
    Last Change:                        264334035
    In Octets:                          79206738
    In Unicast Packets:                 121289
    In Non-unicast Packets:             29290
    In Packets Discarded:               0
    In Erroneous Packets:               0
    In Unknown Protocol Packets:        14
    Out Octets:                         19782379
    Out Unicast Packets:                150504
    Out Non-unicast Packets:            1438
    Out Packets Discarded:              0
    Out Erroneous Packets:              0
    Output Queue Length:                0
    Description:                        Microsoft Virtual Machine Bus Network 
Adapter


I should also note that on windows 2003, `netsh interface` refuses to run 
unless the, normally disabled, "Routing and Remote Access" service is started.

Windows 2003 R2 output with "Routing and Remote Access" disabled:

    > netsh interface ip show interface
    
    The Routing and Remote Access Service is not currently running on the local 
machine.
    Please use 'net start remoteaccess' on the machine to start the service.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to