Search Results

Search: Posts Made By: charli1
8,215
Posted By charli1
Hi RudiC, finally i switched to this, awk -F...
Hi RudiC,
finally i switched to this,
awk -F ";" -v var=$(hostname) '"'"'{print","$2","$5","var}
and this works perfectlty for what i need,
thank a lot for the support.
8,215
Posted By charli1
Yes the tabbing works but i need an empty collumn...
Yes the tabbing works but i need an empty collumn down the hostname,

as i seem a bit difficutt what do you think, can i print the hostname inside awk, so it woud be like this
ssh $i 'cat...
8,215
Posted By charli1
Hi RudiC, the -C as per ssh manual stands for ...
Hi RudiC,
the -C as per ssh manual stands for
-C Requests compression of all data (including stdin, stdout, stderr, and data for forwarded X11, TCP and UNIX-domain connections). The...
8,215
Posted By charli1
Thank for input RudiC, on this i'm getting ...
Thank for input RudiC,
on this i'm getting
-bash: syntax error near unexpected token `('
Any idea?
8,215
Posted By charli1
awk remote multiple hosts print remote hostname and output
Hi all,
i'm trying to gether multiple pattern on remote hosts, and trying to print hostname and the pattern,
ssh remoteserver1 -C 'hostname 2>&1;cat /var/log/server1.log | awk -F ";" '"'"'{ print "...
9,704
Posted By charli1
[Solved]Grep remote multiple hosts output to local server
Hello all,
i'm trying to create a report by greping a pattern on multiple remote hosts and creta a simple report,
actually i did this, is ther any better way to do this.

#!/bin/bash
for host in...
2,457
Posted By charli1
Hello RudiC, finally i figured it out, the...
Hello RudiC,
finally i figured it out,
the worng output was a terminal issue,


for i in $(cat MyWebApps); do curl -u manager:tH1s1s4f3k3p4ssw0Rd...
2,457
Posted By charli1
Please note RudiC that i'm curling a tomcat...
Please note RudiC that i'm curling a tomcat manager Sessions tab specific,
i'm not curling the full page, the contente of the MyWebApps are only all the names of the webapps.
Thanks for you help.
2,457
Posted By charli1
So when i add any commands to the first script...
So when i add any commands to the first script example below,i get a lot more stuff, that could be the reason that i cant ge't what i need,
for i in $(cat MyWebApps); do curl -u...
2,457
Posted By charli1
for i in $(cat MyWebApps); do curl -u...
for i in $(cat MyWebApps); do curl -u manager:tH1s1s4f3k3p4ssw0Rd http://10.10.10.10:7529/manager/jmxproxy/"?get=Catalina:type=Manager,context=/$i,host=localhost&att=activeSessions" |awk -F, '{print...
2,457
Posted By charli1
I tryied multiple versions of the script adding...
I tryied multiple versions of the script adding awk grep etc, none worked, so i asked for help, let me know if you have any ideas,
thank yuo.
2,457
Posted By charli1
Thanks Rudic, info for server added.
Thanks Rudic,
info for server added.
2,457
Posted By charli1
Curl and write custom result to file
I have the following script,
for i in $(cat MyWebApps); do curl -u manager:tH1s1s4f3k3p4ssw0Rd...
6,742
Posted By charli1
Hello Jim, thank a lot for the fast response, ...
Hello Jim,
thank a lot for the fast response,
here is the final script,

#!/bin/sh

check=$(awk -F "]" -v d="$(LC_ALL=C date --date=-5minutes "+%Y%m%d%H:%M:%S.%6N")" -v abmon="$(LC_ALL=C locale...
6,742
Posted By charli1
Check file creation Time minutes and if file older then 5 minutes execute some stuff
Hello all,
Info:
System RedHat 7.5
I need to create a script that based on the creation time,
if the file is older then 5 minutes then execute some stuff, if not exit.

I thought to get the...
14,264
Posted By charli1
Hello Rudic, yes your suggestion work also, ...
Hello Rudic,
yes your suggestion work also,
to fix my previous issue i hade to add if there were no match at all,
and that worked just fine
if [ -z $check ]
then
echo "Exit, everything...
14,264
Posted By charli1
Still having the same issue test.sh: 5: [: -gt:...
Still having the same issue
test.sh: 5: [: -gt: unexpected operator
+ echo Exit, everything is ok
How do i fix this?
Thanks
14,264
Posted By charli1
#!/bin/sh check=$(awk -F, -v d="$(date...
#!/bin/sh
check=$(awk -F, -v d="$(date --date="-5 minutes" +"%Y-%m-%d %H:%M:%S,%3N")" \
'$0 ~ "HTTP/1.0\" 500 2042$" {if ( d < substr($1, 10)) error++} END {print error}' /tmp/test.log)

if [...
14,264
Posted By charli1
It doesn't work neither, any other ideas?
It doesn't work neither,
any other ideas?
14,264
Posted By charli1
Hello nezabudka, this code is printing all the...
Hello nezabudka,
this code is printing all the matchs on the file, and not only the last five minutes of the file,
any idea?
awk -F, -v d="$(date --date="-5 minutes" +"%Y-%m-%d %H:%M:%S,%3N")"...
14,264
Posted By charli1
Yes, sorry i wrote this without the +, this is a...
Yes, sorry i wrote this without the +, this is a typo i made here, but the original copy has is, and it doesn't work either.
Thank you.
14,264
Posted By charli1
Grep a log file for the last 5 minutes of contents every 5 minutes
Hi all,
System Ubuntu 16.04.3 LTS
i have the following log
INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042
INFO ...
1,393
Posted By charli1
Script monitor website wth default tomcat script
Hi all,
on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5,
and the timewait to 120 second,...
Forum: Red Hat 05-08-2017
54,989
Posted By charli1
SOLVED, if anyone need this specific, i added...
SOLVED,
if anyone need this specific, i added on myproxy on the /etc/squid/squid.conf the port
acl SSL_ports port 61617

Regards
Forum: Red Hat 05-05-2017
54,989
Posted By charli1
Hi Corona, it doesn't print nothing new, wget...
Hi Corona,
it doesn't print nothing new,
wget --server-response --no-check-certificate https://mysite.it:61617
--2017-05-05 20:12:06-- https://mysite.it:61617/
Connecting to myproxy:8080......
Showing results 1 to 25 of 70

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