查看CPU 1. % cd /usr/pl*/sun4u/sbin % ./prtdiag -v |more 系统配置:Sun Microsystems sun4u SUNW,Sun-Blade-1000 (UltraSPARC-III) 系统时钟频率:150 MHz 内存大小:1GB ==================================== CPUs ==================================== E$ CPU CPU CPU Freq Size Implementation Mask Status Location --- -------- ...
by 天堂@地狱 - Linux文档专区 - 2008-04-29 13:31:04 阅读(548) 回复(0)
有个工作需要从unix系统下得SYBASE数据库中取数据,但偶没有用过unix,不知道怎么获得端口配置信息,所以根本连不上,哪位大哥帮帮忙啊?
AIX: topas HP-UX: top Solaris: prstat vmstat psrinfo mpstat 本文来自Chinaunix博客,如果查看原文请点:http://blog.chinaunix.net/u/4110/showart_252206.html
项目中有个监控部分,要用JAVA定期获取unix下的系统信息(CPU、RAM、文件系统、网络连接)内容,并写到数据库中。 想到的方法一是执行unix下的shell命令,输出到文件,再用JAVA读文件并解析文件内容, JAVA下怎么样执行shell,还有没有其他更好的方法?
AIX: /usr/sbin/lsattr -El sys0 -a realmem /usr/sbin/lsps -s HP-UX: grep Physical /var/adm/syslog/syslog.log /usr/sbin/swapinfo -t LINUX: cat /proc/meminfo|grep MemTotal /sbin/swapon -s SOLARIS: /usr/sbin/prtconf|grep "Memory size" /usr/sbin/swap -s 本文来自Chinaunix博客,如果查看原文请点:http://blog.chinaunix.net/u/15976/showart_270754.html