Search Results

Search: Posts Made By: gundu
2,234
Posted By gundu
My log file looks like this : 2005-03-28...
My log file looks like this :
2005-03-28 09:45:22 SYNIFSSS006003I1 50305 Provisioning Transaction Created by lp6728(UserId)
2005-03-28 09:45:22 SYNIFSSS006070I1 50305 Provisioning Transaction...
2,234
Posted By gundu
grep help
Hi, I am stuck in this script doing multiple grep

If I give the following, it works fine:

#!/usr/bin/ksh
export ENV=`/usr/ucb/whoami | cut -b6`
export USR=`/usr/ucb/whoami`
#Sourcing the...
11,941
Posted By gundu
Thank you very much for timely reply. It is...
Thank you very much for timely reply. It is working

Thanks,
Gundu
11,941
Posted By gundu
yes, i take the user input and check to see it is...
yes, i take the user input and check to see it is there in the log file for that date and userid, if not exit with echo doesn't exist

Thanks,
Gundu
11,941
Posted By gundu
Thanks, I like the way it is giving me...
Thanks,

I like the way it is giving me option , but if the userid is not there then i need to break out saying userid doesnot exist, how to do that??

Thanks,
Gundu
11,941
Posted By gundu
grep in a loop
Hi ,

I am trying a script which takes user input userid . I am stuck how to check whether that is a valid user id or not in the audit log files. My code is :

cd $CCP_AUDIT
cat * >...
13,356
Posted By gundu
Thanks, it is working Gundu
Thanks, it is working

Gundu
2,729
Posted By gundu
the logfiles are located in...
the logfiles are located in /export/home/$ENV/audit/audit4567

audit4567 can be opened with vi, cat or more has lines like:

2005-03-23 16:00:55 SYNIFSSS006003I1 49219 Provisioning Transaction...
13,356
Posted By gundu
This code is picking "start Server" even the...
This code is picking "start Server" even the system is running

if [ `echo "system is not running" | egrep -c -e "system|not running"` -gt 0 ]; then
echo "start server"
else
echo "Success"
...
13,356
Posted By gundu
Hi, Need help on this part: if [ `SYnpt...
Hi,

Need help on this part:

if [ `SYnpt | egrep -c -e "system|not running"` -gt 0 ]; then
echo Start Server
else
echo Success
fi

SYnpt output is : system is not running
it is always...
2,729
Posted By gundu
date and userid
Hi I am trying to write a script to check the log files for the trancactions based on usr input date and user input user id.

I will take the user input userid and user input date and check there...
13,356
Posted By gundu
Hi, this works fine: if [ `psit | egrep -c...
Hi,

this works fine:
if [ `psit | egrep -c -e "ES|NS"` -gt 0 ]; then
echo sucess
else
echo exittt
fi

I was revisited this script and added some more lines like:

if [ `SYnpt |...
3,781
Posted By gundu
Thank you very much, it worked as expected
Thank you very much, it worked as expected
3,781
Posted By gundu
string compare
Hi,

I am trying to get an ouput of certain fields from a file:

awk '{ print $NF }' portfile

8087
8047
localhost:1117

Now i need to take this output and see if it exists in netstat -a...
5
5,565
Posted By gundu
NO Reply so far. Need help. Gundu
NO Reply so far. Need help.

Gundu
5
5,565
Posted By gundu
Additional info : When I do this in my...
Additional info :

When I do this in my script :
more default.cfg |egrep
-e "WEB_SERVER_PORT|TOMCAT_PORT|CW_RMIREGISTRY_URL local
host:" > /export/home/$USR/***/portfile

portfile has...
5
5,565
Posted By gundu
Thanks for Q 1 Q2: From netstat i am...
Thanks for Q 1

Q2: From netstat i am checking whether that particular port is open or not by grep LISTEN. IF it is not LISTEN then user has to get an e-mail. I am doing this because we need to run...
5
5,565
Posted By gundu
grep
cd $CCP_REL/W*/cfg
more default.cfg |grep -n "WEB_SERVER_PORT 8087" > /export/home/$USR/****/portfile

like this i need to get couple of more lines from default.cfg and store it in port file. How...
9,064
Posted By gundu
Thanks, but how can i do if i don't have an...
Thanks, but how can i do if i don't have an array:

echo "Date:[YYYY-MM-D] : \c"
read xxx

cd $HOME/audit
ls -ltr //list all the audit log files
cat * > file2 /opens all the audit log files...
9,064
Posted By gundu
I think I confused you. When I do this inmy...
I think I confused you. When I do this inmy script:

echo "Date: \c"
read xxx

I am expecting a date input, i will take that and look in all my audit log files, and search for that date and...
9,064
Posted By gundu
my log file has date format : 2005-03-18
my log file has date format : 2005-03-18
9,064
Posted By gundu
OK I can input like 2005-03-18, i need help...
OK I can input like 2005-03-18, i need help comparing this string with date in log file. How can i do that.

Gundu
9,064
Posted By gundu
user input date
I am trying write a script that takes user input date in the format "Mar 18". If it is march1 it is like "Mar 1" . Once i take this input i will go back to my log files and search for any failed...
2
who
1,948
Posted By gundu
who
when I do who , i get the following:

user1 pts/2 Mar 17 12:07 (fsppcon1.ffcrc.****.com)
user2 pts/6 Mar 17 12:46 (fsppcon1.ffcrc.****.com)

user1 and user2 are on...
2,843
Posted By gundu
string remove
I have a script that does ls -ltr > files. like this i have 10 ls -ltr. My file x has 10 different lines with yyyy.log. I need to use this file's contents but without log at the end and i am using...
Showing results 1 to 25 of 42

 
All times are GMT -4. The time now is 02:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy