I am fine with using AWK to get the IP. But I don't understand why I am getting the name of the script as output on hops that are not returning an IP. Also as I mentioned earlier why do files that are in the same directory show up as put?
Last edited by vgersh99; 04-02-2011 at 01:17 PM..
Reason: code tags for DATA as well
I understand the concept of traceroute - can anyone explain the output to me e.g. 39ms 39ms 39ms are these the times for each trip it takes? Assuming each machine is pinged 3 times.
and how does the RTT work? Is this the time it takes from one machine to another because it doesn't look like... (6 Replies)
just setup a new system today - 9117 570, using HMC for console but not partitioned.
I installed this system twice. the first time it started off as 5300-00, then updated to ML03. before the update, I believe I mirrored the rootvg, and then altered the bootlist, at that point, the display was... (4 Replies)
#!/bin/bash
INPUT=$1
if
then
INPUT=0$1
TRACKNUMBER=$INPUT
fi
TRACKNUMBER=$INPUT
echo "Track Number:" $TRACKNUMBER
if
then
echo "File Does Not Exist!: split-track"${TRACKNUMBER}".wav"
exit 0
fi
CUEFILE="$2" (6 Replies)
This is the output that I get every so often when trying to do a traceroute to the web server whenever it's inaccessible:
traceroute to 64.40.98.181 (64.40.98.181), 30 hops max, 40 byte packets
1 207.97.207.194 (207.97.207.194) 2.625 ms 2.840 ms 2.968 ms
2 core1-5.iad1.rackspace.com... (6 Replies)
hi all,
have a ksh script which connects to a database and runs a sql and dumps it to a '.csv' file. The problem is the result is in multiple rows with long spaces in between when it should be just a single line and this screws up the format in the '.csv' file.
script is :
#!/bin/ksh... (1 Reply)
Good day. I am doing an enq -WA (AIX), to get a list of the print queues, I then compare that to the /etc/hosts file to 'match' the IP address associated with the print queues. What I want to do is to run a traceroute with up to 5 hops, and perform an output to a file with some "specific items".... (0 Replies)
Hi,
Anyone knows why I can't display the contents of my directory and how to fix this?
http://i50.tinypic.com/4smfth.jpg
Thanks in advance for any advise.
Deanne
Double post. Continued here. (0 Replies)
Hello;
Am trying to correct the formatting of tail output over ssh.
Using the following code:
echo "" > $FILE
for BOX in $SERVERS
do
echo "Processing on $BOX" |tee -a $FILE
echo "===============================" >> $FILE
sudo ssh $BOX 'TERMINAL="vt100" /usr/bin/sh -s' <... (2 Replies)
Hello folks,
I've found an HP-UX server with a rare 'ls -l' output. Please see the attached file.
Anybody knows how can I change the output to not have this extra tabulations?
Thanks in advance! (10 Replies)
Hi Guys,
I am regular Solaris user. I came across a weird problem that puzzled me. Hope you guys can help. I found that process's state(command & arguments) in two different variants of ps command is different. Can anyone explain how is this possible?
bash-3.2$ ps -eLo pid,s,comm,args |... (2 Replies)
Discussion started by: brij123
2 Replies
LEARN ABOUT PHP
getnetpath
GETNETPATH(3) BSD Library Functions Manual GETNETPATH(3)NAME
getnetpath, setnetpath, endnetpath -- get /etc/netconfig entry corresponding to NETPATH component
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <netconfig.h>
struct netconfig *
getnetpath(void *handlep);
void *
setnetpath(void);
int
endnetpath(void *handlep);
DESCRIPTION
The routines described in this page provide the application access to the system network configuration database, /etc/netconfig, as it is
``filtered'' by the NETPATH environment variable (see environ(7)). See getnetconfig(3) for other routines that also access the network con-
figuration database directly. The NETPATH variable is a list of colon-separated network identifiers.
The getnetpath() function returns a pointer to the netconfig database entry corresponding to the first valid NETPATH component. The netcon-
fig entry is formatted as a struct netconfig. On each subsequent call, getnetpath() returns a pointer to the netconfig entry that corre-
sponds to the next valid NETPATH component. The getnetpath() function can thus be used to search the netconfig database for all networks
included in the NETPATH variable. When NETPATH has been exhausted, getnetpath() returns NULL.
A call to setnetpath() ``binds'' to or ``rewinds'' NETPATH. The setnetpath() function must be called before the first call to getnetpath()
and may be called at any other time. It returns a handle that is used by getnetpath().
The getnetpath() function silently ignores invalid NETPATH components. A NETPATH component is invalid if there is no corresponding entry in
the netconfig database.
If the NETPATH variable is unset, getnetpath() behaves as if NETPATH were set to the sequence of ``default'' or ``visible'' networks in the
netconfig database, in the order in which they are listed.
The endnetpath() function may be called to ``unbind'' from NETPATH when processing is complete, releasing resources for reuse. Programmers
should be aware, however, that endnetpath() frees all memory allocated by getnetpath() for the struct netconfig data structure.
RETURN VALUES
The setnetpath() function returns a handle that is used by getnetpath(). In case of an error, setnetpath() returns NULL.
The endnetpath() function returns 0 on success and -1 on failure (for example, if setnetpath() was not called previously). The nc_perror()
or nc_sperror() function can be used to print out the reason for failure. See getnetconfig(3).
When first called, getnetpath() returns a pointer to the netconfig database entry corresponding to the first valid NETPATH component. When
NETPATH has been exhausted, getnetpath() returns NULL.
SEE ALSO getnetconfig(3), netconfig(5), environ(7)BSD April 22, 2000 BSD