I'm finally getting around to testing the code snippets you've provided. Here is the code I've added to my script as per the suggestion. The code is allowing me to connect to the list of servers from the $SOURCE_FILE, but I'm not capturing the vars from the first line of the 'IFS=$'\t' read' line. There is also no progress on which Input ip I'm connecting too when I'm in this read loop so I can't see if it's working.
My script ended after running through about 50 servers with the following error - id: cannot find name for group ID 1000.
Here is how I added the code to my script. I don't think I've added it correctly. Any pointers on what I did wrong?
HI,
Can't seem to find anything on the forums to fix this.
I have a file, one line within this will not have a specific string at the end.
I have the string, but need to append it to the specific line which has it missing.
I need to use a variable for this, $string - I am using double... (13 Replies)
Hey guys, new problem....im not being able to seperate variables.
the code runs like this...
OPTIONS=$(awk '{print $2}' /etc/fstab}
a=$(zenity --list --text "Mount points selection" --radiolist --column "choice" --column "mountpt" FALSE $OPTIONS); echo $a
Note: the result i get is that... (2 Replies)
Hi there
I found the Command to send commands to other servers like:
sv01> ssh user@sv02 'ps -ef'
But I cant use Variables from a script i want to execute on another server like:
sv01> ssh user@sv02 'cd $SCRIPTHOME'
although the variable is set on sv01.
How can I run commands on sv02 with... (2 Replies)
Hi All,
I need to execute a SQL via shell script and i am connecting to Oracle DB by this way $USERNAME1/$PASSWORD1@$STRING1 and i need to get username, password and string from someother file stored in the Unix Directory. $Username, $Password and $String is stored in File A in Path A and i want... (1 Reply)
Requirement:
Run a shell script with below inputs
file name
checksum
path
the script should go to multiple servers (around 35) and verify the input cksum and if there is a mismatch display a simple message to the user that cksum verification failed.
host details, user id /... (1 Reply)
Hi,
I have script1.sh on 3 servers. I want to collect output report generated by them to a single server and append all the reports. Please tell me how can i do this? (2 Replies)
Hello,
I have access to several linux servers (mostly centos based) located in a DC in another country.
from day to day I need to login to each of them to do some work (they dont have gui/window manager installed, I work only from console), or even to just do a check like df -h for disc usage.... (3 Replies)
Hi,
I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step:
#!/bin/bash
# LAN SSH KEYS DISCOVERY SCRIPT
</etc/passwd \
grep /bin/bash |
cut -d: -f6 |
sudo xargs -i -- sh -c '
&& cat... (11 Replies)
Greetings Experts,
I am working for a bank client and have a question on connect-direct and SFTP.
We are using Linux RedHat servers. We use connect-direct to transfer (NDM) files from one server to another server. At times, we manually transfer the files using SFTP from one server to another... (2 Replies)
Discussion started by: chill3chee
2 Replies
LEARN ABOUT DEBIAN
msgcache
MSGCACHE(8) System Manager's Manual MSGCACHE(8)NAME
msgcache - Cache client messages for later pickup by hobbitfetch
SYNOPSIS
msgcache [options]
DESCRIPTION
msgcache implements a Xymon message cache. It is intended for use with clients which cannot deliver their data to the Xymon server in the
normal way. Instead of having the client tools connect to the Xymon server, msgcache runs locally and the client tools then deliver their
data to the msgcache daemon. The msgcache daemon is then polled regularly by the hobbitfetch(8) utility, which collects the client messages
stored by msgcache and forwards them to the Xymon server.
NOTE: When using msgcache, the BBDISP setting for the clients should be BBDISP=127.0.0.1 instead of pointing at the real Xymon server.
RESTRICTIONS
Clients delivering their data to msgcache instead of the real Xymon server will in general not notice this. Specifically, the client con-
figuration data provided by the Xymon server when a client delivers its data is forwarded through the hobbitfetch / msgcache chain, so the
normal centralized client configuration works.
However, other commands which rely on clients communicating directly with the Xymon server will not work. This includes the config and
query commands which clients may use to fetch configuration files and query the Xymon server for a current status.
The download command also does not work with msgcache. This means that the automatic client update facility will not work for clients com-
municating via msgcache.
OPTIONS
--listen=IPADDRESS[:PORT]
Defines the IP-address and portnumber where msgcache listens for incoming connections. By default, msgcache listens for connections
on all network interfaces, port 1984.
--server=IPADDRESS[,IPADDRESS]
Restricts which servers are allowed to pick up the cached messages. By default anyone can contact the msgcache utility and request
all of the cached messages. This option allows only the listed servers to request the cached messages.
--max-age=N
Defines how long cached messages are kept. If the message has not been picked up with N seconds after being delivered to msgcache,
it is silently discarded. Default: N=600 seconds (10 minutes).
--daemon
Run as a daemon, i.e. msgcache will detach from the terminal and run as a background task
--no-daemon
Run as a foreground task. This option must be used when msgcache is started by hobbitlaunch(8) which is the normal way of running
msgcache.
--pidfile=FILENAME
Store the process ID of the msgcache task in FILENAME.
--logfile=FILENAME
Log msgcache output to FILENAME.
--debug
Enable debugging output.
SEE ALSO hobbitfetch(8), xymon(7)Xymon Version 4.2.3: 4 Feb 2009 MSGCACHE(8)