This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

nikunj shingala

Ranch Hand
+ Follow
since Jul 20, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by nikunj shingala

Hi,

Now a days I create on Network Monitoring Application and in that application I want to CPU(Like as Windows Task manager)usage of each and every client whose IP store in the database...but how I have no any idea please as soon as possible help me...

Example :
Suppose I click 172.30.10.101 Ip address that time I have CPU usage of that pc...this way......


Thanks
Hi,

Here I put some code but I don't understand result of this code and how it's work please explain me...
12 years ago
Thanks but now my issue is that It is not Static means ip rang is dynamic and it is enter by user and if possible then give me full example..???

Thanks
Hi,

Is there any Java API/code snippet to find the list of all IP Address in a given range? Say example, if i give startIP = 172.30.12.1 and endIP = 172.30.14.255, the output
should be,
172.30.12.1,172.30.12.2,172.30.12.3..................................172.30.12.255,
172.30.13.1,172.30.13.2,172.30.12.3....................................172.30.13.255

I am looking if i can reuse rather than reinvent the wheel.

Thanks
Hi,

I want to Find the computer ip between the two or more than give ip and that ip is given by the user and then in between ip find how many computer and that computer ip...


Like Example....

First Ip : 172.30.12.1
Second Ip : 172.30.12.250
I want to result like in 172.30.12.2,3,4.............
and also give ip like this..

First Ip : 172.30.12.1
Second ip : 172.31.12.1


Means in short find the Ip range in between find the computer host name and other details...


Thanks
Hi

I am new in this and I want to your help.

I want to create One Web application and in this application I want that create new user in Microsoft Server-2003 OS using this web application it is possible or not .....

More Description : In this application we put one form and then we collegct the require information and then and use can click on save then Directly that user create on Microsoft Server-2003 OS user....


Please help me.....

Thanks
12 years ago
Hi,

I am new in this filed and try to run one example of SNMP but when i run that time below Exception are generated so please please help me...

Retrieving value corresponding to OID 1.3.6.1.2.1.1.1.0

Exception during SNMP operation: java.net.SocketTimeoutException: Receive timed out

Hear is my code .........So please check them and solve my exception .........


