[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.
The report with the above script is the following,
Is there any way to create it like this?
EDIT: added a new sed to add the line i need.
Thanks any way.
Last edited by Scrutinizer; 09-21-2019 at 03:28 PM..
Reason: Added code tags ....
Hi,
I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Hi,
I have a script that runs for an hour.
Have to run it on remote server and need the output it produces on the remote server to decide for failure or success.
I run it through a Autosys Job which logs the outputs, both 1 & 2.
I use the commands
1) rsh <SERVER> 'nohup /tmp/xyz.ksh &'
2)... (5 Replies)
hi
I have a script to login from a host "A" to a list of hosts in a file and perform some commands inside it...its somethin like this
for i in `cat file`
do
ssh -t $i " command1 ; command2; ..."
done
I wanna save the outputs in a file in the current host "A" i.e from where I am... (3 Replies)
Hello forum:
I am curious about some output that I get using an alias <command> on a remote host and I wondered if someone could point me in the right direction.
Symptoms:
Using "ssh -qi /path/to/key root@som.ipa.ddr.ess mail" (or variation of via alias)
only gives a partial textual... (7 Replies)
I have a script on about 15 hosts that I need to run for each host whenever I want (not crontab). Problem is, this script takes 5-10 mins to run for each host. Is there a way I can run the script in parallel for all the hosts instead of 1 at a time? Also, I'm remotely running the script on the... (3 Replies)
Hi friends,
i need to prepare a script ( in perl)
i have a file called "demo.exe" in my local unix host.
i have a list of remote hosts in a file "hosts.txt"
now i need to push "demo.exe" file to all the hosts in "hosts.txt" file.
for this i need to prepare a script(in perl, but shell... (5 Replies)
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
so i'm doing something similar to this:
ssh myname@remotehost 'tail -800 /var/log/some.log'
Now, as you can see, this is a lot of data to be passing back and forth over a network.
Is there anything i can do to make the output smaller (zip it on the fly, compress?) and then when the data... (4 Replies)
Hello,
I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out.
I am specifically facing issues while running for loops.
I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
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 " "$2" "$5}'"'"'| sort | uniq -c | sort -g -r '
The output is the following,
remoteserver1
... (8 Replies)
Discussion started by: charli1
8 Replies
LEARN ABOUT SUNOS
asadmin-create-virtual-server
asadmin-create-virtual-server(1AS) User Commands asadmin-create-virtual-server(1AS)NAME
asadmin-create-virtual-server, create-virtual-server - adds the named virtual server
SYNOPSIS
create-virtual-server --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile file-
name] [--terse=false] [--echo=false] [--interactive=true] --hosts hosts [--httplisteners http_listeners] [--defaultwebmodule
default_web_module] [--state on] [--logfile log_file] [--property (name=value)[:name=value]*] virtual_server_id
Creates the named virtual server. Virtualization in the Application Server allows multiple URL domains to be served by the same HTTP server
process which is listening on multiple host addresses. If the application is available at two virtual servers, they still share the same
physical resource pools.
This command is supported in remote mode only.
OPTIONS --user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
--interactive if set to true (default), only the required password options are prompted.
--hosts a comma separated (,) list of values allowed in the host request header to select the current virtual server. Each
virtual server that is configured to the same connection group must have a unique hosts value for that group.
--httplisteners optional; a comma separated (,) list of HTTP listener IDs. Required only for a virtual server that is not the
default virtual server.
--defaultwebmodule standalone web module associated with this virtual server by default.
--state determines whether a virtual server is active (on) or inactive (off or disabled). Default is active (on). When
inactive, the virtual server does not service requests.
--logfile name of the file where the log has to be written to.
--property optional attributes name/value pairs for configuring the connection pool.
OPERANDS
virtual_server_id identifies the unique ID for the virtual server to be created. This virtual server ID cannot begin with a number.
Example 1: Using create-virtual-server
asadmin> create-virtual-server --user admin1 --password adminadmin1
--host pigeon --port 5001 --httplisteners http-listener-1 --defaultwebmodule simple
--state on --logfile server.log --property User=admin:Password=admin
--hosts sample1,sample2 sample_vs1
Command create-virtual-server executed successfully
Where sample_vs1 is the virtual server created.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-delete-virtual-server(1AS), asadmin-list-virtual-server(1AS)J2EE 1.4 SDK March 2004 asadmin-create-virtual-server(1AS)