Search Results

Search: Posts Made By: surender reddy
1,626
Posted By surender reddy
Thanks .Its working .Can you pls explain the...
Thanks .Its working .Can you pls explain the command in detail.
1,626
Posted By surender reddy
yes. OVLAN in file2 is the first part of the last...
yes. OVLAN in file2 is the first part of the last field
1,626
Posted By surender reddy
Shell script needed for comparing two files
Hi,

I need shell script to compare the two files based on certain fields and output should contains the required fields based on result.pls find sample input files and required output

file 1...
1,336
Posted By surender reddy
Hi tnx ,the code is working fine.
Hi

tnx ,the code is working fine.
1,336
Posted By surender reddy
Code needed to get sql queries
Hi


i need code to get sql queries through a shell script for a text file input which contain the service ids


iputfile

I-H-2048-10GB-M
I-H-4096-12GB-M
I-H-2048-p1000-M
the code...
5,871
Posted By surender reddy
Hi I added path in the script. Now file was...
Hi

I added path in the script. Now file was created using cron

/usr/bin/tar -cf bngbackup.tar bngbackup ;/usr/bin/gzip bngbackup.tar

Tnx to all
5,871
Posted By surender reddy
Hi, Expect is working with cron. it will...
Hi,

Expect is working with cron. it will store the backup files in bngbackup directory

after this only problem is coming.

the below command is not working in cron

tar -cf bngbackup.tar...
5,871
Posted By surender reddy
[Solved] Shell script not working in crontab
Hi

Iam running below script in crontab but its not working.

#!/bin/sh
cd /Scripts
/usr/local/bin/expect -f /Scripts/bng_backup.exp /Scripts/data.txt
tar -cf bngbackup.tar bngbackup ;gzip...
1,446
Posted By surender reddy
Hi bipinajith Thanks for help. output...
Hi bipinajith

Thanks for help.

output is coming but with some more extra lines after executing your code

/usr/xpg4/bin/awk '/^[a-zA-Z]/ {
if(/^Card Status/||/^Max Circuits/||/^Num...
1,160
Posted By surender reddy
Hi Iam using solaris 10 OS server.
Hi

Iam using solaris 10 OS server.
1,446
Posted By surender reddy
Hi , code is working fine but i need ip or host...
Hi ,
code is working fine but i need ip or host name in output file .now iam not able to difffernaite which output is belongs to which router.

/usr/xpg4/bin/awk '/^[a-zA-Z]/{if(/^Card...
1,446
Posted By surender reddy
Extract lines from file using keywords using script
Hi

I need some lines of text from input file using keywords.

Inputfile

IP IS 10.238.52.65
[local]pun-ras-bng-mhs-01#context bsnl.in

Card Status : 1:0, 2:1, 3:1, 4:1, 5:0, 6:0, ...
1,160
Posted By surender reddy
Hi its not working.below error coming # date...
Hi its not working.below error coming

# date --date='Thu Feb 14 10:16:14 2013 IST - 61 days 21 hours 31 minutes 49 secs'


output


date: illegal option -- date=Thu Feb 14 10:16:14 2013...
1,160
Posted By surender reddy
How to find the router reboot date using script?
Hai

Iam having router output in a text file.from this data how to find out the router reboot date and time using script

[local]bgl-ras-bng-bge-09>show version | grep Time
Router Up Time - ...
1,231
Posted By surender reddy
hi tnx ,its working fine
hi
tnx ,its working fine
1,231
Posted By surender reddy
How to delete the lines from file using script?
Hi

Iam having file like below

10.238.52.65 pun-ras-bng-mhs-01 server
10.238.52.65 pun-ras-bng-mhs-01 10.10.10.10
10.238.52.65 pun-ras-bng-mhs-01 10.10.20.10
10.238.54.1 enk-ras-bng-cse-01...
1,058
Posted By surender reddy
hi tnx ,its working. ...
hi

tnx ,its working.

root@blr-svr-oclan-01 # join -1 1 -2 1 -o 1.1 1.2 1.3 2.3 z1 z2
10.238.54.1 enk-ras-bng-cse-01 10.10.10.10 20.20.20.20
10.238.56.225 ngp-ras-bng-cto-01 10.10.10.10...
1,058
Posted By surender reddy
Combine two files using script
Hi

please help me to combine below two files into one file

file1

10.238.54.1 enk-ras-bng-cse-01 10.10.10.10
10.238.56.225 ngp-ras-bng-cto-01 10.10.10.10

file2


10.238.54.1...
1,405
Posted By surender reddy
Looping not completing in shell script
Hi,

Iam using below code to login to servers to get cpu utilisation. but output is coming for only one server. code is below

root@blr-svr-oclan-01 # more SSSC_CPU_UTIL1.sh
#!/bin/sh
echo "CPU...
3,554
Posted By surender reddy
Hi, Thanks for guidance.
Hi,

Thanks for guidance.
3,554
Posted By surender reddy
Hi thanks, now the code is working...
Hi

thanks,

now the code is working perfectly.

code
root@blr-svr-oclan-01 # /usr/xpg4/bin/awk 'BEGIN {print "IP HOST_NAME SUB "}
root@blr-svr-oclan-01 > /IP IS/ {IP=$3}...
3,554
Posted By surender reddy
Hi modified the code but output is not...
Hi

modified the code but output is not coming this time
code

root@blr-svr-oclan-01 # more script.awk
BEGIN {print "IP HOST_NAME SUB "}
/IP IS/ {IP=$3}
/local/ {gsub...
3,554
Posted By surender reddy
Hi code is modifed,output is not coming ...
Hi

code is modifed,output is not coming



root@blr-svr-oclan-01 # more script.awk
BEGIN {print "IP HOST_NAME SUB "}
/IP IS/ {IP=$3}
/.local.|#cont/...
3,554
Posted By surender reddy
Hi I tried the below code but output is not...
Hi

I tried the below code but output is not as desired.

root@blr-svr-oclan-01 # /usr/xpg4/bin/awk 'BEGIN {print "IP HOST_NAME SUB "}
root@blr-svr-oclan-01 > /IP IS/ {IP=$3}...
3,554
Posted By surender reddy
Hi the script is working now but out put...
Hi

the script is working now but out put is not exactly as per requirement.


root@blr-svr-oclan-01 # /usr/xpg4/bin/awk 'BEGIN {print "IP HOST_NAME SUB "}
root@blr-svr-oclan-01 > /IP IS/...
Showing results 1 to 25 of 39

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