Changeset 2052 for trunk/lvs/debian/config
- Timestamp:
- Nov 13, 2011, 10:49:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lvs/debian/config/etc/ha.d/ldirectord-http.sh
r2051 r2052 21 21 " 22 22 echo "<html><head><title>scripts.mit.edu server status</title></head><body><h1>scripts.mit.edu server status</h1><p>The following table shows a list of the servers that are currently handling web requests for scripts.mit.edu:</p><table>" 23 /sbin/ipvsadm | sed 's/:0//; s/:Port//' | awk 'BEGIN { OFS="</td><td>" } /^FWM 2 /,/^FWM [^2] / { if (/->/) print "<tr><td>" $2, $4, $5, $6 "</td></tr>"}'23 /sbin/ipvsadm | sed 's/:0//; s/:Port//' | awk 'BEGIN { OFS="</td><td>"; show=1 } /^FWM 2 / { show=1 } /^FWM [^2] / { show=0 } /->/ { if (show==1) print "<tr><td>" $2, $4, $5, $6 "</td></tr>"}' 24 24 echo "</table></body></html>"
Note: See TracChangeset
for help on using the changeset viewer.