Changeset 38
- Timestamp:
- May 22, 2006, 8:22:32 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/deploy.sh.in
r27 r38 245 245 export host 246 246 247 # hostgroup; empty default 248 # 249 hostgroup= 250 export hostgroup 251 247 252 248 253 # action; no default … … 432 437 echo 433 438 echo " --host=<FQDN> The host where you want to install." 439 echo " --group=<group> Optional group the host belongs to." 434 440 echo " --arch=<arch> The architecture/operating system of this host." 435 441 echo " This is used to get the correct binary package." … … 556 562 ;; 557 563 564 --group | -group) 565 opt_prev=hostgroup 566 ;; 567 568 --group=* | -group=*) 569 hostgroup="$optarg"; export hostgroup 570 ;; 571 558 572 # Build 559 573 -
trunk/docs/Changelog
r36 r38 1 * deploy.sh: allow to set a group for hosts upon installation 1 2 * patch by Yoann: fix an issue when setting the idmef_inode_t object 2 3 * fix memory leaks in error paths in sh_prelude.c -
trunk/dsys/funcINSTALL
r27 r38 62 62 echo " <client>" 63 63 echo " <client_host>${host}</client_host>" 64 echo " <client_group>${hostgroup}</client_group>" 64 65 echo " <client_os_machine>${arch}</client_os_machine>" 65 66 echo " <client_install_status>${install_entry}</client_install_status>" … … 172 173 if test "x$?" = "x1" 173 174 then 175 # 176 # Write the full entry when client_os_machine is found 177 # 174 178 case "$line" in 175 179 *\<client_os_machine\>*\</client_os_machine\>) 180 echo " <client_group>${hostgroup}</client_group>" >>"${tmpF}" 176 181 echo " <client_os_machine>${arch}</client_os_machine>" >>"${tmpF}" 177 182 echo " <client_install_status>${install_entry}</client_install_status>" >>"${tmpF}" … … 182 187 ;; 183 188 189 *\<client_group\>*\</client_group\>) 190 : 191 ;; 192 184 193 *\<client_install_status\>*\</client_install_status\>) 185 # echo " <client_install_status>${install_entry}</client_install_status>" >>"${tmpF}"186 194 : 187 195 ;; 188 196 189 197 *\<client_install_date\>*\</client_install_date\>) 190 # echo " <client_install_date>${IDATE}</client_install_date>" >>"${tmpF}"191 198 : 192 199 ;; 193 200 194 201 *\<client_install_name\>*\</client_install_name\>) 195 # echo " <client_install_name>${SH_NAME}</client_install_name>" >>"${tmpF}"196 202 : 197 203 ;; 198 204 199 205 *\<client_install_prefix\>*\</client_install_prefix\>) 200 # echo " <client_install_prefix>${SH_PREFIX}</client_install_prefix>" >>"${tmpF}"201 206 : 202 207 ;; 203 208 204 209 *\<client_install_version\>*\</client_install_version\>) 205 # echo " <client_install_version>${src_version}.${realformat}</client_install_version>" >>"${tmpF}"206 210 : 207 211 ;; … … 247 251 printINFO "Write ${DATABASE} from scratch" 248 252 echo '<?xml version="1.0" encoding="ISO-8859-1"?>' >"${tmpF}" 249 echo '<!DOCTYPE yule_db SYSTEM "http://la-samhna.de/yule_db-0. 1.dtd">' \253 echo '<!DOCTYPE yule_db SYSTEM "http://la-samhna.de/yule_db-0.2.dtd">' \ 250 254 >>"${tmpF}" 251 255 echo "<yule_db>" >>"${tmpF}" -
trunk/scripts/README
r29 r38 1 1 2 2 3 This directory contains miscellaneous useful scripts, mostlycontributed3 This directory contains miscellaneous useful scripts, some of them contributed 4 4 by various users. Additions and/or improvements are welcome. 5 5 … … 102 102 103 103 104 samhain-scripts/ Administrative scripts by105 ---------------- Simon Bailey <simon.bailey@uibk.ac.at> and106 Michael Redinger <michael.redinger@uibk.ac.at>107 108 You may need to adjust some of the variables in the109 top lines of these scripts.110 111 samhain.table.rotate.pl: Move old entries from mysql log table to a112 backup table113 114 samhain-admin: Interactive script to (1) clear log entries in SQL database,115 (2) re-initialize file database of remote client, or (3) add116 a new host.117 This script requires that you are using samhains deploy118 system (i.e. the deploy.sh script et al.).119 Re-initialize will stop the daemon on the remote host,120 create a temp dir for the database, run samhain -t init,121 copy the database to the server, and clear the mysql log for122 this host.123 124 samhain.clearhost: Helper script for samhain-admin.125 104
Note:
See TracChangeset
for help on using the changeset viewer.