I wrote a script for someone to output the network information of a client machine to a text file. It doesn't display the external IP, but I am sure it can be tweaked to do so.
Code:
#!/bin/sh
/usr/sbin/networksetup -getinfo Ethernet | open -t -a
If running the command manually you need sudo, but DYNDNS.org is probably a better solution.
I am interested in booting up my unix computer by connecting an external SCSI drive( intergraph) to it. The unix box is also an intergraph computer. Whenever I boot it, it gives me an error that says Drive not ready, Insert Boot Diskette in A. What am I doing wrong?
Any input would be... (3 Replies)
Hie everyone,
I am currently facing a problem whereby I can not connect to an external network from a package ip address on a HP-UX cluster. Below is the illustration:
Primary Server IP Address : n.n.n.202
Secondary Server IP Address : n.n.n.212
Package IP Address : n.n.n.211
... (1 Reply)
Hello, this is my first post on the Unix forums. This is something that's been bothering me for a while, is there any particular UNIX/Linux application that will allow you to see you external IP address? :confused: ( The address beyond your router )
Thank you in advance, I could not find a... (4 Replies)
Hi all,
One of my computers (an iMac) was recently stolen, but I have been able to connect to it over the internet through Apple's 'back to my mac' feature. In order for the police to find these people they need to know the IP address of the stolen computer.
I suspect that I will have find the... (6 Replies)
Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b:
I stopped at .. :(
#!/bin/sh
A=`hostname -i`
echo "server ip address is $A"... (4 Replies)
Hi,
We have generated Some BO reports and These BO reports Needs to be stored in PDF File format in unix server.
Will Unix Support to store PDF Files ?
Many Thanks
Sashu (1 Reply)
Hi, How can I use "mailx" command to send message to an email address like this?
echo "This email body" | mailx -s "my subject" "email@hostname.com"
There may be some setup required in sendmail or postfix??
OS = Snow Leopard 10.6 (4 Replies)
Hi,
I am trying to find the external IP address of a server "XXX".
I logged into server "XXX" and executed nslookup XXX. output number is 123.23.23.45
Later, i have executed "curl http://whatismyip.org". This time i got a different number 611.34.63.22
Out of these two numbers, what number... (1 Reply)
when i execute from local machine
ping domainname i get the external ip address but i am on local dns and i expect the local ip address..
using nslookup : no problem
so i cannot find why...
thanks (2 Replies)
Text in input file is like this
<title>
<band height="21" isSplitAllowed="true" >
<staticText>
<reportElement
x="1"
y="1"
width="313"
height="20"
key="staticText-1"/>
<box></box>
<textElement>
<font fontName="Arial" pdfFontName="Helvetica-Bold"... (4 Replies)
Discussion started by: aankita30
4 Replies
LEARN ABOUT OSF1
iprsetup
iprsetup(8) System Manager's Manual iprsetup(8)NAME
iprsetup - Internet Protocol router setup
SYNOPSIS
/usr/sbin/iprsetup -s
/usr/sbin/iprsetup -sd
/usr/sbin/iprsetup -r
/usr/sbin/iprsetup -rd
/usr/sbin/iprsetup -fvalue
/usr/sbin/iprsetup -fvalued
/usr/sbin/iprsetup -d
OPTIONS
Sets ipforwarding and ipgateway to one, which means the system functions as an IP router. This option cannot be combined with the -r
option. Resets ipforwarding and ipgateway to zero, which means the system does not function as an IP router. This option cannot be com-
bined with the -s and -f options. Sets ipforwarding and ipgateway to one (like the -s option), and also sets ipfirewall to one, which
means the system functions as an IP firewall. Additionally, sets ipsrcroute and ipchkredirects according to the specified value. The fol-
lowing table shows the valid values and their meaning:
----------------------------------------------------------
Value Meaning
----------------------------------------------------------
0 Sets both ipsrcroute and ipchkredirects to zero
1 Sets ipsrcroute to zero and ipchkredirects to one
2 Sets ipsrcroute to one and ipchkredirects to zero
3 Sets both ipsrcroute and ipchkredirects to one
----------------------------------------------------------
This option cannot be combined with the -r option. Only application gateways for firewall services use this option. Displays the
values of ipforwarding and ipgateway. The values are displayed after the values are changed when combined with the -s, -r, and -f
options.
DESCRIPTION
The iprsetup command sets the ipgateway and ipforwarding variables in the running kernel allowing your system to function as an Internet
Protocol router.
When ipfirewall variable is set to one, the following variables are also set: Indicates whether IP source-routed packets are accepted (1)
or dropped immediately (0). Indicates whether ICMP Redirect messages are authenticated (1) or accepted with no authentication (0).
The iprsetup command is automatically executed by netsetup when you configure your network daemons. It is also executed by the
/sbin/init.d/inet script when you reboot your system or restart the network on your system.
FILES
Contains the /usr/sbin/iprsetup command Contains the /usr/sbin/iprsetup command
SEE ALSO
Network Administration
iprsetup(8)