How to implement a LAN scanner in Java?

Hi everyone,
I am new to Java programming. I am working upon a task in which I need to scan the entire LAN using an IP address range. The requirement is to determine each device type i.e. routers, hubs, switches, hosts, etc. on the network using IP address. Can anyone help me? Thanks in advance.

can we atleast know which devices within a givenIP
address range are present irrespective of theirdevice types?
Not reliably. You can ping computers that reply to
ping, or query a well known service (e.g. datetime)
if the computer responds to such queries. More and
more computers don't reply to such queries for
security reasons. They are configured to be "black
holes" so that malware doesn't find them quite so
easily. Firewalls also often block such connections.
What are you really trying to do? Why do you want to
scan addresses?Ok. Let me tell u what exactly I want. First of all I want to determine the OIDs of all the managed objects on each node in the network. The OID for same type of managed objects on different nodes is always the same across all the platforms. So, once we know the OID of our required objects on each node in the network, we can query those nodes for the values of that OIDs. So, precisely, I want to have the OIDs and as a subsequently I want to query the nodes for their values. Is this possible using Java. If so, then please reply. Thank you.

Similar Messages

  • How to implement a note on a Java AS(i.e.Enterprise portal)

    Hello
    How to implement a note on a Java AS(i.e.Enterprise portal)
    Thx in advance

    Hi,
    Could you please let us know what kind of note you want to implement on EP ?
    Thanks
    Sunny

  • How to implement the security notes in Java System.

    Hi All,
    For the ABAP systems we use RSECNOTE to implement the security notes, but how do we do that in Java systems?
    Any reference or guidance will be of great help.
    Thanks,
    Akash.

    RSECNOTE is for ABAP only, and I dont think there is any equivalent for Java.
    For Java , security note will guide you on how to implement.
    It could be manual changes or via SDM or JSPM.
    Regards,
    Pinkle

  • How to implement a search engine in java ?

    Hi All,
    1. Can anyone explain me with java code how to connect to a excel database residing on a
    different(I know that we do it thro' dsn) machine in my network. I know that we do it with a dsn.
    I created a network map but when I execute the statement
    "Connection conn = (Connection)DriverManager.getConnection("jdbc:odbc:accesscarddsn");"
    then I am getting the error:
    SQLException:[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
    2. I am doing a website where some pages of website are jsp, servlets. I want to implement a search functionality in my site so that if the user types a keyword then I need to show him the links to the pages(whether jsp,html) which contain this keyword. How do I do that other than using property files .
    Thanks & Regards,
    Kumar.

    With regard to your first question,you need to supply user name and passwrd in the connection statement.I guess that's problem when it saya..too few parameters. IF there is no user name and passwd, sne dnull strings.
    With regard to the search functionality, there are many ways you can implement it.I am not sure about any readymade products available on the web, however you can code it yourself, it might be time consuming but I feel it is better.You can do it this way:
    1. Parse all the html docs in ur website, ignore all the html tags and maintain a HASH table of all words and the locations you found the word in.You can optioanlly remove all stopwords, i.e. words that occur commonly like 'a', 'an' etc..
    2. The next phase is to take a query through a cgi program and search the hash table for all keywords,make sure you seach for each keyword in the query seperately.Retreieve the docs, display the results on a html page.
    Cheers!

  • How to implement single sign-on using java?

    I need your help regarding the following task, please go through it and tell me if you have a solution to it.
    DSOWeb is a portal which has links to all the reports generated from Microstrategy8.0.1 (MSTR) [it is another tool which generates the BI Reports] and my requirement is like when a report link in DSOWeb is clicked it goes to MSTR and shows a report of MSTR but the user is unaware of all this that the system is entering into some other portal and giving that report to him.
    1. User logs into DSOWeb (Implemented using Struts framework) - He is automatically logged into MSTR (Java Spring Architecture) as well.
    How to get the session Id of MSTR from DSOWeb and maintain that session within the DSOWeb???
    2.User clicks on a report link - He either uses the session created above or a new session is created for him, if the old one no longer exists.
    3.When User clicks Logout in DSOWeb the system should also internally invalidate the MSTR Session and logout from MSTR .
    Note : Here DSOWeb and MSTR applications are running in different Servers.

    Hello Meghal,
    It is possible to implement social login via Facebook for SAP Enterprise Portal 7.3 by simply using the SAP Cloud Identity offering.
    More details about SAP Cloud Identity you will be able to find here:
    SAP Cloud Identity Solution Brief:  Simplify and Secure Cloud Access to Critical Business Data
    SAP Cloud Identity features - latest release: http://scn.sap.com/community/security/blog/2014/12/18/new-capabilities-with-the-latest-release-of-the-sap-cloud-identity
    Please, find also the documentation about social login implementation:
    Enable or Disable Social Sign-On for an Application
    Best regards,
    Donka Dimitrova

  • How to connect to a scanner using java

    Hello Everybody,
    Can Any one tell me how do i connect a HP scanner device in my java application.....
    Thanks in advance

    Just a thought, but have you checked HP's Web site to see if they offer any Java support/drivers?

  • How to implement logging functonolity in my java application

    Hi.
    I want to add logging functionality in my java project.Iam using jdk1.5.I have written following log4j.properties.This property file i need to keep it in com.format.src.property folder .All java files are there in com.format.src folder.
    log4j.rootCategory=DEBUG, FILE, CONSOLE
    ### A bootstrap file appender
    log4j.appender.FILE=org.jboss.logging.appender.FileAppender
    log4j.appender.FILE.File=${jboss.server.log.dir}/${HOSTSHORTNAME}-${jboss.server.name}-boot.log
    log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
    log4j.appender.FILE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n
    log4j.appender.FILE.Append=false
    log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
    log4j.appender.CONSOLE.Threshold=INFO
    log4j.appender.CONSOLE.Target=System.out
    log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
    log4j.appender.CONSOLE.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n
    Could you reply me the steps to implement logging in my project.
    Thanks in advance
    alex

    1) Put the Apache Commons Logging jar into your "lib" folder.
    2) Create your properties file as "log4j.properties"
    3) Keep it inside the folder where you have your "src" (ie. ur "src", "classes", & "log4j.properties" should be in the same folder)
    4) Import "org.apache.log4j.Logger;"
    5) Create an instance of "Logger" as follows;
    Logger log = Logger.getLogger(YourClassName.class.getName());
    6) Use the created "log" instance when applicable as follows:
    log.info("Whatever the message");
    log.debug("Whatever the message");
    log.error("Whatever the message");
    log.fatal("Whatever the message"); ...etc
    Hope u got it... Happy coding... :)
    Cheers,
    Asela.

  • How to implement af:table filter with java backend?

    Hi,
    One of the af:table feature is to have a filter over its column to filter data. I want to implement this feature, however I'm not able to find documentation or example for it.
    We use plain java as backend (i.e. not using ADF BC) and most of the documentation and examples over the net are with ADF BC.
    Have you done or come across an example of similar implementation before?
    Thanks for the help.

    Hi,
    You can implement your own filters by adding a "filter" facet to your af:column.
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_column.html
    Regards,
    Stijn
    http://webapplicationdeveloper.blogspot.com

  • How to implement Captcha using Web Dynpro Java

    Hi Experts,
    Can you please provide any information on CaptchaImplementation using Web Dynpro Java. We are using NWDS 7.01.
    Regards,
    Suvankar

    Hello Suvankar,
    maybe this blog will help. But haven't tryed it myself.
    http://scn.sap.com/blogs/balab/2006/09/25/bid-adieu-to-bots--using-captchas
    Regards,
    Tobi

  • How to implement multi threading without using Java's synchronization

    I have a shared Object called "tradeObj" whose attributes are "Price" and "Quantity".
    Thread1 is going to change the price and Thread2 is going to change the quantity but not stepping on each other's update.
    Because of the cost of synchronization, I dont want to use "Synchronize", but still want to make sure both threads make their update in a proper manner.
    Any ideas?

    Soph wrote:
    I have a shared Object called "tradeObj" whose attributes are "Price" and "Quantity".
    Thread1 is going to change the price and Thread2 is going to change the quantity but not stepping on each other's update.given above I would guess [your interviewer|http://forums.sun.com/thread.jspa?messageID=10976469#10976469|interview] had in mind reducing locks contention (google for "java concurrency locks granularity" or "java concurrency locks contention" if you're interested)
    // disclaimer: I didn't test this code with compiler
    class TradeObj {
      private int price, quantity;
      // locks
      private final Object priceLock = new Object();
      private final Object quantityLock = new Object();
      public int getPrice() {
        synchronized (priceLock) { return price; }
      public void setPrice(int price) {
        synchronized (priceLock) { this.price = price; }
      public int getQuantity() {
        synchronized (quantityLock) { return quantity; }
      public void setQuantity(int quantity) {
        synchronized (quantityLock) { this.quantity = quantity; }
    Because of the cost of synchronization, I dont want to use "Synchronize", but still want to make sure both threads make their update in a proper manner.what you want above doesn't make much sense to me sorry
    Any ideas?Edited by: gnat on Apr 23, 2010 9:44 AM

  • How to implement a print screen through a java program rather than a keyboa

    help needed urgently to make a college project.
    have to capture whatsoever is on the client screen
    and sent it to to a server program where it will be made visible on a frame or panel.
    this is to be done without the client ever knowing it.
    so needed to implement a printscreen command using java code and put it in a program(also how to make
    the .class file containing this code run in the background all the time since the client comp starts till it is shut down without the client ever knowing it)
    e mail: [email protected]

    <pre>
    hartmut
    i need help.
    i've recently started using the web to learn more about java.your reply was very discouraging.
    the proff. just wants a decent project.
    but i want to make this project to improve my java networking skills.
    if you can help , please tell me how to implement a printscreen through a java program rather than a keyboard.
    I'll be very grateful to you if you can help me in this regard, but please dont send a dissapointing response like the previous one.
    mail: [email protected]
    </pre>

  • How to implement 3 way handshake in TCP protocol

    I am a newbie to socket programming. Can any one suggest me how to implement 3 way handshake?

    Java comes with java.net including Socket and ServerSocket. On the Java level you use this higher-level API (or even URLConnection or HttpURLConnection) and do not have to worry about the TCP handshake. You have no access to that low level either.

  • How to implement erase function of paint program?

    Hello all:
    there are many demo programs on the website that indicates how to implement
    a simple draw line java program.
    However, i didn't find available source to learn how to implement the erase function,
    so that we can erase part of line or all lines.
    Some programs present the methods to do undo operations, however none of them
    related directly to how to implement erase function.
    thank you for comments
    -Daniel

    Hello all:
    there are many demo programs on the website that
    indicates how to implement
    a simple draw line java program.
    However, i didn't find available source to learn how
    to implement the erase function,
    so that we can erase part of line or all lines.
    Some programs present the methods to do undo
    operations, however none of them
    related directly to how to implement erase function.
    thank you for comments
    -DanielThere are a few ways depending on the app requirement or design.
    The simplest one is to draw with the background color, typically white.

  • Implementing  circular-left shift in java

    i'm an fresher currently in a project on SHA algorithm
    i would like to know how to implement circular left shift in java
    whether there is any method in java to implement this ,
    if in case what package i have to import.
    please reply me,
    yours sincerely
    hari hara ganesh.d
    india

    int number= ...;
    int shift= ...;
    int rotleft= (number<<shift)|(number>>>32-shift);kind regards,
    Jos

  • How to implement a java class in my form .

    Hi All ,
    I'm trying to create a Button or a Bean Area Item and Implement a class to it on the ( IMPLEMENTATION CLASS ) property such as ( oracle.forms.demos.RoundedButton ) class . but it doesn't work ... please tell me how to implement such a class to my button .
    Thanx a lot for your help.
    AIN
    null

    hi [email protected]
    tell me my friend .. how can i extend
    the standard Forms button in Java ? ... what is the tool for that ... can you explain more please .. or can you give me a full example ... i don't have any expereience on that .. i'm waiting for your reply .
    Thanx a lot for your cooperation .
    Ali
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Henrik, the Java importer lets you call Java classes on the app server side - I think what Ali is trying to do is integrate on the client side.
    If you want to add your own button then if you extend the standard Forms button in Java and then use this class name in the implementation class property then the Java for your button will be used instead of the standard Forms button. And since it has extended the basic Forms button it has all the standard button functionality.
    There is a white paper on OTN about this and we have created a new white paper which will be out in a couple of months (I think).
    Regards
    Grant Ronald<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Music appears to be on ipod when viewing in iTunes but isn't there

    I have a new problem with my previously reliable iPods. When I connect them to my computer and either manually or automatically sync music to them, the sync appears to work fine, and I can click on a song and play it from iTunes. But when I disconnec

  • Recent Booting up Problems

    Hey guys, I've been using a windows XP partition on my Macbook Pro for a few years now occasionally for gaming, otherwise I just use the standard Mac OS. I've run into a new problem. I was using it today, and went to the washroom. As I was returning,

  • Basic Oracle HR Demo ADF BC application

    Hi, Chris Muir 在 ADF EMG (http://groups.google.com/group/adf-methodology) 分享了他的一個 ADF BC 的 demo 專案. 使用的是 Oracle 內建的 HR schema. 應該是一個不錯的參考和學習資料. 可以從這邊下載: http://java.net/projects/adfemg/downloads Best Regards, Leon

  • ITunes keeps restarting like im first using the program!

    Ive been using iTunes for years.  Im having a problem where when i close the program and come back to it on another day it is like ive never opend iTunes before.  It wants me to search my computer for music.  I am able to import my playlists and get

  • DELETE 0SOURSYSTEM in COMPOUNDING

    Hi all, I need to delete Source System compounding from 0CUSTOMER, however 0SHIP_TO , 0SOLD_TO etc are referenced by 0CUSTOMER thus not letteing me delete the compounding. Any suggessions? Cheers~ Edited by: Davy Dave on Mar 24, 2011 9:44 AM