Search Results

Search: Posts Made By: darling
6,526
Posted By darling
These are from servers.txt file.. this file has...
These are from servers.txt file.. this file has got hostnames
6,526
Posted By darling
It is giving me the same host files which are...
It is giving me the same host files which are there in servers.txt
6,526
Posted By darling
How to run simple single command on multiple Linux servers?
Hi All,

How can i run a single command on multiple servers with or without giving credentials.

I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release...
1,876
Posted By darling
Yes, it worked RudiC
Yes, it worked RudiC
1,876
Posted By darling
Hi, Below is the content from my file.. ...
Hi,

Below is the content from my file..



BmmRaiseAlert.sh::308: AlertConfigResult [MatchedOn=033A,Appalert=A60107,Description=eRIC for MWW not processed messages for 5 minutes]...
1,876
Posted By darling
Thanks Singh, It is giving me the output of...
Thanks Singh,

It is giving me the output of the files.

command


find /tmp/S -type f -name "*.log" -exec grep -l "Calling appalert" {} \+
...
1,876
Posted By darling
Below are the steps i did while read...
Below are the steps i did


while read filename; do grep -Hi 'Calling ' done
1,876
Posted By darling
How to read each file grep a value from that?
Hi Team,

in /tmp folder i have thousands of log files i want to read each file and grep a value called "Calling This".

Each logfile name is different but it ends with .log.

How can i achieve...
1,591
Posted By darling
Hi, This is the output i got when i ran the...
Hi,
This is the output i got when i ran the script. New values are not added into file security.txt

$ chmod 777 script.sh
$ ./script.sh
@mqm soft nproc 75000
@mqm hard nproc ...
1,591
Posted By darling
Ok.. Let me explain you in detail. I have...
Ok.. Let me explain you in detail. I have multiple unix servers and i have a file (security.txt) on all the servers. Security files will have values like below.
file: security.txt on 1.2.3.4

@mqm...
1,591
Posted By darling
Hi SriniShoo, It is like hard coding, there...
Hi SriniShoo,

It is like hard coding, there won't be any input data. I am looking for script which checks the file and conditions. Based on conditions it should change the value.

assume script...
1,591
Posted By darling
To write shell script based on 1 and 4th columns
Hi,
I am trying to write shell script for below requirement
File has below values
@mqm soft nproc 75000
@mqm hard nproc 75000
@mqm soft nofiles 76492
...
4,130
Posted By darling
Hi, I have below script to alter the NL, but...
Hi,
I have below script to alter the NL, but when it is altering it should take "NL" value into single quotes like below

alter nl('$NL') but now below script is doint with out single quotes alter...
3,800
Posted By darling
Where to change. Can you please let me know the...
Where to change. Can you please let me know the condition. Script would be very helpful

---------- Post updated at 05:38 AM ---------- Previous update was at 05:23 AM ----------

I tried this,...
3,800
Posted By darling
Yes, it seems it is working. I am checking in...
Yes, it seems it is working. I am checking in different conditions and i will update you

---------- Post updated at 04:41 AM ---------- Previous update was at 04:36 AM ----------

Yes it is...
3,800
Posted By darling
While copying "kernal.shmall" came it seems....
While copying "kernal.shmall" came it seems. There is no "kernal.shmall". you can ignore it. Script you gave is failing .

file.con has below values ABC=342
#XYZ=892


CR=5678
ABC=23
XYZ=1892...
3,800
Posted By darling
When i executed the script 3 times, i got output...
When i executed the script 3 times, i got output as below. Output is adding to exisiting one. but ideally it should alter the existing one.
ABC=342
#XYZ=892
CR=5678
ABC=123
XYZ=1892
ABC=2654...
3,800
Posted By darling
Content is ######################## ...
Content is


########################

ABC=342
#XYZ=892


CR=5678
ABC=23
XYZ=1892

ABC=2654
3,800
Posted By darling
Writing if condition in shell script and failing to do requirement
Hi,

I am trying to edit the values in a file. For example i am trying to edit the value of "ABC" in a file by executing shell script.

Please Note that ABC value can be there mulitple times or...
6,401
Posted By darling
I have tried below code and it is working but it...
I have tried below code and it is working but it is failing where there is no "kernel.shmall" parameter in file /etc/sysctl.conf


if grep -o "kernel.shmall" /etc/sysctl.conf > /dev/null
...
6,401
Posted By darling
ok.. Thanks for your swift responce.. Let me tell...
ok.. Thanks for your swift responce.. Let me tell you what i am trying to do here..

i am trying to edit "sysctl.conf" file.. if this file has got below variables with below values or morethan that...
6,401
Posted By darling
I tried to alter the values which i want. I have...
I tried to alter the values which i want. I have mentioned those values above. and i wrote above script and its not working to modify
6,401
Posted By darling
Yes, I understand but as i need to change it on...
Yes, I understand but as i need to change it on multiple servers i would like to have a script. I have tried below but seems not working..

#!/bin/sh

#val = $0
cp /etc/sysctl.conf...
6,401
Posted By darling
Modify existing values in a file
Hi,
I am trying to write a shell script which will modify existing values and take backup of old values.

file trying to modify is : /etc/sysctl.conf

script name: modify.sh

execute...
4,130
Posted By darling
if NL value is CL.ROMt1 when we running...
if NL value is CL.ROMt1

when we running script i am getting CL.ROMT1 not found. It taking all the values as Capital.
Showing results 1 to 25 of 98

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