#!/usr/bin/ksh
#memory calculator
um=`svmon -G | tail -1 | awk {'print $3'}`
((um=um / 256))
tm=`lsattr -El sys0 -a realmem | awk {'print $2'}`
((tm=tm / 1000))
((fm=tm - um))
echo "\n\n-----------------------";
echo "System : (`hostname`)";
echo "-----------------------\n\n";
echo "\n\n-----------------------";
echo " Users Login information \n";
for ENTRY in `finger | cut -d " " -f1 | grep -v Login | uniq`
do
echo "`finger -l $ENTRY | head -1 | cut -d \" \" -f14` ---> `finger -l $ENTRY | awk '{ print $2 }' | tail -2 | head -1`";
#finger -l $ENTRY | awk '{ print $2 }' | tail -2 | head -1;
done
echo "-----------------------\n";
echo "\n----------------------";
echo "Memory Information\n\n";
echo "total memory = ${tm}MB"
echo "free memory = ${fm}MB"
echo "used memory = ${um}MB"
echo "\n\n-----------------------\n";
Posting insightful information thus encompassing everything technical to assist in the enlightenment of others!
Wednesday, April 29, 2015
Find out AIX memory information
Tuesday, March 17, 2015
Increase the number of telnet sessions allowed in Linux
Increase the number of telnet sessions allowed
Under Linux (Red Hat / CentOS Linux) xinetd is used to control the telnet server. The eXtended InterNET Daemon, is an open-source daemon which runs on on many Unix systems and manages Internet-based connectivity. It offers a more secure extension to or version of inetd, the Internet daemon.
xinetd features access control mechanisms, extensive logging capabilities, and the ability to make services available based on time. It can place limits on the number of servers that the system can start, and has deployable defence mechanisms to protect against port scanners, among other things.
You need to edit /etc/xinetd.conf or /etc/xinetd.conf/telnet file and set instances = unlimited:
# vi /etc/xinetd.confEdit instances line so that it should read as follows:instances = unlimitedORinstances = 300Restart the xinetd service:# /etc/init.d/xinetd restart
Subscribe to:
Posts (Atom)