GetNetworkInterfaces() missing some interfaces

Hi there,
I want to retrieve a list of installed network interfaces and I am using:
        try
            Enumeration<NetworkInterface> nifs = NetworkInterface.getNetworkInterfaces();
            while (nifs.hasMoreElements())
                NetworkInterface nif = nifs.nextElement();
                System.out.println("Interface: " + nif.getName());
        catch (SocketException ex)
            Logger.getLogger(Net.class.getName()).log(Level.WARNING, null, ex);
        }The problem is, that it does not show all interfaces - this is what it shows:
wlan0
lo(I am currently connected via WLAN)
and here is the correct list (output of "ifconfig -a"):
eth2      Link encap:Ethernet  HWaddr 00:23:ae:2d:78:f3 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:63292 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63292 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5388083 (5.3 MB)  TX bytes:5388083 (5.3 MB)
vboxnet0  Link encap:Ethernet  HWaddr 0a:00:27:00:00:00 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
wlan0     Link encap:Ethernet  HWaddr 00:22:fb:52:22:68 
          inet addr:10.0.0.4  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::222:fbff:fe52:2268/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:139968 errors:0 dropped:0 overruns:0 frame:0
          TX packets:115120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:119590540 (119.5 MB)  TX bytes:26182224 (26.1 MB)
wmaster0  Link encap:UNSPEC  HWaddr 00-22-FB-52-22-68-35-32-00-00-00-00-00-00-00-00 
          UP RUNNING  MTU:0  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)If you now wonder why there is an eth2 but not eth0 this could be because there was a network card that got removed (a good while ago). Why the hack are the others not available in the enumeration of network interfaces? I am using Sun JDK 1.6 update 20:
java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)

I have made several tests and found out that: As soon as I plug in a cable to the interface eth2 then it is recognized. Even if I then plug it off. After reboot it is again not showing up any more.
I am using Ubuntu 9.10 - is it possible that there is an issue with the sun Java runtime on Linux/Ubuntu?
Tried it with the OpenJDK - no, same issue here.
It is really a headache and I already searched the internet - samples to retrieve the interfaces are always basically the same and nobody writes that only interfaces are reported by getNetworkInterfaces() that are up (or have been up recently).
I tested also with the virtualbox - as soon as I start one of the virtual machines the interface shows up.
I started to think it could be an issue of the single machine... - tested on a different machine with very slightly different hardware on Ubuntu 10.04 - same issue here!
I tested on a Windows 2003 machine - there it seems to work even for interfaces that are not up.
Finally tested on Windows 7 and guess what: Even ipconfig /all does not show all interfaces - super crap!
WUUAAHH!
I think I must give up on getting the list of network interfaces in a reliable and platform independent way as even calling the OS specific tools Windows 7 fools me...

