It's been asked before....

I've asked this question before but never received any replies, not even it can't be done.
Is there any way to write something in Java that can monitor a port to make sure it's still open? Our SNMP Trap Service running on Windows NT uses port 162 and it often Dr. Watsons. I'd like to write something that could check that port on a set time period and at least notify me when it doesn't respond. Better yet, I'd probably have it try to restart it by running the stop and start service commands.
I could write something to just watch the log file and make sure it's properties are changing. If the properties don't change within a set threshold, assume the SNMP Trap service failed and restart it.
It would be nicer to watch a port because that could possibly be used for other applications as well.
Anyone have any comments either way?
Thanks,
James

cant you just try to bind a socket to that port ?? i think its impossible if its already opened. then you could just catch the exception and be sure that the port is open. im not sure if this actually works though...

Similar Messages

  • My iPad ask me to update but when I did it asked me for  my password  which I have never been asked before and I haven't got a 4 number pass code so what do I do

    It has asked me for a pass code to update I never been asked before and I don't have a pass code for it ... And if I have I cannot remember so what do I do as I will not be able to update this is from my iPad  can give me this pass code I suppose to have   WHY IS IT ASKING ME KNOW FOR ONE

    It's referring to the Passcode which you use to lock/unlock your iPad

  • So, I know this has been asked before. But, has anyone heard from Apple?

    So, I know this has been asked before, but I'm just looking to see if anyone had heard from Apple on this at all. The minimum volume on my iPod Classic 160gb is too high, and I can't lower it. (AKA when I kill the volume, I can still hear music).
    I called them today, but the rep was pretty useless. He even dropped the "well, just press pause" line on me. Took him a while to understand that when I'm in bed or studying, etc. the minimum volume is too loud, and I wanted to be able to set it lower.
    The best workaround I've found so far is to buy headphones with their own volume control, but I just can't help but feel that someone shouldn't have to by additonal gear after buying this thing on account of such a basic feature exclusion.
    Anyways, thanks for any help !

    Wow, easy there company boy!
    I've heard all of what you spit up before.  And for your point of "Well, in several cases, people have complained (here in these discussion pages), that they expect the volume to be zero when turned to minimum position" that kind of ties in to why Apple should fix this.
    And yeah....it's pretty much a given that "you and I have different interpretations of what constitues too loud" This is where the option to adjust the minimum volume comes in to play.  (I relly feel bad for you. Honestly. Having to live everyday of your life this way must be just brutal)
    The wording would be pretty simple too. " Be aware there are many instances of the minimum volume being too loud, so think twice before dropping a few hundred bucks on this"
    And, you're right. It is horrible to 'whine' about being ripped off and asking if there is a possible fix for the issue. I really do apologize for that. I should just suck it up and not voice my opinion that this is not fair to consumers, and Apple shouldn't fix a known issue with a product.
    I did reset & restore, I figured that was pretty much implied since I said I spoke to Support.
    And I am not at all surprised that you would say "I - for one - am not surprised that Apple might say, "simply hit the pause button"."  Again, I don't want it on muteReading your post made my eye twitch at least three times.
    This is exactly the reason I was resitant to post on a forum. But, I got a good laugh anyways. Thanks guy!

  • Contact Form - I Know this has been asked before. . .

    Hello
    I know this question has been asked before! But even searching the forums hasn't got me the direct answer i am after.
    I need a 'Contact us' form on a website and i have come across posts with people who have got part way with one and needed help - but i need one from scratch. .
    I have been told by 11Mystics that 'VaskGirl' can help me with a tutorial she has??
    All help will be greatly appreciated. . .
    Thanks

    I have been told by 11Mystics that 'VaskGirl' can help me with a tutorial she has?? [sic]
    "Varkgirl"
    http://iweb.aardvarkland.com/
    Mark

  • I know this has been asked before But I Deleted 6 mths worth of Bookmark folders, Cant use Undo,

    I know this has been asked before But I Deleted 10 mths worth of Bookmark folders, Cant use Undo & havent backed up (live & learn) Someone posted do a restore from "Import & Backup" My listing in Restore is only 2010-6-29 back to 2010-6-22. Is this the way to go to retrieve as much as possible or is there another solution?

    Those dates are when a backup was automatically made by Firefox, not dates when you saved specific bookmarks. Try restoring the backup from the day before you deleted all those bookmarks. It will restore the entire backup file - not just what you deleted, you will lose any bookmarks that you saved after the date of the file you restore.
    [https://support.mozilla.com/en-US/kb/Lost+Bookmarks]

  • WHY ARE SECURITY QUESTIONS ,THAT I HAVE NEVER BEEN ASKED BEFORE,NEEDED TO DOWNLOAD CONTENT FROM ITUNES ?

    IV'E TRIED THIS EVENING TO DOWNLOAD A SONG FROM ITUNES AND SECURITY QUESTIONS THAT I HAVE NEVER BEEN ASKED BEFORE ARE NEEDED TO COMPLETE THE DOWNLOAD. WHY?

    The security questions have been added to provide additional security for iTunes Store accounts. You will need to set up the questions and answers now, and provide those answers from time to time.
    Regards.
    Forum Tip: It is generally considered inappropriate to type all in uppercase letters in Internet discussions, as text that is typed all in uppercase is by convention considered to be shouting.  Uppercase is also more difficult to read, so please use all uppercase sparingly and only when you really mean to shout, which we hope you won’t need to do here .

  • I know this question has been asked before a long time ago but NO Answer

    Hello,  This question has been asked before but no answer so I thought I'd ask it again since it's been a few years..
    How can I replace the folder icons in a Picture Library with a thumbnail of a photo in a folder?  I know I can do something very similar in the 'getting started' list by using a 'Promoted Links List' does the picture library
    use the same type of methold? I'd like to see a thumbnail of one of the photos instead of a yellow file folder.
    Thank you,
    Joan

    I'm a bit of fan of: lapointes add-ons.
    If you have these installed (free of charge) it is just a powershell command. (set-spolist)
    check: http://www.falchionconsulting.com/PowerShellViewer/Default.aspx?Version=SPO&Cmdlet=Set-SPOList
    ImageUrl
    False
    String
    Sets a value that specifies the URI for the icon of the List.
    Good luck!

  • MFmessageerrordomain1032. what is this error message after I failed to put in the correct password for Yahoo? which I haven't been asked before

    Got error message "MF Message Error Domain 1032" after not knowing a Yahoo password. I've never been asked this password to open email before.

    Hi mterry1723, one solution that might be worth trying is this:
    - Close iTunes, if it's open
    - Open Safari and got to 'Preferences'
    - Select 'Security' on the top
    - Untick all the security options in the menu
    - Click the 'Show Cookies' button and look for all the 'apple' entries in the left-hand column.
    - Highlight them (select them collectively) and press 'Remove'
    - Now open iTunes and buy the song as usual.
    - You may be asked to do the same security process as before, so do as asked.
    - Hopefully, the security check will now have accepted your answers and start downloading the song as normal.
    Remember to re-tick all the required security options you had just un-ticked in Safari preferences. You don't need to bother about opening the cookies again.
    I hope this has worked for you and my profoundest apologies if it has not. Worth a go, though!
    I did see this thread: https://discussions.apple.com/message/18259935#18259935 which may be of more help, mainly the last entry by 'c2boyd'
    Message was edited by: Bongomal

  • Sure its been asked before but please can someone help re transfer old ipod

    Hello,
    I appreciate this has probably been asked loads of times before but could someone "in the know" please tell me the easiest way to sort my dilema!!
    I have a 2nd gen ipod & 1st gen ipod touch which were both on my old PC on seperate user accounts. I have since left my wife & she has the PC (we're still amicable!!) which contains both itunes accounts. That left me debating what to do as ideally I didn't want to be going back to hers to do my music management! To make things easy both the audio jack & dock connector broke on my touch meaning the repairs would have been the same as the cost of a new ipod classic so I went for the latter & set up a new itunes account on my laptop. Problem is I would like all of my old music on my new ipod as I had approx 4000 songs on the 2ng gen & 3500ish on my touch. Is there an easy way to get all of that music over to my new laptop & subsequently my new ipod without losing whats on my new ipod/itunes now?
    Thank you to anyone who can help me with this.
    Ben

    Hey there,
    One solution is to copy all the songs currently on your iPod to your new iTunes library. There are several ways you can pull the music off your iPod and onto iTunes.
    It all depends on if you have a Mac or PC with how you copy your music over. The first link after the Apple support document below provides step-by-step instructions for the direct method if you have a PC as well as a few third party applications (for both the Mac and PC) if you choose to go that route instead. You can also do a simple google search for "copy music from iPod to computer" and you should receive a number of sites that can help you out.
    Just make sure that when you have your iPod plugged into your new computer, that you don't hit "Erase and Sync" before completing the task of copying your music over.
    Also, if you have any purchased music, you will probably have to re-authorize your computer by heading to the Store drop down menu and choosing "Authorize computer." From there, restore your iPod and sync it with your new library. I did notice you did not want to go this route though.
    [5 Ways to Copy Music OFF your iPod and onto iTunes|http://www.metaphoriclabs.com/articles/5-ways-to-copy-music-off-your-ipo d-windows-mac-os-x>
    Here are a few more helpful sites.
    [Copying Content from your iPod to your Computer - The Definitive Guide|http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipo d-to-computer]
    Or
    [How to copy songs your iPod to your PC|http://lifehacker.com/software/ipod/how-to-copy-songs-from-your-ipod-to-your -pc-105256.php]
    B-rock

  • TS2446 Hello. I know my password but I was locked out because of security questions I've never been asked before? V

    I've been locked out of iTunes because it asked me security question I've never answered before. Don't know what's going on?

    Click here for information. If the option to have the answers emailed to you isn't available or doesn't work(the email may take a few hours to arrive), contact the iTunes Store staff via the link in the 'Additional Information' section of that article.
    (89605)

  • TS1277 iTunes rep early ask me to answer security questions I've never been ask before and then tells me the answers I give are incorrect

    Y'all keep asking me security questions that I've never answered before like what city did I get my first kiss? When I answer it tells me my answer is incorrect! Really???!!!

    Click here for information. If you can't get the answers emailed to you for some reason, contact the iTunes Store staff via the link in that article.
    (75380)

  • Never Been Asked Before.... Scapy......

    Hi
    I have a question about a library available for Python: Scapy (www.secdev.org/projects/scapy/). This library offers a variety of things but I am interested in how it interacts with wireless networks.
    I have read countless tutorials and documentation on it but I can't figure out the following:
    -- How to sniff for wireless networks (listen to beacon frames for passive scanning)
    -- How to sniff for wireless networks (transmitting probe request frames and then listening for the response - active scanning)
    The above two points are to detect any wireless networks within the range of the wireless adapter (basically I want a list of networks)
    -- I then want to know the signal strength of each ACCESS POINT per network (in other words each wireless network may have more than one access point - signal strength as a percentage)
    -- Other information about each and every access point such as (access point name, access point MAC, time of arrival packets, time of transmission packet, HOW LONG A PACKET TOOK TO REACH ME (as accurate as possible, not seconds - perhaps milliseconds?)
    -- And any other information about the access points or networks
    I need to know how to achieve this because I ultimately need to know HOW FAR the access point is from me (leave me to figure this out, it should be possible with the above information)... Please suggest and advise and help me figure the above out.
    Does Anyone out there use this? know how to do this? can help me? PLEASE... I have been stuck on this for a very long time and I am desperate for some help. An ideal answer would be lines of code with comments please.
    - THANK YOU SO MUCH :)

    How is this related to Oracle? This is an Oracle forum for questions related with Python and its interaction with Oracle, not about a library you want to use to steal wifi in the hood.
    This is my piece of advice: go ask in the [python list|http://mail.python.org/mailman/listinfo/python-list] about it.

  • I know it's been asked before but ..

    Hello everyone,
    I've scoured this forum pretty much all day yesterday and found bits and pieces of the answer I was looking for. Honestly, I'm just not good with HTML.
    I have a service that will stream my videos.
    I can LINK to them from a page in IWEB and that works fine. You click the link and a NEW QT movie window opens. What I'd really like to happen is to have the movie open in a new web page. This way I have control of where the movie is and what the background looks like.
    I've only been able to get this to work (quite easily) if I drag the movie into the page and of course it will upload to the MAC server (and stream slow and expensive).
    I found the Make REF program and that's where I get stuck.
    Is there a tutorial with details somewhere?
    Thanks
    Brian
    G5   Mac OS X (10.4.6)  

    It may be more difficult than need be but I guess the
    question is, can it be done.
    The answer to your question is a definite "YES! It can be done."
    There are lots of reasons to link to content instead of duplicating content on your own server. A dedicated streaming video server is capable of hosting and delivering video content much quicker and at much higher quality. By linking to the content as an embedded object, you also do not use your own bandwidth to host and deliver the content. Plus, with a streaming server, you get real streaming...no real "downloading" of the content to a viewer's machine before display.
    If you were to host the content on your own server, you'd probably want to decrease the hit to your bandwidth usage. This means compressing the video and decreasing the quality below that which you'd get from the dedicated streaming server.

  • FLV - Fullscreen - I know its been asked before

    OK - the reason I am asking this, we can't afford a flash
    server yet, I
    would love to be able to put in the show in full screen ...
    I just used Dreamweaver (not Flash) to create this, but if
    anyone has any
    suggestions they would be appreciated! -
    http://www.mixit.tv/
    My first attempt at something like this ... !

    I have iTunes 6.0.5 and I have the iPod updater on the Start menu under iPod.
    Start>iPod>iPod Updater
    Presumably intalled with the iTunes software?
    If not check here
    http://docs.info.apple.com/article.html?artnum=304215

  • I know this has been asked before, but...

    I'm having trouble converting a mono audio track to a stereo one. I know you're supposed to extract the audio and open it in QT and export it in stereo, but it doesn't seem to be working. I'm selecting "Export: Sound to AIFF" and "Use: 44.1kHz Stereo." I know I've successfully done this before, but I can't seem to do it this time. Any help? Thanks.

    Jeff,
    Is the problem that you only have sound coming out of one speaker? If so, you've already got stereo. It's just that your audio is only on one of the two tracks in your stereo pair.
    So what you really need to do is export to mono.
    Matt

Maybe you are looking for

  • Document and data deleted by mistake

    I accidentally deleted my Goodnotes files from setting→icloud→document and data,and found that all the notes stored in the Goodnotes application have also been deleted. These notes are very important for my work, could anyone tell me how can I restor

  • Webconsole - menu only for root

    Hi, I can only log into my webconsole with root. If I use another user the webconsole permits to log in but no applications (ZFS, Sun Cluster, ...) are available. Solaris 10 u6 (Generic_138888-03) Sun CLuster 3.2 u2 Regards, MIke

  • What are some of your favorite practices in GUI design?

    I saw a conversation a few weeks ago about LVOOP vs Clusters for passing around data that I found fascinating - and quite informative.  I thought I'd try to open up a discussion about GUI design and see what I could learn. Edit: to give an example, I

  • Calling DLL function using LabVIEW 7.1?

    Here's the scinario: I have LabVIEW 7.1 and i'm trying to call a DLL function using 'CALL LIBRARY FUNCTION NODE'. I have used this in the past with no problem. But right now, when I use this node and link it to the library and function name, i get 'E

  • Deployment error in 9.0.3 for app with local interface

    While attempting to port an EJB-application from jboss to oracle, I have encountered a deployment error in 9.0.3 9iASR2 which I cannot decipher. The same ear-file is successfully deployed on the 9.0.3. OC4J standalone version (both on a machine runni