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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. zhenning

    A hidden folder made in Vista cannot be seen in DOS

    Sorry I didn't know that c:\Perflogs is a system folder. So the hidden folder under c:\Perflogs is deleted after system reinstallation. That is why I cannot see it.
  2. zhenning

    A hidden folder made in Vista cannot be seen in DOS

    Thanks, but I am still getting the same error "file not found". I am guessing somehow the hidden folder in Vista cannot be seen by DOS?
  3. zhenning

    A hidden folder made in Vista cannot be seen in DOS

    I am trying to copy some files out of a corrupted Vista system. I boot into Command Prompt mode using Windows 7 CD. I can copy most of the folders/files out. But I cannot see a hidden folder in Vista. I tried to remove the hidden attribute for this folder in DOS using following command but it...
  4. zhenning

    syslog-ng cannot start on Linux

    Our syslog-ng stopped working by itself and cannot start again: [root@scylla init.d]# /etc/init.d/syslog-ng status Checking for syslog-ng service: \033[31mdead but pidfile exists.\033[0m [root@scylla init.d]# /etc/init.d/syslog-ng start Starting syslog-ng: OK [root@scylla init.d]#...
  5. zhenning

    How to insert delay between two lines in Perl

    Thanks!
  6. zhenning

    How to insert delay between two lines in Perl

    I have a perl script which telnet to Cisco switches and apply commands. I want to insert a 20 seconds delay between the following two lines because it takes time for the switch to do "wri mem": $session->cmd('wri mem'); $session->cmd("store\n\n\n"); How can I do it? Thanks a lot! Zhenning
  7. zhenning

    how to return certain line of a file

    Thank you for all the applies! it worked for me!
  8. zhenning

    how to return certain line of a file

    For example, if the input of the script is 3, I need to get the 3rd line from the bottom of the file as the output. How can I make it? Thanks a lot! Zhenning
  9. zhenning

    Syslog Event Correlator(SEC) Error

    Please ignore this post. I fixed it. It was the file permission issue that the perl script cannot open the file.
  10. zhenning

    Syslog Event Correlator(SEC) Error

    We use SEC to generate network alerts and it just stopped working. I can see following logs in sec.log: Wed Oct 8 10:26:28 2008: Creating event 'dist-jnhn line protocol on GigabitEthernet10/16 down at Oct 8 10:26:12' Wed Oct 8 10:26:28 2008: Executing shell command '/usr/bin/perl -w...
  11. zhenning

    How to rotate syslog files

    That is the problem. Thank you very much for all the helps! Zhenning
  12. zhenning

    How to rotate syslog files

    I just checked /var/mail/root file and I found the error: /etc/cron.hourly/logrotate: error: syslog_cisco_fwsm.old:1 duplicate log entry for /var/log/cisco_fwsm.log I think the problem is when I modified the /etc/logrotate.d/syslog_cisco_fwsm file, I copied this file to syslog_cisco_fwsm.old...
  13. zhenning

    How to rotate syslog files

    Yes logrotate is under /etc/cron.hourly folder. So it should run hourly. Here is the logrotate and /etc/logrotate.conf files: [root@scylla cron.hourly]# cat logrotate #!/bin/sh /usr/sbin/logrotate /etc/logrotate.conf EXITVALUE=$? if [ $EXITVALUE != 0 ]; then /usr/bin/logger -t logrotate...
  14. zhenning

    How to rotate syslog files

    But the server is using msyslogd, not syslogd. I just wondering how it is configured to rotate and compress every hour. It is not working like that any more. Thanks!
  15. zhenning

    How to rotate syslog files

    It seems the current log files are rotate and compressed every hour. I do not how is that configured. Thanks! Zhenning
  16. zhenning

    How to rotate syslog files

    [root@scylla logrotate.d]# /usr/sbin/logrotate -v -f /etc/logrotate.d/syslog_cisco_fwsm reading config file /etc/logrotate.d/syslog_cisco_fwsm reading config info for /var/log/cisco_fwsm.log Handling 1 logs rotating pattern: /var/log/cisco_fwsm.log forced from command line (14 rotations)...
  17. zhenning

    How to rotate syslog files

    The cisco_fwsm.log was configured to rotate every hour but not it stopped to rotate every hour. It went all the way to 200M then msyslogd will stop. Where is the configuration to rotate every hour? Thanks! Zhenning
  18. zhenning

    How to rotate syslog files

    I got: [root@scylla logrotate.d]# /usr/sbin/logrotate -d -f /etc/logrotate.d/syslog_cisco_fwsm reading config file /etc/logrotate.d/syslog_cisco_fwsm reading config info for /var/log/cisco_fwsm.log Handling 1 logs rotating pattern: /var/log/cisco_fwsm.log forced from command line (14...
  19. zhenning

    How to rotate syslog files

    We use msyslogd and it is now configured to rotate after 14 log files at /etc/logrotate.d/syslog_cisco_fwsm: /var/log/cisco_fwsm.log { size=200M rotate 14 postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true...
  20. zhenning

    msyslogd cannot start

    I figured it myself. The msyslog stopped because the log file is over 200M. I deleted the log file and restart the msyslod and it is running ok now. So now the question is why after changed the rotate to 70, it did not zip and rotate after the file went over 200M? Also it was zipped and rotate...

Part and Inventory Search

Back
Top