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.
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...
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]#...
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
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
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...
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...
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...
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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.