Dear all,
We are testing two of our servers for mq series connectivity. The scenario is, when one machine is shutting down it's services there are some scripts that do a dns update, which removes the ip address and relates it to the ip address of the other node on our dns server, and the update... (7 Replies)
Dear All
i have a linux proxy server which has RHEL-5 64 bit, it has two interfaces, it has the following details
eth0=10.200.14.42
eth3=10.201.14.42
default gateway=10.201.14.254
one static route=192.168.0.0/24 gw 10.200.14.254
i am facing a problem when i ping 10.201.14.42 from... (2 Replies)
Dear Friends,
Am an newbie to this domain. I have a table which is filled with contents which i need to be updated with,so am trying to design a flow which would read the data from the table and mail it to me at regular intervals. I could make out the flow using mailx command but want to... (3 Replies)
Man page of netlink says:
---------------------------------
NETLINK_ARPD
For managing the arp table in user space.
----------------------------------
Is it possible to monitor arp table using Netlink? or it's just for manipulating? (1 Reply)
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Can someone please explain this output to me. Why doesn't ifconfig show the same info?
~ $ arp -a
? (10.71.0.1) at 00:1b:21:2b:eb:0c on eth0 (4 Replies)
I am writing some portable code to print Interface, its IP address, and its MAC (Hardware) address. It is working on three platforms (viz, Linux, Solaris and HP-UX). However, it is creating problems on AIX.
The code is as follows:
Now the problem is that when I try to execute the... (1 Reply)
My script gives the following result. Is it possible to display the same in table format ?
1.
rex_best
Latest feeds are not avaialable. The last feed was generated on 2012-05-17
File Name = ekb_best_20120517_010949_665.tar.gz
The Number of entry elements = 4209539
2.
rex_genre
Latest... (2 Replies)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies
LEARN ABOUT OSF1
knlist
knlist(3) Library Functions Manual knlist(3)NAME
knlist - Look up symbols in the currently running kernel
LIBRARY
Standard C Library (libc.a, libc.so)
SYNOPSIS
#include <nlist.h>
int knlist(
struct nlist namelist);
PARAMETERS
On input, lists the symbol names for which you are requesting addresses. The namelist must be terminated with a null name at end. Without
a terminating null name at end, knlist() cannot determine how many symbols there are in the namelist and therefore it may dump core.
On return, contains a list of symbol addresses (or 0 if the attempt to find the addresses was unsuccessful).
DESCRIPTION
The knlist() library routine looks up addresses of kernel symbols in the currently running kernel. In addition to finding symbols associ-
ated with the kernel image, knlist() will also find symbols defined in dynamically loaded subsystems.
Communication with the knlist() routine occurs using an array of type struct nlist. The <nlist.h> header file declares that type as fol-
lows: struct nlist{
char *n_name;
unsigned long n_value;
short n_type; /* 0 if not there, 1 if found */
short reserved; };
When your application calls knlist() it passes the names of symbols in the n_name field of the structure.
For each symbol, the knlist() routine attempts to determine its current address in memory. If the routine can determine the address of the
symbol, it returns that address in the n_value field, and it returns one(1) in the n_type field. If the routine cannot determine the
address, it returns zero(0) in both the n_value field and the n_type field.
For BSD compatibility, the knlist routine allows symbol names to be preceded by an underscore. If it does not find a symbol that matches
the name as specified, knlist attempts to locate the symbol name with the leading underscore removed.
EXAMPLES
The following example illustrates the use of the knlist() routine: #include <stdio.h> #include <string.h> #include <stdlib.h> #include
<nlist.h> main () {
struct nlist nl[3];
int retval, i;
nl[0].n_name = (char *)malloc(10);
nl[1].n_name = (char *)malloc(10);
nl[2].n_name = "";
/*******************************************************/
/* Store names of kernel symbols in the nl array */
strcpy (nl[0].n_name, "ncpus");
strcpy (nl[1].n_name, "lockmode");
/*******************************************************/
/* Call the knlist routine */
retval = knlist(nl);
/******************************************************/
/* Display addresses if returned. Otherwise, display */
/* the appropriate error message. */
if (retval < 0)
printf ("No kernel symbol addresses returned.
");
else
if (retval >= 0 )
for (i=0; i<2; i++)
if (nl[i].n_type == 0)
printf ("Unable to return address of symbol %s
",
nl[i].n_name);
else
printf ("The address of symbol %s is %lx
",
nl[i].n_name, nl[i].n_value);
free (nl[0].n_name);
free (nl[1].n_name); }
This example tests the return value from the knlist() routine. If the routine returns an error status, a message is displayed to the
application user. Otherwise, the application checks the status of each kernel symbol. If the knlist() routine was unable to return an
address, the application displays a message and the symbol name. If the knlist() routine returns an address, the application displays the
symbol name and address to the application user.
RETURN VALUES
The knlist() routine returns zero on success. The routine returns -1 if it was unable to connect to the kloadsrv daemon. In this case,
the routine was unable to determine any of the requested addresses. The routine returns a positive integer if it successfully finds some
addresses and fails to find others. The integer value indicates the number of addresses knlist() was unable to return.
The routine returns the negative value of EINVAL if the argument is bad.
RELATED INFORMATION
Routines: nlist(3) delim off
knlist(3)