Detecting multiple NIC's

Hi,
On Windows, a call to gethostname(), followed by
the call to gethostbyname(), will return the hostent
structure where the
h_addr_list[0] .... [1] .. etc, will list all the NICS that
were detected on the host system.
I tried running the same program on Solaris 2.6 which has multiple NICS and the call returned with only a listing for h_addr_list[0] ... and nothing else.
What might be the equivalent call that might do the same work on Solaris .... ?
thanks,
ritesh

Hi Sir,
Sorry for the dealy .
Please run the following command to check what physical NIC was bound to external virtual switch:
PS C:\Users\administrator.SERVERLAB> get-vmswitch
Name SwitchType NetAdapterInterfaceDescription
Internal Internal
New Virtual Switch for andy Internal
qostest Internal
team2 Internal
External External Intel(R) 82579LM Gigabit Network Connection
Best Regards,
Elton Ji
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

Similar Messages

  • Detecting multiple occurences of a value in data? (conundrum)

    Ok, if there are any good java utilities to help, this is where I'm going to find them...
    I'm trying to detect multiple occurences in a data set. Piling them into an array and using Array.sort() was a good start - I'm trying to find the max and min value of data that occurs more than once in the set.
    However, when the data set becomes much larger, I can't hold the set in memory. Is there an elegant solution to this? I'm at a loss to find a nice way of doing it. Its an interesting problem...
    Thanks,
    Steve

    Hi Steve!
    You can do this with a bit of programming yourself :-) If all values don't fit into your memory, just split them into smaller pieces. Do you need to sort out all duplicates or do you need to detect them only?
    The idea:
    Create a new ArrayList oder a Set of your choice and put some elements in it (a fixed number or just wait for an OutOfMemoryException to be thrown and catch this). Then sort the ArrayList and write it to a temporary file, store the file handle or name in a seperate list. Go on like this until all your data is sorted.
    After that, build one loop fetching just one value from each file and compare them - mainly this is mergesort. If duplicate values occur then, well, you have dupes :-)
    If needed I could look for the source...
    Cheers,
    Jan

  • ISE 1.2 - Multiple NICs/Load Balancing for DHCP Probe

    Hello guys
    Just prepping an ISE 1.2 patch 8 setup in our organization. I am going for the virtual appliances with multiple NICs. It will be a distributed deployment with 4 x PSNs behind a load balancer and there is no requirement for wireless or guest user at the moment. I've got 2 points I will like to get some guidance on:
    Our DC has a dedicated mgmt network and I plan to IP the gig0 interface of the PANs, MNTs and PSNs from this subnet. All device admin, clustering, config replication, etc will be over this interface. However, RADIUS/probe/other user traffic to the ISE PSNs will be over the gig1 interface which will be addressed from another L3 network. Is this a supported configuration in ISE?
    I intend to use the DHCP probe as part of device profiling and will ideally like to have just an additional ip helper to add to our switch SVI config. Also, it will appear that WLCs can only be configured for 2 DHCP servers for a given network so another consideration for when we bringing our WLAN in scope. We however use ACE load balancers within our DC and from what I have read, they do not support DHCP load balancing. Are there any workarounds to using the DHCP probe with multiple PSNs without having to add each node as an ip helper/DHCP server on the NADs?
    Thanks in advance
    Sayre

    Hello Sayre-
    For Question #1:
    Management is restricted to GigabitEthernet 0 and that cannot be changed so you should be good there
    You can configure Radius and Profiling to be enabled on other interfaces
    Even though you are not using guest services yet, you can dedicate an interface just for that. As a result, you can separate guest traffic completely from your production network
    Take a look at this link for more info:
    http://www.cisco.com/c/en/us/td/docs/security/ise/1-2/installation_guide/ise_ig/ise_app_c-ports.html
    For Question #2
    If you are using a Cisco WLC and running code 7.4 and newer you don't need to mess with the IP helper configurations. 
    The controller can be configured to act as a collector for client profiling and interact with the DHCP thread along with the RADIUS accounting task that is running on the controller. The controller receives a copy of the DHCP request packet sent from the DHCP thread and parses the DHCP packet for two options:
    –Option 12—HostName of the client
    –Option 60—The Vendor Class Identifier
    After this information is gathered from the DHCP_REQUEST packet, a message is formed by the controller with these option fields and is sent to the RADIUS accounting thread, which is in turn transmitted to the ISE in the form of an interim accounting message.
    Both DHCP and HTTP profiling settings are located under the "Advanced" configuration tab in the WLC
    On the other hand, you can also use Anycast for profiling. You can check out some of Cisco Live's sessions for more info on that. Here is one that is from a couple of years (There are more recent ones that are available as well):
    http://www.alcatron.net/Cisco%20Live%202013%20Melbourne/Cisco%20Live%20Content/Security/BRKSEC-3040%20%20Advanced%20ISE%20and%20Secure%20Access%20Deployment.pdf
    I hope this helps!
    Thank you for rating helpful posts!

  • Multiple nics on server

    Remote control will not work on server with multiple nics. Currently
    running Neware 5.1 with Zen 3.2. Zen 3.2 sp2 mentions this problem
    but I
    would rather not install sp2 if there is an easy fix. Any ideas?

    Mike,
    It appears that in the past few days you have not received a response
    to your posting. That concerns us, and has triggered this automated
    reply.
    Has your problem been resolved? If not, you might try one of the
    following options:
    - Do a search of our knowledgebase at
    http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com in both the "free product support" and "paid
    product support" drop down boxes.
    - You could also try posting your message again. Make sure it is
    posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept
    our apologies and rest assured we will issue a stern reprimand to our
    posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Detecting multiple key presses

    Using the code below I am trying to detect keypresses for a java applet which involves holding down of several keys at once. I have 2 problems, probably related. Firstly I can only detect 3-4 simultaneous keys being held down and secondly the keyPressed and released! events are continually fired while a key is held down not just when it was first pressed as you would think. I would like to be able to detect up to a maximum of 16 keys being held down at once, is this possible? I am working on a unix system in x-windows which I think accounts for the auto-repeat problem, but why am I having trouble detecting multiple simultaneous keys being held down?
    It there a boolean function I can call to check the state of given keys at a given time, that would be very useful?
    Any help is appreciated.
    Ian
    public void keyPressed(KeyEvent e) {
    int keyCode = e.getKeyCode();
    switch(keyCode){
    case java.awt.event.KeyEvent.VK_O: //o
         odown=true;
    break;
    case java.awt.event.KeyEvent.VK_P: //p
         pdown=true;
    break;
    case java.awt.event.KeyEvent.VK_Q: //q
         qdown=true;
    break;
    case java.awt.event.KeyEvent.VK_W: //w
         up=true;
    break;
    case java.awt.event.KeyEvent.VK_A: //a
         left=true;
    break;
    case java.awt.event.KeyEvent.VK_S: //s
         down=true;
    break;
    case java.awt.event.KeyEvent.VK_D: //d
         right=true;
    break;
    }//method keypressed
    public void keyTyped(KeyEvent e) {
    }//method keytyped
    public void keyReleased(KeyEvent e) {
    int keyCode = e.getKeyCode();
    switch(keyCode){
    case java.awt.event.KeyEvent.VK_O: //o
         odown=false;
    break;
    case java.awt.event.KeyEvent.VK_P: //p
         pdown=false;
    break;
    case java.awt.event.KeyEvent.VK_Q: //q
    qdown=false;
    break;
    case java.awt.event.KeyEvent.VK_W: //w
         up=false;
    break;
    case java.awt.event.KeyEvent.VK_A: //a
         left=false;
    break;
    case java.awt.event.KeyEvent.VK_S: //s
         down=false;
    break;
    case java.awt.event.KeyEvent.VK_D: //d
         right=false;
    break;
    }//method keyReleased

    Did you ever find a solution to this problem. I am experiencing a similar problem. I want to be able to disable the auto-repeat function of the keyboard, so that I can tell if the user is holding down the key, or pressing it several times.
    If you have found a solution please let me know at [email protected]
    Thanks,
    Ben Newton

  • Weblogic Cluster on a machine with multiple NIC

    Out Setup
              One Quad Machine
              2 NIC - one ip address on each
              Two weblogic installations
              Each Instance is listening on one address and port 7001.(managed servers)
              Admin Server on one of the ip and port 8001
              Both managed servers part of a cluster.
              While i check weblogic console i see both the managed server
              having almost same number of frames incoming and outgoing.
              If i check 4 processers all 4 of them working eqaully same
              during out load test..(almost 85%)
              But i check NICs only one of them seems to be working really hard..
              and another one so..so.. what could be the problem??
              

              Weblogic 7 has a new concept called network channel, where there is a section talking
              about clustering over multiple NIC cards. I was confused by the cluster address in
              customized network channel (no example there). I tried to use multiple NIC cards
              for the purpose of network failover, but failed in clustering environment, although
              I succeed in single server environment.
              Kumar Allamraju <[email protected]> wrote:
              >You can set Interface address via admin console's
              >Cluster >> {Cluster Name }
              >
              >on the right hand side you will find InterfaceAddress box.
              >
              >--
              >Kumar
              >
              >zevit wrote:
              >
              >>>It's the JVM & OS who will take adv. of multiple NIC's. We don't have
              >>>anything in WLS that does this thing.
              >>>
              >>>Alternatively you can bind each WLS instance to a specific NIC card
              >>>to effeciently utilize each NIC card.
              >>>
              >>
              >> thank u kumar.. Could u please tell me how do i bind each WSL instance
              >> to a specific NIC ?
              >>
              >
              

  • Exchange Query - regarding to Multiple NIC

    Dear All ,,  I hope you are well , my query ,,, we have in my environment exchange server , 3- Exchange , two in the same site and another in the other site , we have DAG involved all Previous server , we add new NIC to a single server with a different
    subnet mask ,,, but this NIC can be reachable from other server ,,, i tested through ping,,, Tracer route ,,, ran failover cluster and everything goes well but when i see Status network card i saw just Sent Packet , Receive Dropped 0 ,,,,,
    and when i go to event viewer i see error in Eventid 2604..2501..2601 ,So i need someone explain to me what is mean sent packet and no receive packet ,,,, i need help 

    Hi,
    As far as I know, the event error is mostly likely caused by the network issue:
    http://support.microsoft.com/kb/2025528
    To find the root cause of no receive package, we can use Network Monitor to detect the NIC.
    And here is a reference about more troubleshooting of NIC:
    http://support.microsoft.com/kb/325487
    Additionally, you’re welcomed to confirm the network issue on our following forum:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?category=windowsserver
    Thanks,
    Angela Shi
    TechNet Community Support

  • ACS 5.4 Multiple NIC Questions

    I've read that 5.4 includes support for multiple NICs (appliance and VM).  My question is what can these NICs be used for?  I know one must be a dedicated management link, and the other three support TACACS/RADIUS.  Does this mean that each NIC can have a separate IP address and thus act as a separate AAA target or are the links just used for aggregation?  
    If this posts answers your question or is helpful, please consider rating it and/or marking as answered.       

    Hi Chris,
    If you're running 1121 with ACS 5.4 and looking at Table 4-4     ACS 5.4 Functional Interface Distribution Among Network Interfaces. then the answer is that you may set up any interface for tacacs/radius authentication. However, management interface should be setup for gig0 only. Currently, it doesn't support NIC teaming/bonding. However, it sometimes create issues with replication.
    http://www.cisco.com/en/US/partner/docs/net_mgmt/cisco_secure_access_control_system/5.4/installation/guide/csacs_hw_ins.html#wp1179311
    In case you are running 3415 appliance, the only difference is that it supports reduduncy but that only applies for Cisco Integrated Management Interface (CIMC)
    step 4. Set the NIC mode to your choice for which ports to use to access the CIMC for server management
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_system/5.4/installation/guide/csacs_hw_ins_ucs.html#wp1188250
    Hope this helps.
    ~BR
    Jatin Katyal
    **Do rate helpful posts**

  • Bonjour not finding anything from PC with Multiple NICs

    We have two Network Interface Cards in each workstation at work to access two separate Physical Networks. Both networks provide access to ZeroConf (Bonjour) IP Printers.
    Bonjour discovery fails intermittently on the two different networks. Occasionally Printers on one network, the other network, both or neither are visible from various workstations.
    Is mDNSResponder aware of multiple NICs? Is there a way to force mDNSResponder to only search for printers on a particular subnet?

    The second  network adapter was installed after the VPC, indeed.
    In the dropdown menu in the VPC networking settings there was only one network adapter to chose because the description for both physical network cards were the same. Therefore I cannot assign for virtual NICs different physical network adapters.
    Finally I coped with the problem:
    - I uninstalled one of the adapters (removing the drivers, too),
    - edited the INF file in the adapter drivers and changed the description of the adapter
    - I reinstalled the adapter with the altered driver (with the INF file changed).
    Then, in the VPC networking settings both physical adapters appeared (one with the altered description).
    I Wonder if that will cause any problems later ;)
    Thanks for your replies :)

  • WOL question. SCCM server with multiple nics.

    Hi,
    I have a sccm server with multiple nics, I can wake up any machine using a 3ed party magic packet utility, if I set a schedule and use sccm wol functionally the machine never wakes up. As I pointed out my server has multiple nics, does anyone have a sccm
    server with multiple nics with sccm built in wol functionally working?. I am curious on how you achieved this.

    Hey Garth,
    Yes the problem is solved but we had to buy a 3rd party power management utility to accomplish WOL. Because we have many different subnets in our environment we found that this was the fastest way to get WOL working,
    So out of the box SCCM would not work for us, with a 3rd party utility that had an SCCM plugin WOL now works flawlessly.

  • Multiple NICs?

    Hey; can miggui handle source and target servers with multiple NICs/IP addresses? I have a DNS/DHCP server to migrate that services two separate VLANs, and I want to make sure I'm not going to blow the whole thing sky-high.
    Thanks.

    The Migration DHCP leases file issue has been fixed in the jumbo patch that just went into the oes2sp1 and sp2 updated channels a couple days ago. (bug 561928 - issue below).
    Steps to Reproduce:
    1. Setup NW server (6.5 SP 7 in this case)
    2. Setup OES server in the same tree. Remove edir replicas.
    3. Setup DHCP on both servers. NW should be configured with a range of 2
    address. OES should have the dhcp server setup.
    4. Run a windows client with one nic. Get a DHCP address and note the ip
    address given.
    5. Run the Novell Migration for DHCP (transfer ID option). Choose the
    server-level migration.
    6. Run the migration, and then run the post migration step per the
    documentation.
    7. Start DHCP on the OES box and watch the /var/log/messages. Restart or
    /release /renew the address from the client. It will not get the same address
    as before, but the second address in the pool. Drop the client and add a v-nic
    (if vmware), or have another client try and grab an address. The DHCP server
    will say it is out of leases, when in reality the first lease is not being
    honored.
    Actual Results:
    See above
    Expected Results:
    Expected the first client to get its original DHCP assigned address back,
    therefore leaving the remaining addresses in the pool open to new clients.

  • Set DNS to automatic across multiple NIC's

    I have a client with 100(ish) computers. Whoever their IT firm was before us has manually set DNS on most of these computers. I would like to set all NICs on all computers to dynamic, and pull the DNS server address from DHCP server. The problem is I can't
    use netsh because it would require the network adapter name. There are multiple NICs on the computers, some are named Ethernet, some are named Local Area Connection, ect. 
    Is there a way to script this with powershell? I know I can use
    Set-DnsClientServerAddress –InterfaceIndex ? -ResetServerAddressesbut I need the interface index, which will be different across various computers. Can I pipe the output of get-netadapter (which shows if index) and input all of them?Any help is appreciated. Thank you!

    If you define the DNS servers in DHCP the clients will use it.
    With PowerShell you can set the client to use DHCP.  look in Gallery for numerous scripts that will do this.
    ¯\_(ツ)_/¯
    Thank you JRV for the prompt response! I have a script that forces all adapters to use DHCP, which does change them from static to DHCP, but this does not change the DNS servers. I was able to get the DNS servers reset to automatic by using 
    Get-NetAdapter | Set-DnsClientServerAddress -ResetServerAddresses
    thanks to Jordan Mills in the Powershell forum. Also, thank you for the script, but most clients here are Windows 7, but I did not specify. Thanks again for the help! 

  • Detecting multiple webcams

    There's a lot of old posts about this, but no solutions. Does anyone know a way to detect multiple webcams? It appears that JMF can't do this, but maybe someone has come up with another way? I'm trying to switch between 2 usb webcams.
    Thanks!

    What type of scanner do you have? Did it come with software or are you just using Image Capture? I've a Canon printer/scanner and use the supplied software to preview and select the item that I want to scan at any given time. Never used Image Capture before...
    Clinton

  • Detecting multiple people using Kinect audio source

    Hello,
    I'm working with the Kinect for windows v2 and I want to detect multiple people using the Kinect audio frame source.
    I mean that if multiple people are talking simultaneously while the Kinect is working, then I want the Kinect to be able to distinguish between the people according to their voices and to save each voice to a separate audio file. What do I need to do to
    the Kinect audio frame source to achieve that?
    thanks,
    Dror.

    The AudioBeamSubFrame will provide you access to the AudioBodyCorrelation object. You can review the AudioBasics sample to see how to get access to the AudioBeamSubFrame list.
    The API returns a collection of audio body correlations, in relation to the beam itself. You can use this to identify which enrolled tracked body is likely speaking. If Kinect is not tracking any bodies, this list will be empty. If one or more bodies is
    being tracked, this will return an ordered list containing body tracking IDs. The list is ordered based on the horizontal angle of the body relative to the current audio beam angle. The first body in the list is the one closest to the audio beam and the last
    is the furthest away from the audio beam.
    You will use the data against a list of tracked bodies you currently have. Refer to the body basics on how to get the tracking id's..
    Carmine Sirignano - MSFT

  • Detecting multiple touches in beta 5

    I was using the example found in coding how tos for how to detect multiple touches which went something like this:
    - (void)touchesChangedWithEvent:(UIEvent*)event
    NSSet *touches = [event allTouches];
    if (touches.count > 1)
    // have multiple touches
    So now they removed this method so i switched my touch detection to use:
    - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
    I was expecting touches.count to show me how many touches there are but this always seems to equal 1. Am I missing something or is it a simulator bug, or sdk bug?

    Well now I just feel dumb. Thanks for the quick response.

