Required cpu , memory, df output in mail for multiple servers
I have prepared script which will collect cpu, memory and df out out for multiple server and send in one mail, but my script only run in one server, and when I send to mail, it shows in text format. it should be show actual format.
if any one can help , that would be very grateful.
script ---------------
Last edited by Neo; 12-02-2019 at 10:38 AM..
Reason: Code Tags Please See YT Video on this: https://youtu.be/4BuPvWJV__k
Hi all
I want to know, is there any e-mail client in linux which supports HTTP mail servers. i am using fedora2. as far as investigated or tried I only find POP or IMAP mail server configuration in mozilla mail, ximian and there were no option such as HTTP. I can easily see my e-mail while i am... (0 Replies)
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
Hi
Is there any shell script that accesses multiple linux servers to get details such as CPU usage, RAM used etc. The access of the servers must be parallel not serial in the sense it must ping all the servers at a time to get information.The script has to be triggered from a host system and get... (7 Replies)
Hello,
I am a Unix newbie and I need a script in which I can run a command on multiple servers at work. The command is to start a storage process and I am sick of doing it manually on all servers..
Here's the command:
/opt/bss/bin/snmptable -CB -v2c -c P67LzuBm hostname hrStorageTable... (4 Replies)
Hello,
Looking for some help. I am trying to gather data at each server showing when the physical CPU is being used the most based on a weekly timeframe.
I know this data can be seen through NMON but with multiple servers in our environment it could take a real long time. is there a easier... (4 Replies)
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Hola Greetings Experts ,
I have records spreaded across multiple lines. in attached log.txt i want output to be in 1 line like this below Atached as Output.txt.
In brief
Output related to 1 line is spreaded across multiple row I wanted it to be in 1 row .
Please opem the file in notepad... (4 Replies)
Hello geeks once again, many thanks for help in times past, you guys are awesome!
But am here again, but now this is way heavy for me. Find below for my challenge:
*** I need to collect CPU & RAM stats across 26 servers.
*** I don't have the luxury of deploying an NMS, if I had it would... (3 Replies)
HI,
I have two scripts which is sending the mail in html format.
Script 1:
1.IFILE=/home/home01/Report.csv
if #Checks if file exists and readable
then
if awk -F, '{ T += $13 } END { exit(!T) }' ${IFILE}
then
awk -F, 'BEGIN{
c=split("3,4,8,9,13", col)
print "To:... (0 Replies)
Hi Experts,
Could you pls help with below query
I have written below script to capture disk utilization and then send the output on mail. But getting unformated output on mail
#!/bin/bash
echo "Hi Sur,">dfoutput.csv
printf '\n' >>dfoutput.csv
echo "Please find BAYSQUAR2 filesystem... (4 Replies)
Discussion started by: as7951
4 Replies
LEARN ABOUT CENTOS
thin_dump
THIN_DUMP(8) System Manager's Manual THIN_DUMP(8)NAME
thin_dump - dump thin provisioning metadata from device or file to standard output
SYNOPSIS
thin_dump [options] {device|file}
DESCRIPTION
thin_dump dumps binary thin provisioning metadata (optionally from alternate block; see option --metadata-snap) created by the device-map-
per thin provisioning target on a device or file to standard output for analysis or postprocessing in either XML or human readable format.
XML formated metadata can be fed into thin_restore (see thin_restore(8)) in order to put it back onto a metadata device (to process by the
device-mapper target) or file.
-f, --format {xml|human_readable}
Print output in XML or human readable format.
-r, --repair
Repair the metadata whilst dumping it.
-m, --metadata_snap [block#]
Dump metadata snapshot created by device-mapper thin provisioning target. If block is not provided, access the default metadata snapshot
created by the thin provisioning device-mapper target, else try the one at block#. See the thin provisioning target documentation on how
to create or release a metadata snapshot and retrieve the block number from the kernel.
-h, --help
Print help and exit.
-V, --version
Output version information and exit.
EXAMPLES
Dumps the thin provisioning metadata on logical volume /dev/vg/metadata to standard output in human readable format:
thin_dump -f human_redable /dev/vg/metadata
Dumps the thin provisioning metadata on logical volume /dev/vg/metadata to standard output in XML format:
thin_dump /dev/vg/metadata
Dumps the thin provisioning metadata snapshot on logical volume /dev/vg/metadata to standard output in human readable format (not process-
able by thin_restore(8) ):
thin_dump --format human_readable --metadata-snap /dev/vg/metadata
DIAGNOSTICS
thin_dump returns an exit code of 0 for success or 1 for error.
SEE ALSO thin_check(8)thin_repair(8)thin_restore(8)thin_rmap(8)thin_metadata_size(8)AUTHOR
Joe Thornber <ejt@redhat.com>
Heinz Mauelshagen <HeinzM@RedHat.com>
Red Hat, Inc. Thin Provisioning Tools THIN_DUMP(8)