After further investigation and research, I created the following
for /F "tokens=3 delims=: " %%H in ('sc query "vpxd" ^| findstr "STATE"') do (
if /I "%%H" NEQ "RUNNING" (
net start "vpxd"
)
)
for /F "tokens=3 delims=: " %%H in ('sc query "vctomcat" ^| findstr "STATE"') do (
if /I...
Hello,
Thanks-in-advance first off for reading this.
I need a windows script, that will run on Windows Server 2008 R2 Standard Edition, that will check if 2 processes (vpxd.exe and tomcat6.ext) are running. If they are not running, I need the script to start either one (or both).
I have 0...
Hello All,
While I think I already know the answer to this, I have a Lenovo T410 with a dock (1 VGA & 1 DVI output) and 2 external 22" monitors. I successfully have the external monitors running, but I cannot get the laptop monitor to work in conjunction with both external monitors. Is there...
Hello All,
I am connected to an exchange server at work, but I accidentally dragged a parent folder into a child folder (and yes, it let me). Even though I hit cancel very quickly it nested thousands upon thousands of folders into each other.
The problem I have is that the hard limit for...
HOST1:~ # service syslog status
Checking for service syslog: running
HOST1:~ # logger -p kern.notice "another test"
HOST1:~ # cd /var/log/
HOST1:/var/log # grep -iR "another test" *
HOST1:/var/log #
I then went and ran HOST1:/var/log # ps -ef|grep...
so I tried
# Enable this, if you want to keep all messages in one file:
# (don't forget to provide logrotation config)
#
#destination allmessages { file("/var/log/allmessages"); };
#log { source(src); destination(allmessages); };
destination d_ldap { file("/var/log/ldap.log"); };
filter f_ldap...
# Enable this, if you want to keep all messages in one file:
# (don't forget to provide logrotation config)
#
#destination allmessages { file("/var/log/allmessages"); };
#log { source(src); destination(allmessages); };
destination d_ldap { file("/var/log/ldap.log"); };
filter f_ldap {...
I tried all three of those recommendations, and nothing is being logged.. destination d_ldap { file("/var/log/ldap.log"); };
filter f_ldap { facility(local4) and level(info..emerg); };
log { source(src); filter(f_ldap); destination(d_ldap); };
This did not throw any errors, but it also did not create the logs (I restart the syslog daemon as well as ldap).
I tried a very similar setup in syslog-ng yesterday with no luck.
I run OpenLDAP on a SLES10 box and as it uses "syslog-ng.conf" rather than "syslog.conf" I am having difficulty configuring ldap to log. If this were a "syslog.conf" file I would simply add local4.* /var/log/ldap.log, but as it is not, how do I add this to "syslog-ng.conf
I am writing script to read through a bunch of data, the script is below
#!/bin/bash
rm -f output.out
files=`find -name hgrc`
for file in $files ; do
srch=`grep -iq "[hooks]" $file`
if [ "$srch" == "0" ] ; then
echo $file >> output.out
fi
done
essentially, it is looking through the hgrc...
To rephrase this question.
I have control over domain: m.ichael.com. My friend Joe has domain j.oe.com. I am hosting some data for joe in my environment and I want to set my DNS to override the public DNS systems (my DNS only works for internal traffic) so that if I go to 'ssh...
Hello,
I have RHEL 5.7 running BIND in my environment and I need assistance in configuring a new change.
Currently "domain.com" is us, and our IP Schema is 10.28.140.x. I have been asked to override a few servers that belong to "otherdomain.com" and use the IP Schema 10.96.13.x.
Our...
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.