Sponsored Content
Special Forums IP Networking how to retrieve IP address of a machine Post 87223 by mridula on Friday 21st of October 2005 08:05:45 AM
Old 10-21-2005
how to retrieve IP address of a machine

hi

is there is any command that retrieves the IP address of a machine. Also is there any function in c that does the same.

thankx
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Changing Machine IP address

Hopefully someone can help with this. I need the command to change the IP address on a machine (7 Replies)
Discussion started by: kkinnon
7 Replies

2. UNIX for Dummies Questions & Answers

Restricting access to a machine by IP Address

I have a need to allow only certain IP addresses to access a machine running solaris 9. I am not sure how this can be accomplished. Thanks in advance for your help. Patch (2 Replies)
Discussion started by: patch
2 Replies

3. Programming

How to get IP Address of machine?

Is there any API call to get IP Address of a machine? I know there is function which returns name of the machine, gethostname(). But I need the IP. Thanks & Regards, Ahsan (7 Replies)
Discussion started by: Ahsan
7 Replies

4. Programming

retrieve IP of local machine

Hi all, I am writing a program to retrieve the IP address or machine name of the local machine using C. Is there any C function that does this? ny clue will be of gr8 help!!! thanx a lot. (1 Reply)
Discussion started by: mridula
1 Replies

5. Shell Programming and Scripting

How to get Windows machine's IP address from Unix?

I am using windows Xp. From windows I would connect to my IBM AIX unix machine using telnet client. Is there any command available to view the IP address of Windows machine from Unix? (Note that ifconfig will give unix mahcine's IP address currently logged in.) (3 Replies)
Discussion started by: mvictorvijayan
3 Replies

6. UNIX for Advanced & Expert Users

IP address of machine

Hi i want to know the Ip address of the machine from where i logged into the unix server and made some changes to a file. Can I know the last changes made to a unix file ? (3 Replies)
Discussion started by: harneet2004us
3 Replies

7. UNIX for Dummies Questions & Answers

IP address of Unix machine

Can any one please tell me how to find the IP address of the Unix machine we are in? (9 Replies)
Discussion started by: thoothukudiking
9 Replies

8. UNIX for Dummies Questions & Answers

Retrieve data from Remote machine

Hello Please I ask if it is possible to recover data that is stored on a remote machine that I access via ssh on a usb ? if so, how? Thank you so much (5 Replies)
Discussion started by: chercheur857
5 Replies

9. Solaris

i want to set ip address to a virtual machine

hi all i want to set ip address to a vitrual machine i am using following command. but it is not ifconfig -a command output. what is wrong i dont know bash# ifconfig interfacename plumb bash# ifconfig interfacename auto-dhcp Please use code tags next time for your code and data. (4 Replies)
Discussion started by: nikhil kasar
4 Replies

10. Programming

I.p address of machine

i m writing a program which finds the i.p address of the machine. but it just prints out the first three character of the ifconfig output but i want to just print my i.p address lik 10.0.0.222 which is in second line after inet addr: code : #include<iostream> #include<cstdlib> using... (1 Reply)
Discussion started by: console
1 Replies
condor_power(1) 					      General Commands Manual						   condor_power(1)

Name
       condor_power send - packet intended to wake a machine from a low power state

Synopsis
       condor_power [-h]

       condor_power[-d] [-m MACaddress] [-s subnet] [ClassAdFile]

Description
       condor_powersends  one UDP Wake on LAN (WOL) packet to a machine specified either by command line arguments or by the contents of a machine
       ClassAd. The machine ClassAd may be in a file, where the file name specified by the optional argument ClassAdFileis given  on  the  command
       line. With no command line arguments to specify the machine, and no file specified, condor_powerquietly presumes that standard input is the
       file source which will specify the machine ClassAd that includes the public IP address and subnet of the machine.

       condor_powerneeds a complete specification of the machine to be successful. If a MAC address is provided on the command line, but no subnet
       is  given,  then  the  default value for the subnet is used. If a subnet is provided on the command line, but no MAC address is given, then
       condor_powerfalls back to taking its information in the form of the machine ClassAd as provided in a file or on standard input.	Note  that
       this case implies that the command line specification of the subnet is ignored.

Options
       -h

	  Print usage information and exit.

       -d

	  Enable debugging messages.

       -m MACaddress

	  Specify the MAC address in the standard format of six groups of two hexadecimal digits separated by colons.

       -s subnet

	  Specify  the subnet in the standard form of an IP address. Without this option, the default subnet used will be 255.255.255.255, causing
	  a broadcast.

Exit Status
       condor_powerwill exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.

Author
       Condor Team, University of Wisconsin-Madison

Copyright
       Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of  Wisconsin-Madison,  Madison,  WI.  All  Rights  Reserved.
       Licensed under the Apache License, Version 2.0.

       See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu

								  September 2012						   condor_power(1)
All times are GMT -4. The time now is 10:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy