public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: master - cman: cman_tool status now shows node addresses again
@ 2009-01-12 14:00 Christine Caulfield
0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-01-12 14:00 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=096f7588fbb05e9a61515dc9661d98f7971afe58
Commit: 096f7588fbb05e9a61515dc9661d98f7971afe58
Parent: 784076fe27082d72b403dc652ccbd0049f14b72c
Author: Christine Caulfield <ccaulfie@redhat.com>
AuthorDate: Mon Jan 12 13:58:30 2009 +0000
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Mon Jan 12 13:58:30 2009 +0000
cman: cman_tool status now shows node addresses again
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
cman/cman_tool/main.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/cman/cman_tool/main.c b/cman/cman_tool/main.c
index be9af74..fc9a999 100644
--- a/cman/cman_tool/main.c
+++ b/cman/cman_tool/main.c
@@ -195,6 +195,8 @@ static void show_status(void)
char tmpbuf[1024];
cman_extra_info_t *einfo = (cman_extra_info_t *)info_buf;
cman_qdev_info_t qinfo;
+ int numaddrs;
+ struct cman_node_address addrs[MAX_INTERFACES];
int quorate;
int i;
int j;
@@ -246,6 +248,15 @@ static void show_status(void)
printf("Multicast addresses: %s\n", einfo->ei_addresses);
}
+ if (cman_get_node_addrs(h, CMAN_NODEID_US, MAX_INTERFACES, &numaddrs, addrs) == 0) {
+ printf("Node addresses: ");
+ for (i = 0; i < numaddrs; i++)
+ {
+ print_address(addrs[i].cna_address);
+ printf(" ");
+ }
+ printf("\n");
+ }
if (einfo->ei_flags & CMAN_EXTRA_FLAG_DISALLOWED) {
int count;
int numnodes;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-12 14:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-12 14:00 cluster: master - cman: cman_tool status now shows node addresses again Christine Caulfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).