To fetch server details like Total CPU, Memory, Disk Usage, etc.. from central linux box and store in CSV format using Bash Script.
-
There are two option for remote server authentication
- If you have ssh password less authentication, then you can use this script without any changes
- if you don't have above option then you can install
sshpass
package and uncomment sshpass option in script
-
If you want details of windows server, then you must install WMI tool on your Linux Box and need some modification on windows server also. Refer this page to install WMI.
- It Supports Following OS:
- Linux
- Windows
- AIX ( under-construstion )
wget https://raw.github.com/rahulinux/get_server_info/master/get_srv_info.sh
chmod +x get_srv_info.sh
# Add server ip's in server list
echo '127.0.0.1 unix' >> /opt/servers.list
echo '192.168.1.10 win' >> /opt/servers.list
./get_srv_info.sh
Report issues on github issue page or fork the project (let me know if you do).
This Script is provided as-is under the MIT License