Maybe you are looking for

  • Why we create Logical filename what is the significance.

    Hi Friends,        What is the use of Logical file name. Where we use it. Thanks&Regards, Naren.

  • System Throws short dump while executing data source 2LIS_11_VASCL in RSA3.

    Hello Experts, I got short dump while executing data source 2LIS_11_VASCL in RSA3. The details are as follow. When importing object "MC11VA0SCL_TAB", the structure did not match the structure of the target object. The error occurred in component no.

  • Apple TV 2 & LaCie Network2NAS device

    Apologies - I am sure this has been done to death elsewhere, but I cannot find any posts on the subject. I have a LaCie NAS on my network, with iTunes sharing. It happily appears on iTunes, running on my MacBook & iMac, as a 'shared device', and I ca

  • Large monitor screen recording area

    Captivate v5.5 Up to now I have been working on a 17" monitor and for my full screen captures I have been using a recording area of 1260x883. I am soon to get a new 24" monitor and wonder if there are any known problems or things I need to be aware o

  • DeployJava.isPlugin2() does not work on a Mac

    I am using an applet (I didn't write it - it's a commercial product) that is incompatible with the "Next-gen" plugin. I've been using deployJava.isPlugin2() to detect this on Windows, and prompt the user to uncheck the next-gen option in their Java c