Search Results

Search: Posts Made By: Meacham12
Forum: Red Hat 04-08-2015
2,778
Posted By Meacham12
RedHat Cluster: Nodes won't see each other
Hi All;

I try to build a Redhat Cluster (CentOS 6) on vmware. But each node sees the other down like:

[root@node1 ~]# clustat
Cluster Status for mycluster @ Wed Apr 8 11:01:38 2015
Member...
Forum: Red Hat 04-08-2015
2,047
Posted By Meacham12
RedHat Cluster: Nodes won't see each other
Hi All;

I try to build a Redhat Cluster (CentOS 6) on vmware. But each node sees the other down like:

[root@node1 ~]# clustat
Cluster Status for mycluster @ Wed Apr 8 11:01:38 2015
Member...
2,618
Posted By Meacham12
Hi Akshay; I first appreciate for long...
Hi Akshay;

I first appreciate for long answer and code.

My real file doesn't contain any region field. It's just in the name of file.

For example: file_miami_1 is region 1, file_miami_2 is...
2,618
Posted By Meacham12
Well for example I want to first sum all Total...
Well for example I want to first sum all Total Subs values in all of the 4 region for the city. Then calculate the percentage of this region's Total Subs value over the city total ( 4 regions) Do...
2,618
Posted By Meacham12
this is the parameters I copied from the original...
this is the parameters I copied from the original file:

cat network_stats_miami_1.csv
Total Subs : 0
VLAN Count :...
2,618
Posted By Meacham12
Calculate percentage of a value accross m
I have 100 csv files like:

file_city_1 file_city_2 file_city_3 file_city_4

City name is variable, there is 25 cities, each city has 4 region. Each of the 4 region contain some statistics...
7,101
Posted By Meacham12
Oh I see. I need a separate -v for each variable....
Oh I see. I need a separate -v for each variable. It worked like that. Thanks buddy. This saved my life :) :b::b:
7,101
Posted By Meacham12
Actually I have a lot of variables, 5,6...
Actually I have a lot of variables, 5,6 sometimes even 10. So I should perform arithmetic operations with all of them.

So I need something like (after your example)


...
7,101
Posted By Meacham12
Remove carriage return from the variable
Hi,

I try to handle very large numbers with a bash script. I run ssh command in a remote server and store the output in a local variable. But this output contains a return carriage at the end. So...
14,945
Posted By Meacham12
This worked for me. Thanks a lot.
This worked for me. Thanks a lot.
14,945
Posted By Meacham12
Convert a string to variable in Bash shell
Hi All;

I have 2 variable let's say $A and $B. These are actually some remotely executed command outputs. I captured these values in my local variables. Here is my problem. When I try to do some...
22,561
Posted By Meacham12
Even after escaping dollars, I had same error: ...
Even after escaping dollars, I had same error:

./test.sh
./test.sh: line 20: syntax error near unexpected token `|'
./test.sh: line 20: ` rmt_command1=" \$script -i \$ip -p \$port | awk -v...
22,561
Posted By Meacham12
Sorry I have 2 copies of same file $script was...
Sorry I have 2 copies of same file $script was actually $remote_script. Neither worked. Corrected.
22,561
Posted By Meacham12
Syntax error near unexpected token `|'
Hi All;

I try to write a bash code and I am using command substitution. My code is like:


#!/bin/bash

IP="10.0.0.1 10.0.0.2"
PORT="22 80"
USERNAME="admin"
SCRIPT_HOST="adminHost"...
Showing results 1 to 14 of 14

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