06-02-2010
I have tried command netconfig when login as single mode, but could not get the driver from there, anyhelps?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hiya all,
How do I get the IP address of my local unix box???
IPconfig - don't exist
nslookup - only for other boxes....
I have my Fedora Server now on the office network. Can ping others, can get onto internet via web proxy....
Also:
How do I create a Drive Share, so our windows... (9 Replies)
Discussion started by: marty 600
9 Replies
2. IP Networking
I have purchased a Dec unix Ver 3.2c machine that is about ten years old. I need to get this machine on our network (windows 2003 domain) so I can copy files to it. I know I need to change the IP address, but where and how do I change it? What else do I chang?
Thanks Randy (8 Replies)
Discussion started by: randy1
8 Replies
3. Shell Programming and Scripting
Hi,
I want to know the IP of my Unix server in my script programming.
Below are the my trial and i didn't find anything useful for me.because i want only IP.
hostname -> Giving the name of the server and
hostanme -i -> Giving the error message that..i am not super user.
ipConfig ->... (7 Replies)
Discussion started by: Balamani
7 Replies
4. UNIX for Dummies Questions & Answers
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
5. Shell Programming and Scripting
We have requirement to get the local system IP address of whoever logined the DataBase(sqlplus) or any process in application server.
Actually I connected to application server thru putty and then conencted to Database using sqlplus command.
we have tried below commands :
who -u|grep... (4 Replies)
Discussion started by: siri_886
4 Replies
6. Debian
Hi ,
when i configure my server with a fixed ip address in dhcpd.conf as below
subnet 172.21.151.0 netmask 255.255.255.0 {
range 172.21.151.66 172.21.151.66;
}
host switch {
hardware ethernet 00:05:30:02:DB:31;
fixed-address 172.21.151.66;
}
when i start dhcpd server , it... (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Using Redhat 6.1 with all the latest patches. I have the default gateway address but it never gets loaded. I have to add that manually? Not sure. Any idea. Is there any other place which I need to add?
/etc/sysconfig/network-scripts/ifcfg-em1
DEVICE="em1"... (2 Replies)
Discussion started by: samnyc
2 Replies
8. UNIX for Advanced & Expert Users
Hi All,
Can we send a mail in unix blank in TO address with CC and BCC.
TO address should be blank
CC should not be blank
BCC should not be blank
thanks, (7 Replies)
Discussion started by: kiranparsha
7 Replies
9. Post Here to Contact Site Administrators and Moderators
We work hard to make The UNIX and Linux Forums one of the best UNIX and Linux knowledge sources on the net. The site is certainly one of the top UNIX and Linux Q&A sites on the web. In order to provide certain members the best quality account services, you can now get some great extra features by... (2 Replies)
Discussion started by: Neo
2 Replies
LEARN ABOUT MOJAVE
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