Search Results

Search: Posts Made By: ntgobinath
Forum: Solaris 11-10-2011
8,362
Posted By ntgobinath
snmptrap command - Help Please!!
Hi All,

I am trying to generate a trap with in the localhost.

Please see the attachment for the exact syntax what I am using to generate the traps. However, I am getting the following error.
...
2,065
Posted By ntgobinath
Thank you very much methyl, kodak. pcmon is...
Thank you very much methyl, kodak.

pcmon is a script that will send information to monitoring system.

Could you please clarify somne of dobuts:

1. What happen if I not close case statement?...
2,065
Posted By ntgobinath
I tried to get this script as much as can, but...
I tried to get this script as much as can, but since the logfile is also somehow contains more info, it's started utilize the CPU more. Anybody thru some light to resolve this issue to reduce the...
2,065
Posted By ntgobinath
Optimize and Speedup the script
Hi All,

There is a script (test.sh) which is taking more CPU usage. I am attaching the script in this thread.

Could anybody please help me out to optimize the script in a better way.
...
2,347
Posted By ntgobinath
yes, The Script name is Inject.sh and I'm doing...
yes, The Script name is Inject.sh and I'm doing 'ps -ef | grep Inject.sh' it's not showing anything. It was showing till before it's goes to sleep command.

Please help me out to not to terminate...
2,347
Posted By ntgobinath
Shell Scripting not showing in process when it goes to sleep
Hi All,

Here is my script:

sleep_time=`echo "9.6 * $num_servers"|bc| cut -d. -f1`
if [ "$sleep_time" -lt 3600 ]; then sleep_time=3600;fi
### Allow the compare script to kick in after 1 hour...
2,038
Posted By ntgobinath
Hi Kevin, I am rarely using the scripting...
Hi Kevin,

I am rarely using the scripting part, It is nearly a year after I am posting for my requirement.

My job profile needs scripting very very rare. I parepared set of script and need this...
2,038
Posted By ntgobinath
Script needed!! - Please help
Hi All,

I have a text file contains the follwoing info:

HOST_CONFIG spbf1n01 3181 patrolpv "B6abbKEW5L1TCE5B282445" I E W A
HOST_CONFIG spbf1n02 3181 patrolpv "B6abbKEW5L1TCE5B282445" I E W A...
9,271
Posted By ntgobinath
Thanks for your valuable inputs. I will try...
Thanks for your valuable inputs. I will try searching in the net.
9,271
Posted By ntgobinath
I tried using system("echo.> logserver.txt"); and...
I tried using system("echo.> logserver.txt"); and I got the message as "The process cannot access the file because it is being used by another process."

Later, I opened the txt file and deleted...
9,271
Posted By ntgobinath
Yes, the file never gets overwritten.
Yes, the file never gets overwritten.
9,271
Posted By ntgobinath
I used copy nul as per the above reply and also...
I used copy nul as per the above reply and also tried system("echo.> logserver.txt"); Nothing works.
9,271
Posted By ntgobinath
Its not working. Any other suggestion would be...
Its not working. Any other suggestion would be highly appreciated.
9,271
Posted By ntgobinath
Otherwise, I would like to empty the contents of...
Otherwise, I would like to empty the contents of the file instead of deleting the file. Is it possible?
9,271
Posted By ntgobinath
Looking for a perl script (windows) to delete the contents of a file
Hi All,

Im having a file named logserver.txt. I want a perl script to take a backup of that file, along with the datestamp; move the file to a different location or empty the contents of the file...
1,534
Posted By ntgobinath
Perl Script required...
Hi All,

Windows Platform. Perl Scripting.

I have a file called 'hostnames.txt' contains hostname entries one by one line.

Script has to perform the following command for each entry in that...
1,528
Posted By ntgobinath
Hi All, Any other suggesstions? Pls.... ...
Hi All,

Any other suggesstions? Pls....

Gobinathan.S
1,528
Posted By ntgobinath
Script changes required...Pls. help me!!
Hi All,

I'm giving input of four variable. I'm using this script for network field, so I'm defining the example on the same way.

Example Input: $1 =ind00m1 $2=Gi1/1 $3=10.0.0.1 $4=Connectivity...
3,890
Posted By ntgobinath
How to replace a character in the file?
Hi All,

I have file contains the following information.

chem00s4.mis.amat.com[ 0 [ 81 ] ] Critical 3/21
chem00s4.mis.amat.com[ 0 [ 82 ] ] Normal 3/22...
24,115
Posted By ntgobinath
Thanks for all your help. It's worked.
Thanks for all your help. It's worked.
24,115
Posted By ntgobinath
How to delete a word from a file?
Hi All,

I want to delete a word from file. How to do that.

I have file that contains the following Information.

EntityName:alba00r1.mis.amat.com OverallStatus:Minor IfName:Gi1/0...
5,967
Posted By ntgobinath
Ripat, I'm disturbing you so much. Here is...
Ripat,

I'm disturbing you so much. Here is the result.

# ./int
Memory fault(coredump)


Thanks,
Gobinathan.S
5,967
Posted By ntgobinath
Ripat, How to run this file? I'm using...
Ripat,

How to run this file?

I'm using HP-UX 11.23

First I copied all those your commands to file 'int'
then executed,
Error:
# ./int
syntax error The source line is 3.
The error...
5,967
Posted By ntgobinath
Hi Ripat, Thank you so much for your hard...
Hi Ripat,

Thank you so much for your hard work on my requirement. I'm looking for an alternate way to achive my requirement. Because It's not giving proper info on 21st line.

I will get back...
5,967
Posted By ntgobinath
Yes, But my requirement is, Whenever the...
Yes, But my requirement is,

Whenever the string matches "+++++++++++++++++ NMInterface ++++++++++++++" then It should print upcoming line of 3rd line, 8th line and 21st line. (No need to consider...
Showing results 1 to 25 of 42

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