Search Results

Search: Posts Made By: eponcedeleonc
Forum: HP-UX 07-05-2011
2,227
Posted By eponcedeleonc
Command for listing middleware/web server
I want to know if a server has J2EE application server installed, a webserver or any other middleware, is there a command to output a list or something like that.
Thak you
33,052
Posted By eponcedeleonc
How can I send the input of the remote server...
How can I send the input of the remote server into my logfile. No output was sent to the gzip files, since the html files look ok.
33,052
Posted By eponcedeleonc
I ran the script with little modifications and it...
I ran the script with little modifications and it is working fin now...

thanks for all your help:) Corona688

What is the difference from this line
ssh $host exec /bin/sh -s $HOSTNAME 2>&1
to...
33,052
Posted By eponcedeleonc
why would it...if when I run it manually it works...
why would it...if when I run it manually it works out great!!
33,052
Posted By eponcedeleonc
The idea of waht I want to do is there.. ...
The idea of waht I want to do is there..

However, when I try tu unzip the file (gzip -d ) i am getting this error...
gzip: scxcdb4-config.html.gz: not in gzip format
33,052
Posted By eponcedeleonc
the value of $host comes from a file that has...
the value of $host comes from a file that has names of servers..ie
server1
server1
server3

this is my whole script
for host in `cat $PATH_TMP/servers/host_linux2_test`
do
...
33,052
Posted By eponcedeleonc
this is the problem with coronas solution... ...
this is the problem with coronas solution...

REMOTE_FILE=$(ssh $host 'cat /tmp/$(hostname).html.gz')

·BÂÙìKH5´/ßcpeæÒ}úôAû·ÞØp¾LLè;ÃLfËIQ>Òszåø±\Ss¤d£
...
33,052
Posted By eponcedeleonc
yes of course, that is the workaround, but what...
yes of course, that is the workaround, but what if for some reason, the hostname does not come out with the domain name...then the script will fail!! :)

---------- Post updated at 12:40 PM...
33,052
Posted By eponcedeleonc
my host is server1 my hostname includes the...
my host is server1
my hostname includes the domain.... server1.domain.co
33,052
Posted By eponcedeleonc
I dont want to redirect the name to a local file,...
I dont want to redirect the name to a local file, otherwise I would've done it.

How can I save the output of a command to a local variable in my script, not to a local file?

---------- Post...
33,052
Posted By eponcedeleonc
that is not what i want to do... I know the...
that is not what i want to do...

I know the name and format of the file i need scp because I am copying that file from the remote server to my local server, that is why I am using scp.

I need...
33,052
Posted By eponcedeleonc
excellent, I will consider single quotes next...
excellent, I will consider single quotes next time, thank you!!

---------- Post updated at 12:10 PM ---------- Previous update was at 11:37 AM ----------

what about the syntax for this line......
33,052
Posted By eponcedeleonc
Getting hostname using ssh
I am writing a script and need to get the hostname of the remote server in order to zip that file... the syntax in which the file is named is "hostname.html."
This is the line I am trying to use...
16,421
Posted By eponcedeleonc
this work out great!
this work out great!
16,421
Posted By eponcedeleonc
sh: gzip: not found ERROR
I am creating a script to run the SysInfo tool under HPUX servers, this is my script!


#!/usr/bin/ksh
#
# Date: February 29th 2011
#

#Definicion de variables
PATH_TMP=/home/eponcede

>...
3,954
Posted By eponcedeleonc
in this example....this is my list of servers ...
in this example....this is my list of servers

abhmq01
abhxdb01
admpae1
admpce02
admtdb2

this is my script...
while read host
do
# since we're running cat anyway, might as well...
3,954
Posted By eponcedeleonc
Thank you... This accomplish some of what I...
Thank you...
This accomplish some of what I need, that is printing the output to a file, but not in the way that I want to. I reallly apreciate the help!
this is more of what I need....

...
3,954
Posted By eponcedeleonc
saving output from bash into a file
I am ssh to many servers to get some information... however sometimes the server is unreacheable and i am getting an error. I want to save that output to a file but I am not able to do so...

I...
6,648
Posted By eponcedeleonc
what about for HPUX..using bdf
what about for HPUX..using bdf
2,368
Posted By eponcedeleonc
This is just an example of what it looks like.. ...
This is just an example of what it looks like..
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-rootlv
5.0G 3.3G 1.4G 71% /
tmpfs ...
2,368
Posted By eponcedeleonc
filesystems > 70%
I need a scrip that will show me the filesystems that are greater than 70%...but not sure how to filter using the df -h | grep

Thank you for your help!!
2,597
Posted By eponcedeleonc
I will go ahead and try your suggestions... ...
I will go ahead and try your suggestions...
lets hope this helps...


I do want the content of the file /etc/redhat-release to be append in /tmp/release.info,
so I will use cat instaed..
...
2,597
Posted By eponcedeleonc
# Logs to each server using file and append the...
# Logs to each server using file and append the name of file with the release description into
# a single file and copies it to harp server
echo "entering for loop"

for host in `cat...
2,597
Posted By eponcedeleonc
So if I understood correctly, something like this...
So if I understood correctly, something like this would look a lot better?

# Logs to each server using file and append the name of file with the release description into
# a single file and...
2,597
Posted By eponcedeleonc
thanks for the replies... first of all, do I...
thanks for the replies...
first of all, do I need
$host:every time I perform a command in the remote server.

Also, do I need to ssh everytime I execute a command on the server..

This is my...
Showing results 1 to 25 of 29

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