SiNgAuTaRa - Live with EMC # NetApp # Solaris # Linux # UNIX

September 13, 2006

command hardware checking

Filed under: solaris, unix

good info to learn.

# prtconf -v

- system configuration, memory size, pci

# psrinfo -v

- cpu size and speed

# iostat

- iostat utility iteratively reports terminal, disk, and
tape I/O activity, as well as CPU utilization

# mpstat

- mpstat reports per-processor statistics in tabular form

# vmstat

- vmstat reports virtual memory statistics regarding process, virtual memory, disk, trap, and CPU activity

# bash-2.03$ pwd
/usr/platform/SUNW,Ultra-60/sbin
#./prtdiag -v

-details hardware spec

how to block telnet sesion

Filed under: solaris, unix

Let’s says you want to block telnet session, follow details :

# vi /etc/inetd.conf
*then put comment out ‘#’ below
#telnet stream tcp6 nowait root /usr/sbin/in.telnetd in.telnetd
*then stop and restart services
# ./S72inetsvc stop
# ./S72inetsvc start

then try to telnet, sure cannot. but you still can used other like putty.

Get free blog up and running in minutes with Blogsome
Theme designed by Gary Rogers