Stream propagation Healt Check Script
Hi,
We are working in a Local Capture Proccessing.
We have two servers (Server1: Master, Server2: Satellite. When we run the Stream HC Script get the following results for SCHEDULE FOR EACH PROPAGATION.
http://subefotos.com/ver/?2e4660f0841f08271724853614f72d12o.png
We have two propagation with the same name, one disabled (with 17 failures) and other enabled. Is possible delete the disabled propagation?
Version: 10.2.0.4 x64
Thanks
Edited by: 977505 on Dec 18, 2012 3:36 AM
Edited by: 977505 on Dec 18, 2012 3:41 AM
Yes, you can drop disable propagation using drop_propagation package.
Similar Messages
-
Health check script suggestions...
I used the health check script from metalink and it gave me few suggestion regarding my replication environment. One of them is ...
+ SUGGESTION: One or more propagation processes contain rule sets.
+ If a Propagation process will unconditionally forward all incoming
+ messages to its destination queue, and no rule-based transformations are
+ performed by the Propagation process, you should consider removing
+ the rule set for the Propagation process via dbms_propagation_adm.alter_propagation.
+ This will improve Propagation performance.
What is get from this is since i have same rule defined in propagation also as the one in capture, So suggestion from orcale is remove the propagation rule and let everything propagted through...anyhow since i want everything a capture process captures to be replicated on destenation.. so i removed the propagation rule. ..
But now the replication has stoped performing after that.....
can any one suggest me if my undersanding for above healthcheck suggestion is wrong then wht does it mean?
KapilDid you remove both the rule AND the rule set, or did you remove only the rule?
If it was a positive rule set and you removed only the rule, you left an empty rule set as a positive rule set for the propagation. This will cause it to discard all messages.
An empty positive rule set is not the same as no (null) positive rule set. A null rule set means "forward all messages, since there is not filter rule", but an empty rule set means "there is a rule: that no message will be forwarded".
Ilidio. -
My super simple ip checking script
i have a small home network with a PC running arch that acts as a NAT router; in the near future i am planning on setting up VPN access on this arch box. i would assume that it is imperative to know the external IP address of the router in order to connect. my ISP is comcast (cable) and they seem to be rather active in changing my DHCP'd address i get from them (in the past 6 months i have had 3 different ones). so i wrote this bash script that runs in the background and monitors the IP of the external interface. its pretty self explanatory; the mails to "vtext.com" are so i can have it texted to me. pointers would be welcome. i am not particularly a programmer, much more just an admin. the awk stuff seems messy, like there should be an easier way to isolate strings than that.... but idk. i run it
#!/bin/bash
# IP CHECK 2.0 (file name/path: /etc/scripts/ipcheck)
# runs in the background and
# requires sleep, mailx & ifconfig
# assumes external interface named "eth0"
# current ip output file path - single-line file containing current address (needs to be writable)
OPATH="/var/ipcheck/currentip"
# Amount of seconds to wait between checks
WAITSECS=300 # 5 mins
# Read previous IP from specified $OPATH file, if it's there
if [ -f "$OPATH" ]; then
OLDIP=`cat $OPATH`;
fi
# Begin main program loop
while :
do
# retrieve new ip using ifconfig
NEWIP=`/sbin/ifconfig eth0 | awk 'BEGIN{FS="inet ";RS=" netmask"}/</{print $2}' | tr -d '\\n' | tr -d ' '`
# print whatever was awk'd and the current date/time to tty11
echo "========= $NEWIP -- `date`" >> /dev/tty11
# if a different NEW IP is detected AND it isn't a null value, then do the following:
# * write the new address out to the OPATH file, replacing the previous value
# * e-mail the new address to my phone via vtext.com
# * e-mail both the old and new addresses to my main e-mail account
# * reset the $OLDIP value as the new one
if [[ "$OLDIP" != "$NEWIP" && "$NEWIP" != "" ]]; then
echo $NEWIP > $OPATH
echo "======= New Address - Old IP: $OLDIP ---- New IP: $NEWIP" >> /dev/tty12
echo "New IP: $NEWIP" | /usr/bin/mailx [email protected]
echo "Old IP: $OLDIP" | /usr/bin/mailx -s "New IP: $NEWIP" [email protected]
OLDIP=$NEWIP
fi
# pause in between checks, then start again
sleep $WAITSECS
donefalconindy wrote:
Isola wrote:
Here's my IP checking script, modified for mailx
#!/bin/bash
curl ifconfig.me | read IP
[ "x$IP" == "x`tail -n1 /tmp/wanip`" ] && exit 0
echo New IP: $IP
echo -n Old IP:
cat /tmp/wanip
echo -n Number of times you had this IP before:
grep $IP /tmp/wanip | wc -l
} | mailx -s "New IP: $IP" [email protected] [email protected]
echo $IP >> /tmp/wanip
This can't possibly work as is... The assignment in the first line happens in a subshell. It's going to be blank in the rest of the script.
Okay I admit, I just wrote that without testing it
edit:
The 2nd line can be changed for this:
read IP < <(curl ifconfig.me) || exit $?
Or
IP=$(curl ifconfig.me) || exit $?
Last edited by Isola (2012-07-01 00:59:39) -
How to use dreamweaver to check scripts.
I am both new to scripting and in using dreamweaver, I n
eed to be able to copy an asp code and paste in dreamweaver and c
ontinue with it, can anyone please help me on how to do this? , I a
m testing dream weaver cs4I don't understand your subject line, "How to use dreamweaver to check scripts". Can you explain what you mean by this?
>I need to be able to copy an asp code and paste in dreamweaver and
>continue with it, can anyone please help me on how to do this?
You just copy the code from one page and paste into another. If you are having problems, you need to be more specific about what is not working. -
Hi all! I'm sure this one has been done to death, but with. It's a script to monitor a laptop battery and react accordingly. I wrote this for use with FVWM, to send out warning notices using libnotify when the battery gets too low. Since my laptop is quite old, the battery runs out quite quickly after getting to 25% capacity. The script backgrounds itself on being run. It starts when I begin an FVWM session, and I have FVWM kill the script when I logout.
Being a script it's easy to tweak to your particular requirements. The example below just warns, but it would be easy to have the script suspend or hibernate the system, or change the percentage charge at which the script performs different actions. I hope it's useful.
#!/bin/bash
# battery check script
# ====================
# Designed to be run continuously while WM is running
# Requires libnotify to be installed
ICONPATH=/home/rob/.fvwm/icons/24x18
BATDIR=/sys/class/power_supply/BAT0
NOTIFYSEND=/usr/bin/notify-send
if [ ! -x $NOTIFYSEND ]
then
exit 0
fi
# check every $CHECK seconds
CHECK=60
( while true
do
BATSTATE=`cat ${BATDIR}/status`
# Note valid BATSTATE values are: Charged, Charging, and Discharging
if [ "$BATSTATE" = "Discharging" ]
then
REM_CAP=`cat ${BATDIR}/charge_now`
FULL_CAP=`cat ${BATDIR}/charge_full`
CHARGE=`echo $(( $REM_CAP * 100 / $FULL_CAP ))`
if [ "$CHARGE" -lt "25" ]
then
$NOTIFYSEND -i $ICONPATH/battery_critical.png -u critical -t 30000 "battery critical" "Shutdown or connect power now"
sleep $CHECK
continue
fi
if [ "$CHARGE" -lt "30" ]
then
$NOTIFYSEND -i $ICONPATH/battery_low.png -u normal -t 20000 "battery low" "Connect power soon"
fi
sleep $CHECK
elif [ "$BATSTATE" = "Charged" ]
then
$NOTIFYSEND -i $ICONPATH/battery_full.png -u normal -t 20000 "battery fully charged" "Disconnect from power"
sleep $CHECK
else
sleep $CHECK
fi
done
# end of file
Edited 21/10/2011 to use /sys/class/power_supply/BAT0 instead of /proc/acpi/battery/BAT0
Last edited by Painless (2011-10-21 12:48:05)I'm not exactly sure what you're trying to accomplish; your script seems to me to be prone to high cpu-useage loops. If all you want is a warning message if your battery is low when your adaptor is not plugged in, then you could try the following script.
One caveat, I don't have a laptop and I don't know what the output of
acpi -b
looks like, so I don't know which field contains the battery charge info. In the script below, I'm guessing that it is field number 3, so if it is different than that, the script below is incorrect and will not work.
If you don't understand what I am talking about, run
acpi -b
on your laptop, and post the output for me.
#!/bin/bash
trap "exit" SIGINT SIGTERM
delay=60
warning=50
while :
do
adapter=$(acpi -a | grep on)
b=$(acpi -b | cut -d ' ' -f 3)
[[ -z "$adapter" && "$b" -lt "$warning" ]] &&
notify-send "WARNING - LOW BATTERY" "Battery has ${b}% left."
sleep $delay
done
Last edited by rockin turtle (2011-01-15 06:08:45) -
Hi all,
Oracle 9i, 10g, 11g
Can you share me your "health check" scripts which you have used in your PROD database and is proven to help you in carrying out your desired tasks being a good DBA :)
Does AWR be able to generate health check report?
Thanks a lot,
KinzKinsaKaUy? wrote:
Thanks sb,
http://www.orafaq.com/wiki/Scripts
Wow this one site is complete, But it will take years for me to read all these. And I dont know if this is for 8i, 9i, 10g, or 11g.
Can you tell me which of these scripts will list the Top 10 most resource consumers queries? in terms (CPU,Memory,I/O).If you enable SQL_TRACE prior to launching AWR report, then you capture EVERY SQL statement to build the report.
You could easily observe the answer to your question if you were only willing to actually did some lilttle work instead of asking to be spoon fed. -
Pre-requisite checker script for EBS R12 and R12.1
hi
is it possible to make a pre-requisite checker script (in perl or shell) for EBS R12 and R12.1 in RHEL5 or sun OS??
can anyone help / guide me to do so??
rgrdsI don't know about EBS R12, but apparently the Oracle Universal Installer can use options to just run the prerequisite checks without having to install the product.
E.g. /runInstaller -prereqChecker or -executeSysPrereqs
There is also a specific OTN forum available for installing E-Business suite:
LCM: 11i Install/Upgrade -
Check(Script) - Pageformat
Hi friends,
I need the pageformat to assign as exactly as to my Check script.Here,Im using only the check window as needed to print the check details same to my client bank cheque.So, as u aware, the height of the check size will be upto approx 8cm and my client are using the dot matrix serial print cheques(continuous one as rolling format).
Just reply me the exact pageformat.
****I've tested with available std INCH4/4C/2 and scheck formats but got no results.
Pls advise.
thanks & regards
sankar.Hi,
Solution for this problem will solve by your client, ask cleary the what the pageformat they are using. and by trail and error basis set the window heights, and Format the line, Paragrah, characer format.
Bye -
SAP Bundle Patches and Automatic Oracle parameter check script (note117165)
After reading SAP note 1027012 on SAP Bundle Patches and SAP note 1171650 on the
automatic Oracle parameter check script I have a simple question:
Is it still necessary to manually check whether some patch is installed in order to determine
exactly which event and fixcontrol to set?
Or is the automatic Oracle parameter check script so sophisticated that it is fully
sufficient to implement its recommendations, and you don't neet to manually
check any more which SBP with which bugfixes has been installed?
It would be great if SAP could confirm that the automatic parameter check is sufficient,
but so far I haven't seen this statement explicitly. I believe this is mostly because it
is so difficult (impossible?) to determine via SQL which patches have been applied.
Regards,
Mark>
> Is it still necessary to manually check whether some patch is installed in order to determine
> exactly which event and fixcontrol to set?
Yes and No.
until now, fixcontrol are dependent of CBO patches and those are "register" on the view v$system_fix_control. They can be "check" autmatically, so you get the "proper" recommendation for those.
the parameter event depends on different situations, like some patches. But those patches are "normal" patches and it is not possible to check if they are installed from inside the DB with a simple script. For those, the check script will tell you to do it manually and will tell you which patch has to be check
In addition, there are other parameters that have to be check "manually", like processes (where you get a "semiautomatic" check) or db_cache_size, where you should check if the size
> It would be great if SAP could confirm that the automatic parameter check is sufficient,
> but so far I haven't seen this statement explicitly. I believe this is mostly because it
> is so difficult (impossible?) to determine via SQL which patches have been applied.
The automatic parameter check is sufficient, meaning that you get all information, including the parameters that you have to check manually and some information for that check. Currently, it is not possible to automatize it 100% -
Bash Server Ping Checking Script
Posted this on my blog yesterday, but thought i'd share it here too.
I had alot of fun writing this little ping testing utility. It works/looks best if you have a color enabled terminal.
Could be easily modified to email you if the server failed. Anyway, just thought I'd share
#!/bin/bash
# Bash Server Ping Checking Script
# 09-24-2009 Crouse
# Pretty simple, add servers/ip's/Ln (line numbers) in the format shown in the two column examples.
# Tested with over 50 servers, worked for what I needed, thought i'd share :) ~~Crouse.
# Ideas --- ad another array for Headers. so Hn could print headers with bold/etc. Might be neat.
declare -a Sn # Server Name
declare -a Ip # IP address of server.
declare -a Ln # Line number to display on in Row1.
declare -a Sn2 # Server Name
declare -a Ip2 # IP address of server.
declare -a Ln2 # Line number to display on in Row2.
############################################################################### Server List Row 1
Sn[1]="usalug.org"
Ip[1]="67.15.6.98"
Ln[1]="6"
Sn[2]="archlinux.me"
Ip[2]="208.92.232.122"
Ln[2]="7"
############################################################################### Server List Row 2
Sn2[1]="usalug.org"
Ip2[1]="67.15.6.98"
Ln2[1]="6"
Sn2[2]="archlinux.me"
Ip2[2]="208.92.232.122"
Ln2[2]="7"
tput civis # Hide the cursor
maxcount=${#Sn[*]} #should report number of Servers listed in Sn variable
maxcount2=${#Sn2[*]} #should report number of Servers listed in Sn2 varialbe
clear
#tput setf 2; #echo -e '\e[1;33m'
echo " "
tput setf 0;tput setb 2;
echo " Bash Server Ping Checking Utility version 2.0 Crouse. "; #tput rmso;
tput setf 7; tput setb 0; # List out servers now.
for (( loop=1; $loop < $maxcount+1; loop++ ))
do
( tput cup ${Ln[$loop]} 10; echo "${Sn[$loop]}"; tput rc)
done
for (( loop2=1; $loop2 < $maxcount2+1; loop2++ ))
do
( tput cup ${Ln2[$loop2]} 50; echo "${Sn[$loop2]}"; tput rc)
done
# Set traps so when we exit the big loop stuff is normal again.
gracefulexit () {
tput cnorm;
tput setb 0;
echo "Stopping Application"
tput setf 2;
exit
trap gracefulexit INT TERM EXIT
# Begin big loop
while true
do
#First Row
for (( loop=1; $loop < $maxcount+1; loop++ ))
do
(tput sc ;tput setb 0; tput setf 0; tput cup 4 10 ;
echo "........................................................................";tput rc)
(tput sc ;tput setb 0; tput setf 6; tput cup 4 10 ;
echo "Checking ${Sn[$loop]} at IP: ${Ip[$loop]}" ; tput rc)
(tput sc ;tput setb 0; tput setf 0; tput cup ${Ln[$loop]} 1 ; echo "........." ; tput rc)
(tput sc ;tput setb 0; tput setf 6; tput cup ${Ln[$loop]} 1 ; echo "TESTING" ; tput rc)
count=$(ping -c 5 ${Ip[$loop]} | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
(tput sc ;tput setb 0; tput setf 0; tput cup ${Ln[$loop]} 1 ; echo "........." ; tput rc)
if [[ "$count" == [45] ]]; then
(tput sc ;tput setf 0; tput setb 2;tput cup ${Ln[$loop]} 5 ; echo " OK " ; tput rc)
else
if [[ "$count" == [123] ]]; then
(tput sc ;tput setf 0; tput setb 6; tput cup ${Ln[$loop]} 4 ; echo "ALERT" ; tput rc)
else
(tput sc ;tput setf 7; tput setb 4; tput cup ${Ln[$loop]} 2 ; echo "WARNING" ; tput rc)
fi
fi
done
#Second Row
for (( loop2=1; $loop2 < $maxcount2+1; loop2++ ))
do
(tput sc ;tput setb 0; tput setf 0; tput cup 4 10 ;
echo "........................................................................";tput rc)
(tput sc ;tput setb 0; tput setf 6; tput cup 4 10 ;
echo "Checking ${Sn2[$loop2]} at IP: ${Ip2[$loop2]}" ; tput rc)
(tput sc ;tput setb 0; tput setf 0; tput cup ${Ln2[$loop2]} 41 ; echo "........." ; tput rc)
(tput sc ;tput setb 0; tput setf 6; tput cup ${Ln2[$loop2]} 41 ; echo "TESTING" ; tput rc)
count2=$(ping -c 5 ${Ip2[$loop2]} | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
(tput sc ;tput setb 0; tput setf 0; tput cup ${Ln2[$loop2]} 41 ; echo "........." ; tput rc)
if [[ "$count2" == [45] ]]; then
(tput sc ;tput setf 0; tput setb 2;tput cup ${Ln2[$loop2]} 45 ; echo " OK " ; tput rc)
else
if [[ "$count2" == [123] ]]; then
(tput sc ;tput setf 0; tput setb 6; tput cup ${Ln2[$loop2]} 44 ; echo "ALERT" ; tput rc)
else
(tput sc ;tput setf 7; tput setb 4; tput cup ${Ln2[$loop2]} 42 ; echo "WARNING" ; tput rc)
fi
fi
done
done
Last edited by crouse (2009-09-25 14:40:42)http://social.technet.microsoft.com/Forums/exchange/en-US/6b8d299d-eed9-4493-bd49-42399f478f93/exchange-2010-server-up-time-script-help-needed?forum=exchange2010
-
Is there any upgrade checking script for PL upgrade
Dear Experts,
I know there are Pre-upgrade checking script to validate database integrity before an upgrade from 2005 to 2007.
However, is there any such similar scripts for an upgrade from 2007 PL12 to PL13? (Inter PL upgrade) or can I use the same script for the same purpose?
Much Thanks!
Warmest Regards,
ChinhoHi Gordon,
Thank you for your reply. Is it true that within inter-patch upgrades, there are no database structure change?
I asked this question because sometimes I get "DB is inconsistent" error after upgrade, and I don't know why?
Much Thanks for your Advice thus far!
Warmest Regards,
Chinho -
Streaming audio, web hosting, scripts for streaming?
Hello all,
Back several years ago, it seemed all the big web hosts
featured "streaming
audio and video" as a feature of their hosting plans at some
dollar amount. You
know, once you elevated to the $19.95 a month plan at XYZ
host, your website
could stream audio or video.
I don't see that anywhere in web hosts monthly plans any
longer at any dollar
amount. Anyway I have a client who sells her own music, and I
have been trying
to find a web host that supports streaming audio, mp3, etc. I
checked with 1
and 1 (webhost) and they responded as follows:
"Basically our eshop can support streaming but it would be
through
scripts only. So, it would be in your end to do those
matters."
I have no idea what that actually means. And I realize I
could just send the
guy a note and ask him, but I figured I would get a more
comprehensive and
valuable answer here since I use Dreamweaver. By "script" are
they talking
about something like Flash Audio Kit? I am confused by the
whole thing now. I
thought it was as simple as looking for a hosting plan that
supported streaming.
I use Dreamweaver 8, Windows, if that matters for this
question.
Thanks a million!
TimThank you for responding but I finally got it to work.
By the way it was http://wm1.uwsp.edu/90fm ... go trivia... -
Oracle application server 10g version checking scripts
Hi does anyone know how the script to check the application server 10g version on R12.1.3, without checking it on the form.
Hi Tunde,
You can get the detailed version of all the 10.1.2 and 10.1.3 components using the below commands
A. 10.1.3 Component Versions
========================
1. Login in to Putty as application file system owner
2. Source the applications env file under $ORA_CONFIG_HOME/10.1.3 directory.
3. cd $ORACLE_HOME/OPatch
4. opatch lsinventory -detail >> inv.out
5. Review the inv.out file and check for the Oracle Application Server and other component versions.
B. 10.1.2 Component Versions
========================
1. Login in to Putty as application file system owner
2. Source the applications env file under $APPL_TOP
3. cd $ORACLE_HOME/OPatch - This will be pointing to 10.1.2 Home
4. opatch lsinventory -detail >> inv.out
5. Review the inv.out file and check for the Oracle Application Server and other component versions.
I hope this clarifies your queries, Please let me know the same.
Regards,
Thiagarajan. -
How to stop delay when streaming data from a script as URL to an Applet?
I have a strange problem and do not know what is causing it. Hope someone here with some experience can help.
I have a Java Applet which makes a line graph of data. The data source is to be streaming, where the first chunk of data comes from what is already in a data file, and then new data is sent whenever it is ready. The problem in brief is that if I just collect and show the data from the data file and do not stream everything works fine. If I also have the streaming and wait for a long time, everything works fine, but when the applet is first loaded, the graph is not shown until after a long delay time.
Here is a snippet of the applet code:
String dataendpoint = "http://phpfunction.php";
URL url = new URL(dataendpoint);
InputStream is = url.openStream();
String line;
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
while ((line = br.readLine()) != null) {
// my code here to handle each line of data which prepares it for
// showing on a line graph.
} In the above, I show the dataendpoint variable hardcoded, but in reality this comes as an Applet parameter. It is a URL of a php script which is on the same server as the applet's code and there are no access problems here.
The PHP script does the following: It first opens a data file, parses it and prints it out to its standard output using echo or printf statements. The script then enters a loop where it periodically looks to see if new data has been made available. If so, that new data is also printed out to the standard output.
The PHP script looks like this (in pseudo code):
// open data files, read lines, and send to standard output using echo
// flush buffers using ob_flush() and flush() calls
while (1) {
sleep(30);
// get new data, if any, then send to standard output
// flush buffers again
Again my problem: If I have the PHP script exit before the while loop everything works fine, my applet makes the graph immediately.
However, if I include the while loop, then initially the applet does not appear, not until some time afterwards, and then the applet works like it should, scrolling along every time new data arrives.
I have done a Wireshark sniff and I can see that the initial data is being sent out the the browser and applet immediately. So I do not think it is a buffering problem on the PHP side.
I have wrapped every Applet code line with debug print statements and from the Java console I see that the Java Applet is stopping at this line:
InputStream is = url.openStream();
Can someone explain what is happening here? Why the delay in returning from the openStream() function and how to avoid it?
By the way, the server is Linux and the Applet is being run on Windows Vista, and I have tried both Internet Explorer and Firefox, both give the same behavior.
Thanks in advance!
Steve, DenmarkI still cannot solve this problem, but I have some more observations:
1) yes it is a JApplet, and yes, the data streaming is performed in a separate thread.
2) Wireshark sniffing shows that data sent out by the PHP datasource on the server is sent immediately, and is not buffered (am using ob_start(), ob_flush() and flush() alls in the PHP script).
3) On Windows Vista, using Internet Explorer or Firefox, there is a constant 30 second delay before the Applet returns from this line: InputStream is = url.openStream();
4) After this 30 seconds, data appears in the Applet, but it can be seen also with java console debug prints that the data seems to be buffered. The newest data shown in the Applet is not the newest data sent to the client by the PHP datasource script.
5) On a SUSE Linux client, the Applet works as it should, there is no delay time in showing the data.
It appears as if there is on Windows a buffering of data which I do not wish to have and which does not occur on Linux. I need to find out how to get the URL openStream() call to return immediately allowing the initial data to be read and shown on the Applet. And I need to remove the buffering of data so that the data can be shown on the Applet when it arrives.
Can anyone help? Why does this work on Linux but not on Windows, and what can I do, at best within the Java code, to get the Applet to work on Windows as it does on Linux?
Thanks!
Steve, Denmark -
[SOLVED] SSH Log check script, what am i doing wrong?
wow linux, you never cease to amaze me
cat /var/log/auth.log | grep -vP "(209\.94\.131.\65|216\.204\.172\.218)" | grep Accepted | awk '{ print $1, $2, $11 }'
--- the rest is immaterial --
disclaimer: i am a horrible scripter; i'm just learning; there's probably a better way to do this
what i'm trying to do: cat through /var/log/auth.log for accepted ssh connections, filter out my home and work ip's, place any filtered ip's in a log file with date.
i'm having some trouble when checking for inequality between two ip strings (xx.xx.xx.xx). this script:
#!/bin/bash
homeip=`whatismyip`
workip="216.204.172.218"
log=${HOME}/Documents/ssh_log
logip=`cat /var/log/auth.log |
\grep Accepted.*patrick |
\awk '{ print $11 }'`
if [ "$logip" != "$homeip" ]; then
if [ "$logip" != "$workip" ]; then
echo -e "$logip \n"
#cat /var/log/auth.log | grep "$logip" | awk '{ print $1 " " $2 " " $11 }' > $log
fi
fi
echo Home\:\ $homeip
echo Work\:\ $workip
exit 0
outputs this:
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
192.168.0.7
192.168.0.7
192.168.0.7
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
68.37.60.140
68.37.60.140
68.37.60.140
68.37.60.140
68.37.60.140
68.37.60.140
68.37.60.140
68.37.60.140
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
216.204.172.218
192.168.0.7
216.204.172.218
209.94.131.65
209.94.131.65
216.204.172.218
209.94.131.65
216.204.172.218
Home: 209.94.131.65
Work: 216.204.172.218
i have it just echoing the ip's it finds in the log, then showing which ones _should've_ been filtered out, to debug.
what gives?
i'm sure it's trivial, any help would be appreciated.
Last edited by brisbin33 (2009-01-13 17:10:10)pointone,
yes, you're exactly right, i was thinking one grepped line at a time, not the whole string... that'll require a rewrite
rson,
grep -vP and awk should do what i want w/o any scripting required... think i'd learn by now, RTFM right?
Maybe you are looking for
-
Cannot download any apps from app store
Hello - I have the iPhone 4S & I'm unable to download any new apps from the app store. I click on INSTALL but only indicates INSTALLING for about 2 seconds then goes back to INSTALL; I'm not prompted to enter my ITunes password; Install isn't workin
-
Both iPhoto and Mac Mail not working after most recent security update
Granted I wasn't there to see it happen but I think my mom's computer here is a bit fubar based on something having been changed on her computer prior to the last security update. My guess is that her friends who think they are 'helping' are actually
-
What happened to me was that when I got my imac everything was workin perfecty, but two months later I erased the ICAL software by mistake. Now I can't open it because it says that I don't have the software or I don't know what it is talking about. B
-
Re: RAC installation in Solaris x86 (VMWARE)
Hi, I was trying to install Oracle RAC in solaris x86 via VMWARE tool . I installed node1 and node 2 but when node 1 running , unable to start node2 , showing error " failed to open virtual machine node-2 locking of attached media failed " Result cod
-
Activation of Discrete Industries and Mill Products in existing IDES system
Dear Sir, I want to activate Discrete Industries and Mill Products in my existing IDES system (EHP4 FOR SAP ERP 6.0 / NW7.01) Can some one help me with what steps i need to follow. Also does it will effect the existing data in IDES....? Thanks in adv