02-07-2008
ypbind wont bind?
Well one problem down and another just pops up. I run ypbind and I see
Starting NIS service: [OK ]
Binding NIS service: [FAILED]
Shutting down NIS service: [OK ]
To my knowledge everything is configured properly.
I ran tcpdump on the machine running ypserv to see what was happening and here was the output (well the cleaned up version):
17:52:51.262128 IP node2.746 > head.node.sunrpc: UDP, length 56
17:52:51.262408 IP head.node.sunrpc > node2.746: UDP, length 28
17:52:51.262875 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
17:52:56.262364 arp who-has node2 tell head.node
17:52:56.262505 arp reply node2 is-at 00:0b:db:5a:57:36 (oui Unknown)
17:52:56.262749 IP node2.fujitsu-dev > head.node.sunrpc: UDP, length 56
17:52:56.262935 IP head.node.sunrpc > node2.fujitsu-dev: UDP, length 28
17:52:56.263503 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
17:53:01.262628 IP node2.ris-cm > head.node.sunrpc: UDP, length 56
17:53:01.262832 IP head.node.sunrpc > node2.ris-cm: UDP, length 28
17:53:01.263122 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
17:53:06.262502 IP node2.749 > head.node.sunrpc: UDP, length 56
17:53:06.262708 IP head.node.sunrpc > node2.749: UDP, length 28
17:53:06.263244 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
17:53:11.262374 IP node2.kerberos-iv > head.node.sunrpc:
17:53:11.262691 IP head.node.sunrpc > node2.kerberos-iv:
17:53:11.263117 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
17:53:16.262246 IP node2.kerberos_master > head.node.sunrpc: UDP, length 56
17:53:16.262456 IP head.node.sunrpc > node2.kerberos_master: UDP, length 28
17:53:16.262740 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
17:53:21.262120 IP node2.passwd_server > head.node.sunrpc: UDP, length 56
17:53:21.262317 IP head.node.sunrpc > node2.passwd_server: UDP, length 28
17:53:21.262863 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
17:53:26.261993 IP node2.754 > head.node.sunrpc: UDP, length 56
17:53:26.262204 IP head.node.sunrpc > node2.754: UDP, length 28
17:53:26.262486 IP node2.filenet-nch > head.node.nlogin: UDP, length 108e
17:53:31.261615 IP node2.755 > head.node.sunrpc: UDP, length 56
17:53:31.261821 IP head.node.sunrpc > node2.755: UDP, length 28
17:53:31.262369 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
17:53:36.261489 IP node2.756 > head.node.sunrpc: UDP, length 56
17:53:36.261704 IP head.node.sunrpc > node2.756: UDP, length 28
17:53:36.261982 IP node2.filenet-nch > head.node.nlogin: UDP, length 108
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, like a lot of people that post here, I am new at UNIX. The only UNIX I have ever messed with is my iBook running MacOSX (10.1). I have a grasp of the basic commands and understanding of the system but only to a point.
I searched the archive and FreeBSD.org and apache.org but I couldn't find... (4 Replies)
Discussion started by: Alpha_Harblo
4 Replies
2. UNIX for Dummies Questions & Answers
I know this may not be the right forum, but here goes.
Last night I was playing my favorite game Everquest and my monitor goes blank... I was able to save out of my game and shut it down...
My question is this: I thought my monitor had died but this morning I was able to get it to come back... (6 Replies)
Discussion started by: Kelam_Magnus
6 Replies
3. Solaris
check this out
ls -l nmo*
-rwsr-s--- 1 root dba 19312 Mar 31 14:44 nmo
-rw-r----- 1 oracle dba 0 May 19 2004 nmo0
-rwxr-x--- 1 oracle dba 16512 Mar 31 14:44 nmocat
# rm nmo0
nmo0: No such file or directory
# id
uid=0(root) gid=1(other)
what... (8 Replies)
Discussion started by: csaunders
8 Replies
4. Solaris
Today I attempted to use SMC for the first time on SUNSVR01 since 4 November. The SMC toolbox loads just fine but when I attempt to run any of the tools in SMC, I get red stop signs with labels like "com.sun.admin.hostmgr.client.vhostmgr" in the GUI. At the bottom of the screen, I get the... (0 Replies)
Discussion started by: wjseaman
0 Replies
5. Solaris
I have built this Solaris 10 server, uses NIS. When the server starts up, two instances of ypbind start. This prevents the server from binding to any domain. The SMF in turn prevents any other network services (sshd and the like) from starting up.
Has anyone seen this problem before? (0 Replies)
Discussion started by: blowtorch
0 Replies
6. HP-UX
I am new to HP-UX. I have a external SCSI drive with HP-UX on it. I was trying to clone it to another external scsi drive. I added the new drive to existing LVM. Then I used dd command. But it failed with I/O error. Now I cannot boot it from original drive. It's saying panic: LVM: Configuration... (11 Replies)
Discussion started by: forhad
11 Replies
7. HP-UX
Hi,
How to start or stop ypbind on HP-UX machine.
Searched a little but could not find.
thanks, (2 Replies)
Discussion started by: jredx
2 Replies
8. AIX
hello ,
How do i to check the status of ypbind on AIX(5.3) platform ?
Thanks
AVK Linux (1 Reply)
Discussion started by: avklinux
1 Replies
9. Shell Programming and Scripting
$ ls -l
total 44
drwx------ 2 ivanachu users 512 Dec 6 19:15 VILEARN
-rw------- 1 ivanachu users 74 Dec 5 18:42 cond
-rwx------ 1 ivanachu users 97 Dec 5 21:30 cond2
-rwxrwxrwx 1 ivanachu users 4979 Feb 10 22:42 createHAqmgr.ksh
-rw------- 1 ivanachu users 28 Dec 4... (10 Replies)
Discussion started by: ivanachukapawn
10 Replies
LEARN ABOUT NETBSD
rb_tree_find_node_leq
RBTREE(3) BSD Library Functions Manual RBTREE(3)
NAME
rbtree -- red-black tree
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/rbtree.h>
void
rb_tree_init(rb_tree_t *rbt, const rb_tree_ops_t *ops);
void *
rb_tree_insert_node(rb_tree_t *rbt, void *rb);
void
rb_tree_remove_node(rb_tree_t *rbt, void *rb);
void *
rb_tree_find_node(rb_tree_t *rbt, const void *key);
void *
rb_tree_find_node_geq(rb_tree_t *rbt, const void *key);
void *
rb_tree_find_node_leq(rb_tree_t *rbt, const void *key);
void *
rb_tree_iterate(rb_tree_t *rbt, void *rb, const unsigned int direction);
DESCRIPTION
rbtree provides red-black trees. A red-black tree is a binary search tree with the node color as an extra attribute. It fulfills a set of
conditions:
1. Every search path from the root to a leaf consists of the same number of black nodes.
2. Each red node (except for the root) has a black parent.
3. Each leaf node is black.
Every operation on a red-black tree is bounded as O(lg n). The maximum height of a red-black tree is 2lg (n+1).
TYPES
rb_tree_t
A red-black tree.
typedef signed int (*const rbto_compare_nodes_fn)(void *context, const void *node1, const void *node2);
The node-comparison operator. Defines an ordering on nodes. Returns a negative value if the first node node1 precedes the second
node node2. Returns a positive value if the first node node1 follows the second node node2. Returns 0 if the first node node1 and
the second node node2 are identical according to the ordering.
typedef signed int (*const rbto_compare_key_fn)(void *context, const void *node, const void *key);
The node-key comparison operator. Defines the order of nodes and keys. Returns a negative value if the node node precedes the key
key. Returns a positive value if the node node follows the key key. Returns 0 if the node node is identical to the key key accord-
ing to the ordering.
rb_tree_ops_t
Defines the operator for comparing two nodes in the same tree, the operator for comparing a node in the tree with a key, the offset
of member rb_node_t within a node, and the opaque context passed to the operators. Members of rb_tree_ops_t are
rbto_compare_nodes_fn rbto_compare_nodes;
rbto_compare_key_fn rbto_compare_key;
size_t rbto_node_offset;
void *rbto_context;
rb_node_t
A node in a red-black tree has this structure as a member.
FUNCTIONS
rb_tree_init(rbt, ops)
Initialize the red-black tree rbt. Let the comparison operators given by ops define the order of nodes in the tree for the purposes
of insertion, search, and iteration. rb_tree_init() always succeeds.
rb_tree_insert_node(rbt, rb)
Insert the node rb into the tree rbt. Return inserted node on success, already existing node on failure.
rb_tree_remove_node(rbt, rb)
Remove the node rb from the tree rbt.
rb_tree_find_node(rbt, key)
Search the tree rbt for a node exactly matching key. If no such node is in the tree, return NULL. Otherwise, return the matching
node.
rb_tree_find_node_geq(rbt, key)
Search the tree rbt for a node that exactly matches key and return it. If no such node is present, return the first node following
key or, if no such node is in the tree, return NULL.
rb_tree_find_node_leq(rbt, key)
Search the tree rbt for a node that exactly matches key and return it. If no such node is present, return the first node preceding
key or, if no such node is in the tree, return NULL.
rb_tree_iterate(rbt, rb, direction)
If direction is RB_DIR_LEFT, return the node in the tree rbt immediately preceding the node rb or, if rb is NULL, return the last
node in rbt or, if the tree is empty, return NULL.
If direction is RB_DIR_RIGHT, return the node in the tree rbt immediately following the node rb or, if rb is NULL, return the first
node in rbt or, if the tree is empty, return NULL.
CODE REFERENCES
The rbtree interface is implemented in common/lib/libc/gen/rb.c.
SEE ALSO
queue(3), tree(3)
HISTORY
The rbtree interface first appeared in NetBSD 6.0.
AUTHORS
Matt Thomas <matt@NetBSD.org> wrote rbtree.
Niels Provos <provos@citi.umich.edu> wrote the tree(3) manual page. Portions of this page derive from that page.
BSD
August 19, 2012 BSD