Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by nychris

  1. nychris

    Looking for real-time replication software

    DRBD will do exactly as you are asking. It's like having a RAID 1 mirror over the network. http://www.drbd.org/
  2. nychris

    continuously monitor program

    FYI, forgot to include this in the original post. If I change the program to monitor another perl script and add "$| = 1" in the other perl script, this works. I need to do the equivalent in the systemtap script somehow. Thanks!
  3. nychris

    continuously monitor program

    Typo above, I forgot the pipe. This only prints when the command exits, not in real time. open(STAP, "/root/loop.stp |"); while ( <STAP> ) { print; } -- Chris RHCE, SCSA, AIX5L, LPIC, CNE, CCNA, MCSE
  4. nychris

    continuously monitor program

    I have a systemtap script (loop.stp) that continuously runs and prints output periodically. I want to monitor this output from a perl script. Why does this code below not print anything? If I change this to /bin/ps, it does print the entire output when the command exits. I need it to print...
  5. nychris

    Apache rewrite SSL requests

    I was able to get this working well enough for what we need it for. I just need to redirect all SSL requests to the same page. I got this working by adding the following to the <VirtualHost _default_:443> section. RewriteEngine on RewriteCond %{HTTPS} =on RewriteRule ^(.*)...
  6. nychris

    Apache rewrite SSL requests

    The code you posted doesn't seem to do anything. The code I originally posted I have in the default section that handles port 80 requests. If I put the same request in the httpd.d/ssl.conf file under the <VirtualHost _default_:443> section, all requests just hang in Internet Explorer. If I...
  7. nychris

    Apache rewrite SSL requests

    tarn, what I have above already does that. My issue is that it does not work for SSL requests. For example, a user goes to https://www.foo.org/blablabla. How do I redirect that to another page? It only works for http, not https.
  8. nychris

    Apache rewrite SSL requests

    I'm trying to redirect all requests on a server to a single page that informs the users that the website has been retired. I put this code in the httpd.conf file: RewriteEngine on RewriteRule /* https://www.foo.org/Server_Retire_Prompt.html [R] This works as expected for all standard...
  9. nychris

    sar command time display format

    You are right! Looking at the locale output I was able to determine that setting this variable will force sar to display it's output in 24-hour times. export LC_TIME="POSIX" Thanks Annihilannic! I remember you from 8 years ago back when I was very active on the board under the now retired...
  10. nychris

    sar command time display format

    I just checked and all of the servers have the same values in /etc/sysconfig/i18n, yet some display a 12-hour format while others a 24-hour format. -- Chris RHCE, SCSA, AIX5L, LPIC, CNE, CCNA, MCSE
  11. nychris

    EMC file systems did mount automatically after addition of _netdev

    You do not need 'mount -a' in your /etc/rc.local in order for filesystems mounted with _netdev in /etc/fstab to mount automatically. Adding 'mount -a' to rc.local is the equivalent of mounting them manually. I'm not saying it won't work, but you have another issue going on that is preventing...
  12. nychris

    sar command time display format

    I have a few systems that are the same operating system (RHEL 5.6) and all have the same version of sar installed (sysstat-7.0.2-3.el5_5.1). On some systems, the time is shown in 12-hour format. serverA# sar -r | head -4 12:00:01 AM kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree...
  13. nychris

    sort packages by install date

    The simple 'ls -lt /var/sadm/pkg' you posted should work fine. Thanks, I didn't think of that!
  14. nychris

    sort packages by install date

    Is there a built-in command in Solaris that will list all installed packages sorted by the date they were installed? You can do this easily on RPM-based Linux systems by using the code below. I'm looking for an equivalent command in Solaris, if one exists. # rpm -qa --last | head...
  15. nychris

    writing to multiple file handles at once

    Great suggestion! Thanks Annihilannic! :)

Part and Inventory Search

Back
Top