Thanks. I knew it could be done with ssh. But I was wondering if there is any way (any command) to find out disk usage for different filesystems not mounted on the server that you're script is running.
For now I'm getting the file system usage by connecting with ssh, but the downside is, I had to get ssh keys setup on all the hosts for my app id.
I have written a script that will calculate CPU usage and Memory usage of a particular process on AIX Unix. I know the PID and I am using the command --
# for CPU Usage
MSG_CPU_USG=`ps uax | grep ${PID} | awk {'print $3'}`
#for Memory Usage
MSG_MEM_USG=`ps uax | grep ${PID} | awk {'print... (0 Replies)
Hi,
I need to calculate time taken by a 100kb file for sftp between two servers. I am new to unix can some body please tell me how do this.
Thanks in advance...
Vivek (2 Replies)
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Hello folks,
i have a file courierimapuiddb that have contents like
1 1280206508 4
1 1280206466.V805I169cM853838.xxx
2 1280207962.V805I16d5M343672.xxx
3 1280208055.V805I16d6M20816.xxx
1280206508 above means total size and its decreasing when file added in directory. when total... (8 Replies)
Hi,
I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files.
File structure is same on both servers and for reference as follows:
27-Aug-2010... (4 Replies)
Hi Folks,
I am looking for a way to write a script to calculate swap usage in Solaris so that the current usage will be shown in Percentage value. Thanks!!
Based on 'swap -s' command
# swap -s
total: 1378936k bytes allocated + 1236880k reserved = 2615816k used, 2725104k available (2 Replies)
Hi,
Am doing an enhancements related to monitoring a Linux disk I/O statistics.
The /proc/diskstats file is used to get the each disk I/O statistics. But, It returns the raw value.
How to calculate the Disk Queue Length and Disk Busy time from the raw values.
Guide me. (1 Reply)
Hi,
I want to calculate the total cpu usage from the sar report. Say for example,
Linux 2.6.24-21-generic (blade10) 09/10/2012
04:54:36 PM CPU %user %nice %system %iowait %steal %idle
04:54:37 PM all 0.00 0.00 0.00 0.00 ... (1 Reply)
HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you.
=================
#!/bin/bash
TODAY="at $(date... (0 Replies)
Hi,
I want to get total number of cores on my all non-global zones on Solaris 10. I got two methods and both are giving different results. Below link is a script, which tells me that total cores are 8
Mandalika's scratchpad: Oracle Solaris: Show Me the CPU, vCPU, Core Counts and the... (4 Replies)