Similar Messages

  • Some interfaces are not shown in the sxmb_moni

    Hi all,
    We are facing the following scenario:  we have one interface in XG1 (development environment) which is very simple: it consists of a sender ‘File’ and a receiver ‘IDOC’. The file format has been double checked and apparently is what XI defines but when we execute, we can not see anything in the sxmb_moni and if we look into the ‘adapter monitor’ -> ‘file’ adapter, we can see that the sender seems to execute successfully but the receiver still shows the following: ‘no message processing until now’. So no IDOC is generated and no xml message can be seen in the TCODE sxmb_moni.
    Also we have some interfaces that has ‘file’ receivers and we have the same problems. So, for any reason, the receivers are not working properly. I have refreshed CPACache but the error persists.
    It is preventing a whole team of doing some tests and as the golive date (March-April) is approaching it is impacting us in a strong way.
    Could you please give us some support?
    XIAFUSER is getting locked periodically (i see it in the SLD user management), do you think it will be the main reason of this?
    Thanks in advance and kind regards

    Hi,
    Go to Tcode SXI_CACHE for refreshing the Directory Caches. Go to Adapter Engine link and refresh the same
    Go thru following threads may be useful.
    Message not seen in SXMB_MOni
    Missing Messages - in RWB but not sxmb_moni
    For Adapter Engine you can do as below.
    http://<host>:<port>/CPACache/refresh?mode=full|delta
    In addition to above..
    Go thru following link about Processed XML messages.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/9a5c3bab977239e10000000a114084/frameset.htm
    Just add on info.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/6baeae38391a6ee10000000a11466f/frameset.htm
    Hope this helps..
    Regards,
    Moorthy

  • HR application missing some button in employee information form

    Dear All
    After upgrade from 12.0.6 to 12.1.1, missing some button in employee information form of HR application when using arabic interface but its working for english interface.
    buttons like FIND CANCEL DETAILS SAVEAS CLEAR. these are the buttons missing in arabic interface,
    please advice me
    Thanks

    You can see here how to handle manual processes:
    http://apex.oracle.com/pls/otn/f?p=31517:170
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • EA4500 - Now I am missing some pretty important configuration capabilities

    So my EA4500 updated to your new Cloud Router thing. Now I am missing some pretty important configuration capabilities, AND when I log into the cloud I get errors and cannot proceed. You just broke my perfectly working router. Consider me UPSET....

    FacebookSupport wrote:
    So my EA4500 updated to your new Cloud Router thing. Now I am missing some pretty important configuration capabilities, AND when I log into the cloud I get errors and cannot proceed. You just broke my perfectly working router. Consider me UPSET....
    Yes, what errors are you getting? Anyway, Cisco already posted on their homesupport site the software to get back to the old firmware or interface. There are instructions, too, on how to do it.

  • Apple recently replaced my broken iPhone 5 with a new one. I backed up all my stuff in iCloud. When I set up the new phone I apparently used a back up from an earlier date. Now I am missing some of my stuff. How do I go back and use the most current I cln

    Apple recently replaced my broken iPhone 5 with a new one. I backed up the contents of my phone with iCloud.
    When setting up my new phone I used an iCloud back up from an earlier date. Now I am missing some of my most recent stuff. How
    Do I go back to use the proper iCloud back up to set up my new phone?

    Tap settings> general> reset> erase all content and settings...then you'll have a chance to setuo your phone again

  • ITunes on my iPod Touch is missing some tabs

    Can somebody help me?
    I have:
    + iPod Touch 4th Generation 32GB
    + Wi-fi connection
    + iOS5 installed
    iTunes on my iPod Touch is missing some tabs. The only tabs that's showing on my iTunes are Podcast, iTunes U, Search and Downloads
    Also, whenever I try to load un Podcast tab, it ALWAYS say Your request could not be completed.
    Thank you very much!

    Where exactly are the tabs that are showing, are they a list at the bottom of the page and next to it is the "More" option, or are you referring to the options on the More tab? You can move these options between the bottom of the page and the More section.
    Is that the problem, or is there something else missing? (Perhaps it would have helped if you had mentioned what is missing). If it's the Apps section you are looking for, it has its own App button on the Home screen.
    As for the problem with downloading Podcasts, I would try getting them in iTunes on your computer if you cannot download them via the Touch's Wi-Fi.

  • Missing some basic functionality

    I seem to be missing some basic functionality, like switching to tty1-n using Ctrl+Alt+F1-n.  I can't begin to guess what this is related to, as after several installs I've never experienced that to be missing.  Can anyone point me in the right directions?  Thanks.

    evr wrote:I was recently having problems with commands like because i was using "thinkpad" as the input.xkb.layout value in /etc/hal/fdi/policy/10-keymap.fdi.  Changing to "us" helped me, perhaps that's the issue?
    Hm.  I don't actually have that file in the policy directory.

  • HT201272 Hi guys...I have just got a new computer and want to get my library back up and running on it. However I seem to be missing some of my iTunes music purchases. Any ideas on how to get them back? They show up on my ipad but not my actual itunes acc

    Hi guys...I have just got a new computer and want to get my library back up and running on it. However I seem to be missing some of my iTunes music purchases. Any ideas on how to get them back? They show up on my ipad but not my actual itunes account.

    Hello there, Capricious13.
    There are great pointers in the following Knowledge Base article. Depending on where you see the content and where you want to get it to, this should guide you to putting it in the right place:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Hello there! i am using Adobe acrobat pro DC and using windows 8.1. Recently I was trying to convert a web page (includes greek letters) into pdf. I noticed that the conversion is not accurate, some words are missing, some are misplaced. Especially greek

    hello there! i am using Adobe acrobat pro DC and using windows 8.1. Recently I was trying to convert a web page (includes Greek letters) into PDF. I noticed that the conversion is not accurate, some words are missing, some are misplaced. Especially Greek words are not accurately converted or even not converted. Please give me some suggestions to improve this issue. Regards

    Hey quantum info,
    Thank you for posting at Adobe forums. We would love to help you out.
    Could you please let me know if you have tried converting other web pages to PDF and checked if the same issue persists.
    How have you been trying to convert the web page to PDF?
    Are you trying to convert to PDF directly via browsers or using "File > Create > PDF from Web Page"  option in Acrobat.
    Let me know more so that I can analyze where actually the issue persists.
    Hope to hear from you.
    Regards,
    Anubha

  • My iPad air is missing some apps from my phone. It keeps saying, " there is not enough storage available to download..."

    My iPad air is missing some apps from my phone. It keeps saying, " there is not enough storage available to download...." I purchased additional storage twice, my device now shows 18GB free of a total 25GB, and still I cannot download apps I've had for yrs

    iCloud space is for backup only.
    You need more local storage; free up space on iPad:
    Settings>General>Usage>Storage>Delete what is not needed to free up space on iPad.

  • "Premiere Pro CS3" is missing some codecs!

    Hi!
    First of all, thanks for stoping by and read my post.
    It's me first time ever using Premiere Pro CS3. I tried to some basic video editing on it, but I cannot hear any sound coming out of my laptop speakers; when i import the video clips. Even tho, I can hear them with "Windows Media Player". So, I investigated a bit and I did some of the things adviced by Adobe's knowledgebase thing.
    And, I came up with a paper saying to download "MediaInfo" and "GSpot" to find out the codecs of the "mpg" files. Here is a report i made with the information given by those programs:
    DVD "VOB" format
    Format: MPEG-PS
    MPEG-2 Program Stream << { 1 vid, 1 aud }
    Sys Bitrate: 10080 kb/s VBR
    Bit rate mode                    : Variable
    bit rate                 : 5 899 Kbps or 5 324 Kbps
    Nominal bit rate                 : 9 100 Kbps
    Width                            : 720 pixels
    Height                           : 480 pixels
    Display aspect ratio             : 16/9
    Frame rate                       : 29.970 fps
    Standard                         : NTSC
    Colorimetry                      : 4:2:0
    Scan type                        : Interlaced
    Scan order                       : Top Field First
    Codec(s) are Installed
    Audio
    ID                               : 128 (0x80)
    Format                           : AC-3
    Format/Info                      : Audio Coding 3 (AC3)
    Bit rate mode                    : Constant
    Bit rate                         : 256 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : L R
    Sampling rate                    : 48.0 KHz
    Resumen:
    0xbd[0x80]:48000Hz  256 kb/s tot , stereo (2/0)
    Codec(s) Installed
    Missing:
    DSH FmtTag: 0x00ff    "MainConcept (Adobe2) AAC Decoder" {214CD0D1-FC06-41B1-8BB8-84DA4CFB17D9} 0x00600000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2daac.ax"
    DSH Video "MainConcept (Adobe2) H.264/AVC Decoder" {FF890B41-A4C5-4B19-87CF-65D86EC12F1C} 0x00600000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2dsh264.ax"
    DSH MPEG1Packet "MainConcept (Adobe2) MPEG Audio Decoder" {25AD5730-4DE0-4CF8-952A-2AEF53AC4321} 0x005fffff ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2mcdsmpeg.ax"
    DSH MPEG1Packet "MainConcept (Adobe2) MPEG Video Decoder" {25AD5740-4DE0-4CF8-952A-2AEF53AC4321} 0x005fffff ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2mcdsmpeg.ax"
    DSH MPEG1System "MainConcept (Adobe2) MPEG Splitter" {25AD5720-4DE0-4CF8-952A-2AEF53AC4321} 0x005fffff ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2mcspmpeg.ax"
    DSH Video "MainConcept (Adobe2) MPEG Encoder" {25AD5750-4DE0-4CF8-952A-2AEF53AC4321} 0x00200000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2mcesmpeg.ax"
    DSH YV12 "MainConcept (Adobe2) H.264 Encoder" {FF890B51-A4C5-4B19-87CF-65D86EC12F1C} 0x00200000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2esh264.ax"
    DSH RGB24 "MainConcept (Adobe2) MPEG Video Encoder" {25AD5760-4DE0-4CF8-952A-2AEF53AC4321} 0x00200000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2mcevmpeg.ax"
    DSH PCM "MainConcept (Adobe2) MPEG Audio Encoder" {25AD5770-4DE0-4CF8-952A-2AEF53AC4321} 0x00200000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2mceampeg.ax"
    DSH MPEG1Video "MainConcept (Adobe2) MPEG Multiplexer" {25AD5780-4DE0-4CF8-952A-2AEF53AC4321} 0x00200000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2mcmuxmpeg.ax"
    DSH RGB24 "MainConcept (Adobe2) H.264/AVC Video Encoder" {FF890B61-A4C5-4B19-87CF-65D86EC12F1C} 0x00200000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2evh264.ax"
    DSH PCM "MainConcept (Adobe2) AAC Encoder" {866DFE40-5582-4FA6-B4BC-665781A007E6} 0x00100000 ** File Missing: "C:\Program Files\Adobe\Adobe Premiere Pro CS3\ad2eaac.a
    As you can see "Premiere Pro CS3" is missing some codecs, so my question is where can I download those?
    I forgot to tell you, that I use a HP laptop Dual core Intel processor with Win Vista Home 2 GB of RAM and 160 GB of HD
    Thanks in advance
    P.S. I am attaching the Diagdx.txt, even tho I don't think has to necesary
    P.S. 2. I just saw another post similar to this one, but it doesn't tell you how to make "Premiere Pro" get the audio to work in my clips and finished project

    Most good file converters can handle Video and Audio. If you are having issues with the Audio, both Audition and SoundBooth can convert to almost anything and any sample rate and bit depth.
    Here's a LINK to the PrPro Wiki. There are links to various aspects of conversion there.
    Now, remember that when working FROM MPEG-2 and also AC3, the files are compressed to begin with. Quality will suffer, and there is only one way around that - go back to the original source files. If not possible, then you have to determine if the quality has suffered too much.
    Good luck,
    Hunt

  • HP Stream 7 The boot configuration data file is missing some required information

    I have an HP Stream 7 tablet.  When I open it up it shows a blue screen with the error "The boot configuration data file is missing some required information."  Can anyone help as I can't get into the tablet to solve the error!

    Hey @PaD2 ,
    Welcome to the HP forums.
    I understand you're unable to boot up your Stream 7 tablet.
    Try accessing the recovery partition by holding the volume down button and power button at the same time. Please excuse my ignorance, as exact information on accessing the recovery manager appears to be unavailable for this exact model. If the down button doesn't work, up should get you in.
    Once in the recovery manager you should be able to select Troubleshoot > Startup repair. 
    If the startup repair does not fix the issue I would suggest trying the full system recovery option, which you should find under Troubleshoot > Advanced.
    Thanks.
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

  • File: \BCD file is missing some required information

    When trying to boot my HP Split x2 laptop I'm getting a BLUE SCREEN error "Recovery  Your PC needs to be repaired. The Boot Configuration Data file is missing some required information.  File: \BCD  Error Code: 0xc0000034.  I've tried everything that I can think of, but I can't get by this screen.  I have no CD/DVD drive in this model so I can't run any diagnostic tools, even if I had a tools CD/DVD. I'm stuck!  Please help!

    Went into a command prompt and ran a few bootrec commands:
    Bootrec /fixMBR
    bootrec /fixBoot
    bootrec /rebuildBCD
    This resolved things for me

  • PDF missing some text from FM 9 using Acrobat 9.2

    When I generate a PDF frome FM 9, it's missing some of the text (non-bold)
    and one of the chapters is missing the chapter number in the TOC.
    It worked fine with Acrobat 6.0, but now I'm using Acrobat 9.2 and some
    text is missing. Any suggestions?  Thanks!

    You do not mention your OS, but there is a hot fix for some problems with postscript drivers that cause missing data in pdfs.
    http://support.microsoft.com/?id=952909

  • Has anyone encountered problem with VIRSA_CC_ACTUSAGE missing some data?

    Has anyone encountered a problem where the VIRSA_CC_ACTUSAGE table is missing some transaction activity?
    We have a situation where the monthly ST03 file shows that a user executed the MI31 transaction some time back in August.  However our ACTUSAGE table does not show this user performing MI31 for any day in August. 
    It does have records of other people using MI31 in August.  It also has records of this same user performing other transactions in August.  It even has records showing other transactions this same user performed in August.
    This is now an issue with our external Auditors.
    We are on GRC 5.3 SP 13.
    Thanks.

    Hi Bob,
    VIRSA_CC_ACTUSAGE holds information on the transactions executed by users and it gets the data from STAD. Did you notice the time user has spent in the MI31 transaction code (I know even if the user hasn't spent more time, it should be recorded), but this another step to isolate the issue.Also, check SM21 logs on that specific day, and see if there are any events registered during that time related to STAD. I think it was not able to collect the data.
    Also, check VIRSA_CC_ALTCDLOG. This is the Alter log table that stores information of ACTUSAGE. The purge utility will only delete the data from the ACTUSAGE, but it remains in the ALTCDLOG.
    Refer to SAP Note 1512020 for additional details on the Alert files.
    Hope this helps!!
    BR,
    Raghu

Maybe you are looking for

  • How to embed and open PDF files within excel

    I constantly need to embed PDF files onto Excel documents as well as extract/open/view PDF files from Excel documents. I am unable to do so with a macbook, i know that there is a workaround but it's such a tedious process. Is there a software i can b

  • Create a New Contact in the same window

    Hi Folks, I want to create a New Contact from the Quick Create Link and want it function in the same way that the "New" / "Copy" Button functions Currently: Quick Create Link opens a Contact in a New Window. Requirement: Contact should open in the sa

  • Optical inputs on Audigy 2 ZS Platinum

    I'm considering purchasing the Audigy 2 ZS Platinum Pro and I have a question about the optical input functions on the external control box. I read that it can be used to capture music(i.e. from a guitar, etc) however I would be interested in using t

  • Grouping of bins withing one storage section per Material Number

    HI, We have requirement of placing materials into fix group of bins. e.g One material in 4 bins, second material in 8 bins, third Material in 10 bins, Fourth Material in 2 bins and so on. We have approximately 8500 numbers of different material in st

  • BW system not listed in user mapping list

    Hi I'm trying to map my portal user/group with BW user in User Mapping tab of user administrator of portal.  My destination BW system is not getting listed in system list. Do u know what could be the issue there? Thanks and regards Pranav