Search Results

Search: Posts Made By: jaapar
1,016
Posted By jaapar
I found the fix, what I did was execute the...
I found the fix, what I did was execute the user's bash_profile in the script or in cron for e.g.

0 10,22 * * * . $HOME/.bash_profile && /root/auto/generate_rpt.bash.

above fixed it for me.
...
1,016
Posted By jaapar
Yeah? So how do I get the cron to also use my...
Yeah? So how do I get the cron to also use my environment when running using command line as opposed to when it runs in cron.
1,016
Posted By jaapar
Need assistance to define path on a script which cron will execute
I have written a script to execute some sql statement via executable file.

It is working fine via command line, however when I schedule it in cron.

The executable file is looking for library...
980
Posted By jaapar
I have tried the one without space and comma, and...
I have tried the one without space and comma, and it worked. But I cannot figure out this one.

I can confirm there is only one line that matches the item that I'd like to change to.
980
Posted By jaapar
'sed' help
hi folks,

been looking for hours to find a way to replace the following in a text file using sed in RHEL. Can anyone help?


from:
User_Alias SYSTEM_ADMIN=xxxx1,xxxx2,xxxx3,xxxx4

to:...
2,929
Posted By jaapar
Thanks RudiC, that works fine :)
Thanks RudiC, that works fine :)
2,929
Posted By jaapar
Thanks for helping out so far, your script did...
Thanks for helping out so far, your script did the job, but I was looking to find a write an if statement and schedule it in cron for every 15 minutes, something like below.

[root@xxxx ~]# cat...
2,929
Posted By jaapar
Yes, i would like to set up an email monitoring...
Yes, i would like to set up an email monitoring whenever the DISK READ went above 600MB per second it will trigger an email to me personally.

I was able to get the output of 3 lines but not...
2,929
Posted By jaapar
Need way to grep the following output in bold
Hi guys,

i am not able to work this out, i need to write a script to monitor the usage of IO DISK READ whenever the IO is above 600MB it will send an email.

So far not able to. Hope you guys...
802
Posted By jaapar
This works like a charm. Thanks Singh! ...
This works like a charm. Thanks Singh!

---------- Post updated at 04:57 AM ---------- Previous update was at 04:56 AM ----------



This works fine, thanks Rudy!!!
802
Posted By jaapar
Help with specific output
hi folks, looking for a way to view a file and get the output of bold strings below? Thanks.

20-AUG-2017 16:14:59 * (CONNECT_DATA=(SID=TST)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=xxxx))) *...
752
Posted By jaapar
Need help with multiple "if" for ssh
Hello Folks,

Good day,

I have a little script here where i connect to my servers using below.

# s <hostname>

Below is the sample script i had written to simplify this step successfully.
...
2,400
Posted By jaapar
Thanks Andrew, learned something new today about...
Thanks Andrew, learned something new today about backticks. Your modification did work as intended :)
2,400
Posted By jaapar
Run remote command and send email
I am currently try to write a simple script with the following condition, but so far not having luck as the exit code would always be 0.

Run remote command to read a file and grep for test word....
1,353
Posted By jaapar
Need little script to send out email
Hi Scripters, good day.
bash-4.2# df -g /apps/prd
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/xxx 64.00 4.35 94% 1269284 8% /xxx
bash-4.2#
I...
Forum: AIX 03-18-2017
7,054
Posted By jaapar
Hi There, you are absolutely correct, the...
Hi There,

you are absolutely correct, the loglv00 were used for /opt and /usr/local.

I had not been able to unmount both filesystems even though from fuser I don't see any processes running on...
933
Posted By jaapar
Yes thank you!!! script worked like a charm!!
Yes thank you!!! script worked like a charm!!
933
Posted By jaapar
Simple script to test mountGpoint for read-write
Guys, need your help urgently.

ServerA
ServerB


ServerA has an email facility and can connect remotely via root using key to ServerB

What I am trying to achieve here is ServerA would be...
Forum: AIX 02-01-2017
7,054
Posted By jaapar
Hi Robin, I believe the disk is not yet...
Hi Robin,

I believe the disk is not yet completely faulted but perhaps it is unable to access some sectors which in my opinion already failing.

The burning question is if I may remove the...
Forum: AIX 01-31-2017
7,054
Posted By jaapar
I forgot to add, the server has a disk failure...
I forgot to add, the server has a disk failure and I am trying to remove the mirror on the failed disk via unmirrorvg, rmlvcopy but failed only at the loglv since the state was already "stale",...
Forum: AIX 01-31-2017
7,054
Posted By jaapar
Hi bro, as follows. bash-4.2# lslv...
Hi bro,

as follows.


bash-4.2# lslv -m loglv00
loglv00:N/A
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0020 hdisk1 0212 hdisk4
bash-4.2#




...
Forum: AIX 01-27-2017
7,054
Posted By jaapar
Unable to rmlvcopy on jfs2log rootvg
Good day folks,

I am unable to remove lv copy from jfs2log lv as I need to replace broken disk on a mirrored rootvg, is there a way that I can fix this?



bash-4.2# lsvg -p rootvg
rootvg:...
1,518
Posted By jaapar
Find files in Megabyte
Hi Guys,

Good day, is it possible to convert my simple find command below Megabytes with desired output.. Thanks a lot!

800MB ./filename


root@xxxx:/var # find . -xdev -size +4000 -exec ls...
2,982
Posted By jaapar
Thanks!! But i had errors running this one...
Thanks!!

But i had errors running this one line script. Btw, my server is aix 7.1.
2,982
Posted By jaapar
Sort from highest to lowest number
Hi Guys,

I am looking for a way to sort the output below from the "Inuse" count from Highest to Lowest. Is it possible?

Thanks in advance.


user1 0.12 ...
Showing results 1 to 25 of 31

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