public class SNMPSampleSetGet
{
public static void main(String args[])
{

try
{

// create a communications interface to a remote SNMP-capable device;
// need to provide the remote host's InetAddress and the community
// name for the device; in addition, need to supply the version number
// for the SNMP messages to be sent (the value 0 corresponding to SNMP
// version 1)
InetAddress hostAddress = InetAddress.getByName("172.30.12.107");
String community = "public";
int version = 0; // SNMPv1

SNMPv1CommunicationInterface comInterface = new SNMPv1CommunicationInterface(version, hostAddress, community);



// now send an SNMP GET request to retrieve the value of the SNMP variable
// corresponding to OID 1.3.6.1.2.1.1.1.0; this is the OID corresponding to
// the device identifying string, and the type is thus SNMPOctetString
String itemID = "1.3.6.1.2.1.1.1.0";

System.out.println("Retrieving value corresponding to OID " + itemID);

// the getMIBEntry method of the communications interface returns an SNMPVarBindList
// object; this is essentially a Vector of SNMP (OID,value) pairs. In this case, the
// returned Vector has just one pair inside it.
SNMPVarBindList newVars = comInterface.getMIBEntry(itemID);

// extract the (OID,value) pair from the SNMPVarBindList; the pair is just a two-element
// SNMPSequence
SNMPSequence pair = (SNMPSequence)(newVars.getSNMPObjectAt(0));

// extract the object identifier from the pair; it's the first element in the sequence
SNMPObjectIdentifier snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0);

// extract the corresponding value from the pair; it's the second element in the sequence
SNMPObject snmpValue = pair.getSNMPObjectAt(1);

// print out the String representation of the retrieved value
System.out.println("Retrieved value: type " + snmpValue.getClass().getName() + ", value " + snmpValue.toString());

// the retrieved value can be obtained from the SNMPObject using the getValue method;
// the return type of the method is the generic base class Object, and must be cast to
// the appropriate actual Java type; in this case, for an SNMPOctetString, the underlying
// Java type is a byte array[]
byte[] javaByteArrayValue = (byte[])snmpValue.getValue();



// now send an SNMP GET request to retrieve the value of the SNMP variable
// corresponding to OID 1.3.6.1.2.1.1.3.0; this is the OID corresponding to
// the uptime of the device, and the return type is thus SNMPTimeTicks
itemID = "1.3.6.1.2.1.1.3.0";

System.out.println("Retrieving value corresponding to OID " + itemID);

// the getMIBEntry method of the communications interface returns an SNMPVarBindList
// object; this is essentially a Vector of SNMP (OID,value) pairs. In this case, the
// returned Vector has just one pair inside it.
newVars = comInterface.getMIBEntry(itemID);

// extract the (OID,value) pair from the SNMPVarBindList; the pair is just a two-element
// SNMPSequence
pair = (SNMPSequence)(newVars.getSNMPObjectAt(0));

// extract the object identifier from the pair; it's the first element in the sequence
snmpOID = (SNMPObjectIdentifier)pair.getSNMPObjectAt(0);

// extract the corresponding value from the pair; it's the second element in the sequence
snmpValue = pair.getSNMPObjectAt(1);

// print out the String representation of the retrieved value
System.out.println("Retrieved value: type " + snmpValue.getClass().getName() + ", value " + snmpValue.toString());

// the retrieved value can be obtained from the SNMPObject using the getValue method;
// the return type of the method is the generic base class Object, and must be cast to
// the appropriate actual Java type; in this case, for SNMPTimeTicks, which is a subclass
// of SNMPInteger, the actual type is BigInteger (which permits arbitrarily large values to
// be represented).
BigInteger javaIntegerValue = (BigInteger)snmpValue.getValue();



// now send an SNMP SET request to set the value of the SNMP variable
// corresponding to OID 1.3.6.1.2.1.1.1.0; this is the OID corresponding to
// the device identifying string, and the type is thus SNMPOctetString;
// to set a new value, a string is supplied
itemID = "1.3.6.1.2.1.1.1.0";

SNMPOctetString newValue = new SNMPOctetString("New device name");

System.out.println("Setting value corresponding to OID " + itemID);
System.out.println("New value: " + newValue.toString());

// the setMIBEntry method of the communications interface returns the SNMPVarBindList
// corresponding to the supplied OID and value
// This call will probably cause an SNMPSetException to be thrown, since the
// community name "public" is probably not the read/write password of the device
newVars = comInterface.setMIBEntry(itemID, newValue);



}
catch(Exception e)
{
System.out.println("Exception during SNMP operation: " + e + "\n");
}

}

}

Please solve my exception as possible as early ................
Hi,

I am new in networking programming and I want to use SNMP in my program but in it Require a SNMP jar file that i haven't so please give a jar file link where to i download please help........Urgently I require this SNMP.jar file

Thanks
Hi,

I am new in Thread and I never use a thread now i want that my same code will be automatically executed after every 15 second now how can i use thread in it...please give me example...... or any other way same code executed after some time...........


Thanks
Hi,

I am a new in networking field and I don't know that how to check our local computer network devices is up or down and This status check using the JAVA code so please help me or give me any example or link..

Thanks
12 years ago
Hi,

I wane to make chat application in java so in it which kind of technology I should prefer for request and response matter....


Thanks
12 years ago
Hi,

I create one web application and that application I used IDE NetBeans 6.5, DataBase : MySql and Hibernate now My Question is that I want to create a report in PDF format so how can I create I have no any Idea so please help me and send me a any reference link..



Thanks
12 years ago
Hi,

I am new in spring framework and I create one example and that example I create one method and I directly extends JdbcDaoSupport class and then after I use getJdbcTemplate().queryForList("select firstName,lastName from info") but query is ready and get the data I check but that collect data how to add in list and which type of list iI take? after how to display that data in JSP page. please help....


Thanks
12 years ago
Hi,

I am new in Spring and I want to use DAO but I have no any proper Example or no any link so please help sent any example or any link where DAO connectivity and use JSP.

Thanks
12 years ago
Hi,

I create one application and this application this type of error "Not binding factory to JNDI, no JNDI name configured" and my second question is that in Hibernate in last session.close but then after all connection is open not close any connection and that reason also problem application is run very slow and some time connection lose.

Please help me.....

Thanks