JMX Problem - Retriving Physical Address (MAC)

Hello Everybody,
I am working in a class that has to poll information from a router using SNMP protocol and I am using JMX's API
specification, for all the scalars and values that have a string representation works well, but when I am polling
the information from the MAC address - which is represented in Hexadecimal format I retrieve a Variable Binding
with IOD and Value, where the value is complete wired, I do not know why I can not represent the value since the
method I am trying to use cast it to String, I really tried different appoaches and also other clases like Vector
or List for solve the problem but seems that the value has not been interpreted in the correct way, and that's why
I would like to hear if someboday has been experienced the same situation and what suggestions you can offer to me
for solve the problem.
Thanks,
Al
//Code definitions for variables and declarations
final SnmpVarBindList Iteratorlist = new SnmpVarBindList("SyncManager varbind list");
for (int j=1; j<=i; j++)
Iteratorlist.addVarBind("1.3.6.1.2.1.2.2.1.6." + j);
SnmpRequest requestIterator = session1.snmpGetRequest(null, Iteratorlist);
//... Code for validate complete request and errors, etc.
final SnmpVarBindList resultIterator = requestIterator.getResponseVarBindList();
for (int j=0; j<resultIterator.getVarBindCount(); j++)
SnmpVarBind bind2 = resultIterator.getVarBindAt(j);
println(">>Val " + bind2.getStringValue());
println(">>ValStr " + bind2.getStringValue().toString());
println(">>Length " + bind2.getStringValue().length());
// ... code for other manipulations

Just to be sure ....you know bytes are NOT characters in java?
From your posting it is not clear if you are having a problem converting a binary value to a string value, or if you are having trouble getting to the value at all.
Keep in mind that the "SNMP protocol" in of itself is almost worthless in describing the format of the data that you will get back. A MIB of course is much more useful.
Normally I would expect an octet string for a MAC address.

