Need to determine machine is ON / OFF ?

On network for a given IP address, I want to detrmine if that particular machine is ON / OFF ?
How come I can achieve this ?

It has been proven that this is impossible to do as you have no way of distinguishing machines that are slow, those which hang and those that are actually off.
Since this does not really help in practice, you just assume a certain maximum response time. You ping the remote machine and schedule a timeout. If the machine answers before the timeout triggers, it is on. Otherwise you just assume it's gone.
There is no ping() method that maps to the standard shell ping. So you can either have a Java application on the other side answering your pings, or you go with Runtime.getRuntime().exec("ping <machine>") and parse the output of the returned Process.

Similar Messages

  • I accidentally delete all my photo in the "all my files". How could I back up all the photo? (time machine is turn off)

    I accidentally delete all my photo in the "all my files".
    actually I delete every thing in ALL MY FILES.
    How could I back up all the photo?
    and other data, such as movies and so on?
    Do I need to go to Apple store to back up?
    (time machine is turn off)

    If you don't have a back up then you'll need to use a file recovery app like File Salvage
    To back up iPhoto you make a copy of the Library on another disk.
    Regards
    TD

  • Time machine is turned off but my startup disk keeps filling up with backup files on a hidden volume.

    My Time Machine is turned off but my system startup drive keeps filling up with backup files in a hidden volume. How can I stop this? When Time Machine was turned on, the destination was set to an external drive.  I was completely confused about what was happening until I used Houdini to reveal the hidden volume. I have no idea how it got created or why it keeps filling up with no backup application running to my knowledge.  Thanks.

    Please read this whole message before doing anything.
    Download this, or a similar tool if you prefer:
    OmniDiskSweeper - Products - The Omni Group
    Boot in safe mode. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    During startup, you will see "Safe Boot" on the login screen, which appears even if you normally log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Safe mode is slower than normal, and some things won’t work at all, possibly including wireless networking.
    Does your boot volume continue to fill up? Use the above tool to explore the volume and find out where the space is going.

  • I have a laptop with Windows 7, and when the machine is turned off it loses all the user names

    I have a Gateway Laptop with Windows 7, 64 bit. When the machine is turned off, and then
    back on it loses all it's user names that have been remembered.

    Do you mean names and passwords in the Password Manager or do you mean that you are no longer logged on to (remembered by) websites after closing and restarting Firefox?
    There is a difference between remembering the name and password in the Password Manager and a "remember me" check box on a web page to log you in automatically.<br />
    The latter usually involves the creation of a special "remember me" cookie that is stored on your computer and that is send to the server.<br />
    If that "remember me" cookie is removed or gets corrupted or is not send to the server then the server won't remember you anymore and you need to sign in once again.
    In case you are using "Clear history when Firefox closes":
    *do not clear the Cookies
    *do not clear the Site Preferences
    *do not clear the Saved Passwords
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception.

  • Need to determine data type of free characteristic in multiprovider

    Hi,
    I need to determine the data type (e.g. numeric vs alpha numberic) of a free characteristic in a multiprovider.  Can this be accomplished in BEx Query Designer? 
    If not, can it be accomplished in RSA1?  How?
    Thanks,
    Kevin

    its not possible via Query designer..
    give that object name if it is infoobject then you can get via RSD1

  • My iphone 5 screen needs to be turned on and off twice before I can slide the screen to unlock it.

    My iphone 5 screen needs to be turned on and off twice (hit the top button or home button, then turn off the screen again, then hit one of the buttons again) before I can slide the screen to unlock it. Also, when I was using it yesterday, the volume on my music was sliding up and down by itself, it clicked on albums by itself and wouldn't register my touch, the song kept pausing and playing by itself, and when I backed out of the app, all my running apps started sliding back and forth across the screen as if I were running my finger back and forth extremely fast. It also then opened the phone app, started to call one of my contacts, and wouldn't let me hang up. My phone is relatively new (got it back in June) and I haven't dropped my phone at all, haven't gotten it wet, etc... The only thing I've done to it recently is install iOS7. Does anyone know why this is happening and how I can fix it?

    Took my phone to the Apple store this week and they told me it was a hardware/screen malfunction. They replaced the screen for free since it was under warranty. Now it works fine again!

  • Macbook Pro seems to be bricked by ML install. Upon restart it shows a progress bar which makes it to about 15%, and then the machine simply shuts off. Help?

    Title pretty much says it all. Install seemed to be going fine, then upon restart it hit a gray screen with a progress bar for about 30 seconds. Once the progress bar makes it to about 15% the machine simply shut off. I tried turning the machine on again a few times, but each time I had the same issue. I then tried running the 10.8 recovery disk, but it just showed the gray spinning wheel for about 6 hours. Any ideas?

    Something similar issue with me too. Intallation went fine. Then it started updating java once reboot it got stuck on grey screen. It wont boot at all. That spinning wheel keeps on going forever. :(

  • Need to determine plant and storaeg location for item in delivery

    Hello All,
    I have an inbound IDOC which changes the quantity of items in a delivery and also adds new items if necessary. I need to do a auto PGI also if required.
    Am using BDC to update the delivery. Now the problem is when I add a new item to the delivery. I add the material, quantity and Unit recieved from the IDOC. I need to determine the plant and storage location and fill that too in the delivery.
    Kindly let me know how I can determine these two values. Which table holds this data?
    Please note that I am changing only the delivery. The document preceding the delivery wont be changed.
    Thanks for your help.
    Regards,
    Johnson

    normally the plant is determined on this basis:
    customer inforecord (table KNMT)
    customer master (KNVV)
    material (MVKE)
    The storage location is determined in table TVKOL based on:
    shipping point (you have it in delivery header LIKP-VSTEL)
    plant (see above)
    storage conditions (material master MARA-RAUBE)
    regards
    Roberto

  • HT201250 I want to use Time Machine to back up my pictures because my hard drive is full but I'm wondering if once I back up the pictures then delete them will time machine delete them off the back up too?

    I want to use Time Machine to back up my pictures because my hard drive is full but I'm wondering if once I back up the pictures then delete them will time machine delete them off the back up too?

    Evetually yes.
    If your pictures have been in the same location (same folder, same subfolder, ...) for more than a week, then copies if them will remain in your TM backups until it fills up. They are then vulnerable to being deleted.
    If they've been there for less than a week, TM could delete them as early as a month from now. If they've been there for only a few hours, chances are TM will delete them tomorrow.
    This is why TM is not the best tool to use to archive data that you will be deleting from your main hard drive. Copy them to a dedicated external drive, or burn DVDs.

  • I need an application that will turn off my iPhone on the home screen just by a one click since my power button has sank and is no longer working--anyone have ideas?? I don't like having to use assistive touch and hit three buttons to lock my screen

    I need an application that will turn off my iPhone on the home screen just by a one click since my power button has sank and is no longer working--anyone have ideas?? I don't like having to use assistive touch and hit three buttons to lock my screen

    No such app exisits or can exist.  Apple doesn't allow 3rd party apps to access core functions of the phone.  Time to get your phone replaced or repaired if assistive touch doesn't needs your needs.

  • Need a mechanism for turning ON/OFF SOPs

    hi all,
    please help me in finding a solution::: the scenario is I have some 20
    classes and each has 2 methods and those methods has
    System.out.println(" some text "). i need a mechanism to turn ON/ OFF
    the SOPs to be printed in the console.
    I have two possible ways
    1. using javaw instead of java which will bypass the console.
    2. using an if condition
    for eg:[
    class A
    boolean a = false;
    if(false)
    System.out.println("some text");
    }but I need to have this IF condition check at each n every method is
    there any possibility that I can have only one check that can turn
    ON /OFF the SOPs
    or please help me with other alternatives.
    thanks in advance

    Or just use a small class rather than create your own PrintStream:public class Outputter {
        private static boolean enabled;
        public static void setEnabled(boolean b) {
            enabled = b;
        public static void println(String s) {
            if(enabled) System.out.println(s);
    }

  • I need to delete all my pictures off of my iPhone because I have run out of storage.  I have downloaded all pics to my mac but is my entire camera roll backed up on iCloud as well? I just want to make sure before I delete them from the phone.

    I need to delete all my photos off my iphone because I have run out of local storage.  I have synced with my Mac but also wanted online backup.  Are all my photos from the camera roll uploaded to iCloud?  I just want to make sure I can retrieve them after I erase from the phone and in case my Mac crashes.

    Import photos through iPhoto. (You will prompt to delete from iPhone when import competes).
    Backup your Mac. (At least the iPhoto Library)
    Backup to iTunes.
    Backup to iCloud. (Check in Settings>iCloud>Storage and Backup>Manage Storage>your device name>Camera Roll ON).

  • I follow the instructions of swiping up from the bottom for the control panel, but nothing appears. What am I doing wrong or what do I need to be turned on or off?

    I follow the instructions of swiping up from the bottom for the control panel, but nothing appears. What am I doing wrong or what do I need to be turned on or off?

    "If you're on your home screen, where your apps and folders are, you can't."
    I can on mine.
    For anyone having this issue, take your device out of the case and try it naked before trying a reset, restore or Genius Bar appointment.

  • Why do we need account determination?

    Hello,
    why do we need account determinations and how can i create them for the COA?
    Thanks,
    -S

    Hi
    To create accruals and post payables, the system must first of all determine the correct G/L accounts for posting in FI.
    Before the system can determine the G/L accounts, certain settings must be made in Customizing. In the IMG, select: Logistics Execution -> Transportation-> Shipment costs -> Settlement -> Automatic G/L account determination. The settings required are described in detail here.
    G/L account determination is carried out automatically. The following parameters are used for determination:
    Chart of accounts
    Valuation grouping code
    Transaction key
    Account grouping
    Valuation class
    G/L account determination can be carried out at shipment cost item level or you can have the system carry out posting at delivery or delivery item level for a more detailed process.
    Nagesh

  • HT1688 i need to delete this email acct off  my phone but cant because i did it from the link, the information that i have in is wrong. What to do?

    i need to delete this email acct off  my phone but cant because i did it from the link, the information that i have in is wrong. What to do?

    Settings>Mail,Contacts,Calendars - go to the Accounts section, choose the account to delete, scroll to the resulting page and tap "Delete Account".

Maybe you are looking for

  • How to get the bytes of a long?

    Hi, I need an 8-byte number for my application. First I create an int and then cast it to long. After that this long number must be represented by 8 bytes, or 64 bits, in memory. As far as I know the leading zeros in its binary representation are pre

  • Vendor Confirmation data while creating PO

    Dear All, I have a problem while creating PO. When I create PO with 9 line items 'Confirmation' data is populated. But when I create PO with more than 9 line items 'Confirmation' data is not being populated. If anyone encountered this problem please

  • Portal Error after system copy

    We are getting below error after we performed a dual stack system copy.  We are able to connect to VA, Configtool, SDM except portal. Any ideas?! http://host:port Application cannot be started.   Details:   com.sap.engine.services.deploy.container.Ex

  • Use of initialization

    hi.... i m a beginner in abap.. i want to know what are the benifits of using initialization  in abap program beside for initializing some variables and select options with a default value..

  • Xcelsius has stopped working, APPCRASH Error

    Hi, We are using BOBJ 4.1 SP1 in our environment. Client tools plus, crystal reports and Dashboards has been installed on client machine. When launching Dashboards from client machine, it gives error as attached in screenshot. PFB error details: Prob