Package: update-cluster
Version: 0.41.5-4
Severity: wishlist

It would be useful to match on more then just the "master" notes strings.
We have for instance the situation that we'd like to keep ipmi management
interfaces in the cluster.xml database, but it would not make sense to
write them into a mpich machines.LINUX file for instance.  So some
more flexible filtering would be needed.  I propose to implement (patch
appended) a --notes argument for update-cluster-remove.

Attachment: pgpgVchyAPKPq.pgp
Description: PGP signature

--- update-cluster-0.41.5.orig/update-cluster-remove.c
+++ update-cluster-0.41.5/update-cluster-remove.c
@@ -71,6 +71,7 @@
   static struct option long_options[]=
   {
     {"ip", required_argument, 0, 'i'},
+    {"notes", required_argument, 0, 'o'},
     {"master", no_argument, 0, 'm'},
     {"mac", required_argument, 0, 'c'},
     {"not", no_argument, 0, 'n'},
@@ -87,6 +88,9 @@
 	case 'i':
 	  remove_parameter_list = add_to_list (remove_parameter_list, "ip", optarg);
 	  break;	  
+	case 'o':
+	  remove_parameter_list = add_to_list (remove_parameter_list, "notes", optarg);
+	  break;
 	case 'm':
 	  remove_parameter_list = add_to_list (remove_parameter_list, "notes", "master");
 	  break;
@@ -104,8 +108,8 @@
 	  break;
 	case 'h':
 	  fprintf(stderr, _("update-cluster-remove by Junichi Uekawa 2001-2003\n\n"
-		  "update-cluster-remove [--ip ipaddr] [--not] [--master] [--bootmaster xx]...\n"
+		  "update-cluster-remove [--ip ipaddr] [--notes notes] [--not] [--master] [--bootmaster xx]...\n"
 		  "  parses an XML content, and outputs well-formatted XML output\n"
 		  
 		  "\n"
--- update-cluster-0.41.5.orig/update-cluster-remove.1.in
+++ update-cluster-0.41.5/update-cluster-remove.1.in
@@ -20,6 +20,9 @@
 .BI "--mac [" "MAC-address" "]"
 Specify the MAC address of the system to be removed from the list.
 .TP
+.BI "--notes [" "STRING" "]"
+Specify the content of notes of the system to be removed from the list.
+.TP
 .B "--master"
 Specify the nodes which have a 
 .B "notes"

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages update-cluster depends on:
ii  debconf [debconf-2.0]        1.5.9       Debian configuration management sy
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libdancer-xml0               0.8.2.1-3   simplistic and non-comformant xml 

update-cluster recommends no packages.

-- debconf information:
* update-cluster/read_nodes_number: 0
  update-cluster/read_node_info:

-- 
CYa,
  Mario | Debian Developer <URL:http://debian.org/>
  .''`. | Get my public key via finger [EMAIL PROTECTED]
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-      <URL:http://delysid.org/>  <URL:http://www.staff.tugraz.at/mlang/>

Reply via email to