Similar Messages

  • Can sites know about my computers physical address or mac address when I use firefox 4

    I want to know that does firefox expose my computers mac address or physical address to any site if that tries??

    You have quite a few outdated plugins installed which potentially exposes your system to exploits.
    So the first thing to do is to visit the [http://www.mozilla.com/en-US/plugincheck/ Plugins Check] page and update where necessary.
    That IP address belongs to Comcast. Does that ring any bells?

  • How to find system MAC id  or physical address

    hi,
    anybody know
    How to find system MAC id  or physical address in flash?
    Thanks in advance
    ayathas

    no way to ffind this
    Have you tried with  AUT10  ??
    thanks
    G. Lakshmipathi

  • Hyper-V cluster validation report "Found duplicate physical address" on nic team interfaces.

    I recently built a Windows 2012 Hyper-V cluster with 5 nodes. The validation report shows “duplicate physical address” error (error text pasted below).
    The hardware: HP BladeSystem – servers are BL460c blades, in a c7000 enclosure, connected to HP Virtual Connect switches.
    Each server has 2 physcal nics, teamed in Windows. In the NIC Teaming console, I created the following Team Interfaces and assigned each a VLAN ID:
    “Team1” (the default team)
    “Team1 - VLAN 204 – Management”
    “Team1 - VLAN 212 - 2012HB”
    “Team1 - VLAN 211 -Exchange DAG Replication”
    I also created 2 HV Virtual Switches. Neither one allows management interface to share. They are assigned to “Team1” and “Team1 - VLAN 211 -Exchange DAG Replication” respectively.
    Therefore, in Network Connection, I see the 2 physical Ethernet nics, and 4 “virtual” nics. Only 2 of them have IP addresses assigned: Management and HB. These are the two that the validation wizard complains
    about.
    The MAC address is not configurable in the NIC Teaming console, so I don’t see a way to resolve this error, except to use separate physical nics. I don’t want to do that because a) I would lose the benefits of
    the bandwidth aggregation that Virtual Connect provides, and b) When creating an Interface on a Team in Windows, it looks like it ALWAYS gives it the same MAC address, so that should be a supported configuration.
    Everything works just fine, and there are no other errors or IP conflicts or anything else. But I really want to fix it because I don’t know what unknown problems this may be causing.
    From the Cluster Validation report:
    Found duplicate physical address 10-60-4B-A9-4A-30 on node Cluster201.OurDomain.local adapter
    Team1 - VLAN 212 - 2012HB and node Cluster201.OurDomain.local adapter
    Team1 - VLAN 204 - Management.
    Found duplicate physical address F0-92-1C-13-3C-2C on node Cluster202.OurDomain.local adapter
    Team1 - VLAN 212 - 2012HB and node Cluster202.OurDomain.local adapter
    Team1 - VLAN 204 - Management.
    Found duplicate physical address 68-B5-99-C1-7E-9C on node Cluster210.OurDomain.local adapter
    Team1 - VLAN 212 - 2012HB and node Cluster210.OurDomain.local adapter
    Team1 - VLAN 204 - Management.
    Found duplicate physical address 3C-4A-92-DE-1E-74 on node Cluster211.OurDomain.local adapter VC-Team - VLAN 212 - 2012HB and node Cluster211.OurDomain.local adapter
    VC-Team - VLAN 204 - Management.
    Found duplicate physical address 68-B5-99-C0-3D-50 on node Cluster212.OurDomain.local adapter
    Team1 - VLAN 212 - 2012HB and node Cluster212.OurDomain.local adapter
    Team1 - VLAN 204 - Management.
    Thanks!
    Dan

    Hi Dan,
    "It turns out that both hosts had the same default MAC address ranges for their virtual switches. Since the host vNICs were attached to the virtual switch on each host they received the first couple of MAC addresses from the switches.
    For details please refer to following link:
    http://www.jefflafr.com/blog/4/19/2013/conflicting-mac-addresses-when-building-a-hyper-v-cluster-with-converged-networking
    Hope this helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I have problems with office for mac  screen resolution, specially with excel

    I have problems with office for mac  screen resolution, specially with excel ?

    For starters, make sure to Check for Updates on any of the Help menus, and make sure the product has all the latest patches. MS did come out with a patch addressing the display issues on Retina Macs. Latest patchlevel is 14.3.2.
    We are talking about Office:Mac 2011, right?

  • Strange Problem with Mail & Address Book

    Hi,
    I'm having a strange problem with Mail & Address Book.
    When I go to compose a new message from Mail and hit the Address button (to show my email addresses), it won't launch the contacts window!
    I get this log from console;
    2007-10-15 22:55:59.079 Mail[410] * -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
    If I try to launch the Address Book from my Applications folder, it won't open, and it gives me this log from console;
    2007-10-15 22:57:57.348 Address Book[417] * -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
    Oct 15 22:57:57 PB-G4 /Applications/Address Book.app/Contents/MacOS/Address Book: CGImageSourceCreateWithData data parameter is nil\n
    2007-10-15 22:57:57.350 Address Book[417] Don't know about packed image EditLeftCapStd
    2007-10-15 22:57:57.350 Address Book[417] Exception raised during posting of notification. Ignored. exception: * -[NSCFArray addObject:]: attempt to insert nil
    If I quit Address Book, i'll get this from console;
    2007-10-15 22:58:37.892 Address Book[417] -[ABAddressBook setDefaultCountryCode:] called with a unknown country code 'us'
    I tried deleting the preferences, re-installing Address Book, also tried creating a new user, again no luck!
    Can somebody help!!!
    Please?!

    Hi dp13.
    Do you have any Address Book plug-ins or system utilities that could interfere with Address Book? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/Address Book Plug-Ins/
    ~/Library/Address Book Plug-Ins/
    To make accurately reporting this information easier, you may open /Applications/Utilities/Terminal, type the following command (you can just copy it here and paste it in Terminal), and press <Return>. You can then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/Address\ Book\ Plug-Ins ~/Library/Address\ Book\ Plug-Ins
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.
    <hr>
    Did you also reinstall the appropriate Combo Update after reinstalling Address Book?
    Quit all the applications and verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, reinstall the Combo Update for the type of computer and the version of Mac OS X you’re using, unless this is the version of Mac OS X that came with the computer:
    About the Mac OS X 10.4.10 Combo Update
    Mac OS X 10.4.10 Combo Update for PowerPC
    Mac OS X 10.4.10 Combo Update for Intel
    After installing the Combo Update, the computer may restart twice and the first restart may take several minutes. This is normal.
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk and back up before installing the update, no applications should be running while installing it, and you may experience unexpected results if you have third-party system software modifications (not normal applications) installed.

  • Unable to find appropriate driver for my mcbook air using a ricoh aficio mp36501SP network printer.  had similar problem with another ricoh copier/printer, but was able to resolve that problem entering ip address.  this one wants job code

    unable to find appropriate driver for my mcbook air using a ricoh aficio mp36501SP network printer.  had similar problem with another ricoh copier/printer, but was able to resolve that problem entering ip address.  this one wants job code.  i don't believe mac allows for input on job code or printer code for permission to print

    I'm having similar problems with an HP OfficeJet 6500. One suggestion that improved the situation, but did not totally solve the problem, was to select "OfficeJet Pro L7700" for its drivers.
    One other suggestion is to turn off the printer, then simultaneously hold down the "#" and "9" keys and turn the printer back on. This hot key seems to reset the printer to factory defaults, allowing you to set things up anew.
    Finally, kvetch to HP. Their networking software clearly has problems in its relationship to OSX, but nobody on either side seems motivated to bring in a good therapist.

  • Ethernet card physical address in LabView?

    Greetings. Couldn't find anything about this on the DevZone, or in the
    recent newsgroup posts (or, indeed, from Microsoft ), so now I'm
    posting...
    I need to get the physical address of the ethernet card in a host computer
    on which my application is running (the MAC address, not the IP address)
    under Windows NT/2000. I figure there must be a DLL call to do this, but
    I'm completely at a loss as to what it would be.
    Can anyone tell me where to find this function, and what the syntax is?
    Furthermore, is it safe to use this function in my application, or is
    Microsoft going to go behind my back and revise the function every service
    pack and not tell me about it?
    Thanks a ton, in advance.
    Best regards,
    Justin Goeres
    jgoeres@ind
    iosystems.com
    Indio Systems, Inc.
    Pleasanton, CA

    In Win2000 this command works (and probably others do as well):
    ipconfig /all | more
    So you'd need the System Exec VI, and might need to preface the string
    with command.com:
    command.com ipconfig /all | more
    Mark

  • How to change the hardware address (MAC) of my printer to match my mac

    how to change the hardware address (MAC) of my printer to match my mac

    Hello @giomarcondes ,
    Welcome to the HP Support Forums!
    I understand that you wish to alter the MAC address on your HP Deskjet Ink Advantage 3525 e-All-in-One Printer to match the MAC address of your Mac OS X computer. Unfortunately, what you're requesting is not supported. Just to clarify, "a media access control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment". They are programmed into the device and are not designed to be changed. (Source: MAC address)
    Are you experiencing issues configuring your HP Deskjet on your wireless network to communicate with your Mac computer?
    If you do actually require support configuring the wifi connection on your printer I would be more than happy to assist you with this. I look forward to hearing from you!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • Ethernet card physical address

    Good morning guru,
    Is it posible using sql to get the information about
    the Ethernet Card Physical Address local computer (network card address) ?
    like : 00-0E-A6-37-BA-25
    mayble something like : select ecard from dual ?
    If no, any idea how can I got it ?
    Thank's

    Simple answer - no.
    Complex answer/response - what on earth for?
    On the server side, you have to crack open the physical network packet header to get to the MAC address of sender. And that is not a simplistic thing to do, and outside the scope of PL/SQL and even Java stored procs.
    Why? Because you need access to the physical packet - which you do not have. In PL/SQL and Java in Oracle, you're already at a fairly abstract level. With a shared server process, your code do not even deal with the network communication side with the client. That is done with by the dispatcher processes. So even if you could somehow hack the data segment of your physical Oracle process running your PL/SQL or Java code, the socket and packet data are not there to be found.
    Which begs the question why do you want to use it? It is pretty meaningless higher up is the OSI stack. And your code is running in topmost layer, layer - the application layer. Layer 6 does not show your layer, the MAC address.
    So the reasoning for wanting the MAC address need to be closely re-examined - as the "solution" for that requirement, using the MAC address, is likely a very much flawed solution.

  • Physical Address Extension (PAE), NX, and SSE2

    I want to try Windows 8 on my Lenovo x201.  I ran CoreInfo and it reported that the machine has Physical Address Extension (PAE), NX, and SSE2.  However, I cannot find it anywhere in the BIOS setup.
    I use BitLocker and it gets very upset if the BIOS settings are changed during boot so they must be turned on and not have Windows 8 turn them on during boot.
    Where can I find the settings for Physical Address Extension (PAE), NX, and SSE2?

    I got the same problem with windows 8.
    My Cpu (Intel Core i7 2670QM) supports everything needed and the DEP is also activated.
    In every forum they say that you have to enable PAE-NX in the BIOS but when i go into the Bios, therese almost NOTHING. This is the poorest Bios I've ever seen. Almost nothing to configure, enable or disable. Except boot order, Intel virtual mashine, admin password.
    For my Z570(1024) there's no new BIOS update.
    Microsoft Windows 7 Home Premium 64-bit SP1
    Intel Core i7 2670QM
        Kerne    4
        Threads    8
        Name    Intel Core i7 2670QM
        Codename    Sandy Bridge
        Sockel    Socket 988B rPGA
        Technologie    32nm
        Spezifikation    Intel Core i7-2670QM CPU @ 2.20GHz
        Familie    6
        Erweiterte Familie    6
        Model    A
        Erweitertes Model    2A
        Stepping    7
        Revision    D2
        Befehle    MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, Intel 64
        Virtualisierung    Unterstützt, Aktiviert
        Hyper-Threading    Unterstützt, Aktiviert
        Bus Takt    99.8 MHz
        Kern Frequenz    2200 MHz
        Bus Frequenz    100 MHz
    DDR3
      8192 Mbyte
      Dual
    DRAM Frequenz    665.3 MHz
    Hersteller    LENOVO
    Model    Emerald Lake (CPU)
    Version    Ideapad Z570
    Chipsatzhersteller    Intel
    Chipsatzmodel    Sandy Bridge
    Chipsatzrevision    09
    Southbridgehersteller    Intel
    Southbridgemodel    HM65
    Southbridgerevision    05
    Systemtemperatur    48 °C
        BIOS
            Marke    LENOVO
            Version    45CN38WW
            Datum    10/21/2011

  • How to pick wireless physical address of client machine

    Dear memebers,
    Using the follwoing tutorail, I have picked the network card address ( MAC Address ).
    [forms java beans|http://forms.pjc.bean.over-blog.com/article-15985856.html]
    but this code dont' display / return the MAC address of wireless network card.
    the java code is here:
    package oracle.forms.fd;
    import java.net.InetAddress;
    import java.io.InputStream;
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.text.ParseException;
    import java.util.StringTokenizer;
    import oracle.forms.ui.VBean;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
         * A Java Bean that returns Client machine info
         * code found on the java forum
         * http://forum.java.sun.com/thread.jspa?threadID=655913
         * @author Francois Degrelle (wrapper)
         * @version 1.1
    public final class ClientInfos extends VBean {
        private static final ID GETINFOS  = ID.registerProperty("GET_CLIENT_INFOS");
        private static final ID GETINFO   = ID.registerProperty("GET_CLIENT_INFO");
        private static final ID Operating = ID.registerProperty("OPERATING");
        private static final ID architecture = ID.registerProperty("ARCHITECTURE");
        private static final ID osVersion = ID.registerProperty("OSVERSION");
        private static final ID IP = ID.registerProperty("IP");
        private static final ID MAC = ID.registerProperty("MAC");
        private static final ID javaVersion = ID.registerProperty("JAVAVERSION");
        private static final ID javaVendor = ID.registerProperty("JAVAVENDOR");
        private static final ID javaVendorUrl = ID.registerProperty("JAVAVENDORURL");
        private static final ID javaHome = ID.registerProperty("JAVAHOME");
        private static final ID javaVmSpecificationVersion = ID.registerProperty("JAVAVMSPECIFICATIONVERSION");
        private static final ID javaVmSpecificationVendor = ID.registerProperty("JAVAVMSPECIFICATIONVENDOR");
        private static final ID javaVmSpecificationName = ID.registerProperty("JAVAVMSPECIFICATIONNAME");
        private static final ID userName = ID.registerProperty("USERNAME");
        private static final ID userHome = ID.registerProperty("USERHOME");
              private     String sInfos = "";
              private     String sOperating = "";
              private     String sarchitecture = "";
              private     String sosVersion = "";
              private     String sIP = "";
              private     String sMAC = "";
              private     String sjavaVersion = "";
              private     String sjavaVendor = "";
              private     String sjavaVendorUrl = "";
              private     String sjavaHome = "";
              private     String sjavaVmSpecificationVersion = "";
              private     String sjavaVmSpecificationVendor = "";
              private     String sjavaVmSpecificationName = "";
              private     String suserName = "";
              private     String suserHome = "";
        private boolean bInit = false ;
        public void init(IHandler handler)
          super.init(handler);
               try {
                  sOperating = System.getProperty("os.name");
                  sarchitecture = System.getProperty("os.arch");
                  sosVersion = System.getProperty("os.version");
                  sIP = InetAddress.getLocalHost().getHostAddress();
                  sMAC = getMacAddress();
                  sjavaVersion = System.getProperty("java.version");
                  sjavaVendor = System.getProperty("java.vendor");
                  sjavaVendorUrl = System.getProperty("java.vendor.url");
                  sjavaHome = System.getProperty("java.home");
                  sjavaVmSpecificationVersion = System.getProperty("java.vm.specification.version");
                  sjavaVmSpecificationVendor = System.getProperty("java.vm.specification.vendor");
                  sjavaVmSpecificationName = System.getProperty("java.vm.specification.name");     
                  suserName = System.getProperty("user.name");
                  suserHome = System.getProperty("user.home");          
                } catch(Throwable t) {
                  t.printStackTrace();
          public Object getProperty(ID pId)
             if(pId == GETINFOS)
                sInfos = "Operating System:" + sOperating ;
                sInfos += "\nOperating system architecture:" + sarchitecture ;
                sInfos += "\nOperating system version:" + sosVersion ;
                sInfos += "\nIP/Localhost:" + sIP ;
                sInfos += "\nMAC Address:" + sMAC ;
                sInfos += "\nJava Version:" + sjavaVersion ;
                sInfos += "\nJava Vendor:" + sjavaVendor ;
                sInfos += "\nJava vendor URL:" + sjavaVendorUrl ;
                sInfos += "\nJava installation directory:" + sjavaHome ;
                sInfos += "\nJava Virtual Machine specification version:" + sjavaVmSpecificationVersion;
                sInfos += "\nJava Virtual Machine specification vendor:" + sjavaVmSpecificationVendor;
                sInfos += "\nJava Virtual Machine specification name:" + sjavaVmSpecificationName;     
                sInfos += "\nUser Name:" + suserName;
                sInfos += "\nUser's home directory:" + suserHome ;
                return sInfos ;
            else if(pId == Operating) return sOperating;  
            else if(pId == architecture) return sarchitecture ; 
            else if(pId == osVersion) return sosVersion ;
            else if(pId == IP) return sIP ;
            else if(pId == MAC) return sMAC ; 
            else if(pId == javaVersion) return sjavaVersion ;  
            else if(pId == javaVendor) return sjavaVendor ;  
            else if(pId == javaVendorUrl) return sjavaVendorUrl ;   
            else if(pId == javaHome) return sjavaHome ;   
            else if(pId == javaVmSpecificationVersion) return sjavaVmSpecificationVersion ; 
            else if(pId == javaVmSpecificationVendor) return sjavaVmSpecificationVendor ;   
            else if(pId == javaVmSpecificationName) return sjavaVmSpecificationName ; 
            else if(pId == userName) return suserName ; 
            else if(pId == userHome) return suserHome ;
             return super.getProperty(pId);
      private final static String getMacAddress() throws IOException {
              String os = System.getProperty("os.name");
              try {
                   if(os.startsWith("Windows")) {
                        return windowsParseMacAddress(windowsRunIpConfigCommand());
                   } else if(os.startsWith("Linux")) {
                        return linuxParseMacAddress(linuxRunIfConfigCommand());
                   } else {
                        throw new IOException("unknown operating system: " + os);
              } catch(ParseException ex) {
                   ex.printStackTrace();
                   throw new IOException(ex.getMessage());
          * Linux stuff
         private final static String linuxParseMacAddress(String ipConfigResponse) throws ParseException {
              String localHost = null;
              try {
                   localHost = InetAddress.getLocalHost().getHostAddress();
              } catch(java.net.UnknownHostException ex) {
                   ex.printStackTrace();
                   throw new ParseException(ex.getMessage(), 0);
              StringTokenizer tokenizer = new StringTokenizer(ipConfigResponse, "\n");
              String lastMacAddress = null;
              while(tokenizer.hasMoreTokens()) {
                   String line = tokenizer.nextToken().trim();
                   boolean containsLocalHost = line.indexOf(localHost) >= 0;
                   // see if line contains IP address
                   if(containsLocalHost && lastMacAddress != null) {
                        return lastMacAddress;
                   // see if line contains MAC address
                   int macAddressPosition = line.indexOf("HWaddr");
                   if(macAddressPosition <= 0) continue;
                   String macAddressCandidate = line.substring(macAddressPosition + 6).trim();
                   if(linuxIsMacAddress(macAddressCandidate)) {
                        lastMacAddress = macAddressCandidate;
                        continue;
              ParseException ex = new ParseException
                   ("cannot read MAC address for " + localHost + " from [" + ipConfigResponse + "]", 0);
              ex.printStackTrace();
              throw ex;
         private final static boolean linuxIsMacAddress(String macAddressCandidate) {
              // TODO: use a smart regular expression
              if(macAddressCandidate.length() != 17) return false;
              return true;
         private final static String linuxRunIfConfigCommand() throws IOException {
              Process p = Runtime.getRuntime().exec("ifconfig");
              InputStream stdoutStream = new BufferedInputStream(p.getInputStream());
              StringBuffer buffer= new StringBuffer();
              for (;;) {
                   int c = stdoutStream.read();
                   if (c == -1) break;
                   buffer.append((char)c);
              String outputText = buffer.toString();
              stdoutStream.close();
              return outputText;
          * Windows stuff
         private final static String windowsParseMacAddress(String ipConfigResponse) throws ParseException {
              String localHost = null;
              try {
                   localHost = InetAddress.getLocalHost().getHostAddress();
              } catch(java.net.UnknownHostException ex) {
                   ex.printStackTrace();
                   throw new ParseException(ex.getMessage(), 0);
              StringTokenizer tokenizer = new StringTokenizer(ipConfigResponse, "\n");
              String lastMacAddress = null;
              while(tokenizer.hasMoreTokens()) {
                   String line = tokenizer.nextToken().trim();
                   // see if line contains IP address
                   if(line.endsWith(localHost) && lastMacAddress != null) {
                        return lastMacAddress;
                   // see if line contains MAC address
                   int macAddressPosition = line.indexOf(":");
                   if(macAddressPosition <= 0) continue;
                   String macAddressCandidate = line.substring(macAddressPosition + 1).trim();
                   if(windowsIsMacAddress(macAddressCandidate)) {
                        lastMacAddress = macAddressCandidate;
                        continue;
              ParseException ex = new ParseException("cannot read MAC address from [" + ipConfigResponse + "]", 0);
              ex.printStackTrace();
              throw ex;
         private final static boolean windowsIsMacAddress(String macAddressCandidate) {
              // TODO: use a smart regular expression
              if(macAddressCandidate.length() != 17) return false;
              return true;
         private final static String windowsRunIpConfigCommand() throws IOException {
              Process p = Runtime.getRuntime().exec("ipconfig /all");
              InputStream stdoutStream = new BufferedInputStream(p.getInputStream());
              StringBuffer buffer= new StringBuffer();
              for (;;) {
                   int c = stdoutStream.read();
                   if (c == -1) break;
                   buffer.append((char)c);
              String outputText = buffer.toString();
              stdoutStream.close();
              return outputText;
    how to pick the wireless physical address?
    Regards:

    Hi !
    our request object, which is available to all the jsp pages can access ip address and host name of client through these calls.
    request.getRemoteAddr()
    request.getRemoteHost()
    Interface "ServletRequest"
    getRemoteAddr ----
    public java.lang.String getRemoteAddr()
    Returns the Internet Protocol (IP) address of the client that sent the request. For HTTP servlets, same as the value of the CGI variable REMOTE_ADDR.
    Returns:
    a String containing the IP address of the client that sent the request
    getRemoteHost
    public java.lang.String getRemoteHost()
    Returns the fully qualified name of the client that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST.
    Returns:
    a String containing the fully qualified name of the client
    All the Best!
    (Simmy)

  • Secure WiFi Network Requires "Physical Address" Info From iPod Touch

    The Marina where I keep my boat has just installed a WiFi network for the slip holders. They are a little nuts about security, and decided to go a different route than WPA style passwords. They are using the physical address of each device to authorize access to the network.
    How can I find the physical address of my Touch? I tried WiFI Address in settings, and no go. I found it on my G4 PB using this sequence: Apple Menu > About This Mac > More Info > Network > Locations > Airport > Hardware (MAC) Address:
    Thanks.

    To answer your question, you can find your own iPod touch's MAC address yourself. It is found under:
    Settings: General: About: (scoll down a bit!): Wi-Fi Address = XX:XX:XX:XX:XX:XX
    (BTW: While you're at it, tell your "nuts" Marina's IT security manager that MAC address filtering is easliy cracked - maybe not by an iPod, but easily with a laptop. They should use WPA2 encryption for a million times better security, and not bother with SSID-hiding, nor MAC address filtering at all. I don't expect he'll listen to you though! IT mangers seem to think they know everything better than anybody! )

  • Serious Mac Problem : Why does my mac went really slow and then when I want to re-open it, it won't let me

    Yesterday I was working on my computer.
    I was about to start a new text on word.
    Suddently, the mac keeps on showing me the circle with all the colours for a lot of times.
    Then after what maybe 5 or 10 minutes, it got stuck there.
    I couldn't do anything except to shut it down or to wait.
    So I closed the computer and I came back the other day to see if it wasn't just a little problem.
    I open the mac and the Apple sign showed up and I had to wait for atleast 1h so here I am wondering if my computer is broken or just really old to work properly.
    If anyone of you knows what's going with my mac or if you ever had that type of problem with your computer and you know how to deal with it,
    please help me out.
    thank you in advance
    Audrey

    Resetting SMC as well as NVRAM could solve the problem.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    About NVRAM and PRAM

  • Problem with facetime for mac

    hello guy! I've got a problem with facetime for mac.My sister has a I-pod touch fourth generation with factime but i cna't phone her a message come on my mac.It say "xxx can't receive facetime's calls"!Can you help me??

    Thanks, Dah•veed.
    I did see mention of using Google Public DNS while I was searching the forums prior to posting, but to be honest didn't think it was a DNS-related problem.
    However, to rule it out I've set the prefered DNS servers on my router to Google's, but FaceTime still disconnects after 4-5 seconds when calling between me and my brother-in-law.  It doesn't matter who initiates the call.
    As a test, before I made the changes to my router, I logged into FaceTime as him on my MBP and tried calling myself on my iMac, and that was successful.
    The same test between the two iMacs when they were here was unsuccessful, so now I'm definitely thinking it's something on the '08 iMac.
    Now I just need to figure out what...

Maybe you are looking for