BLOG main image
분류 전체보기 (65)
Ubuntu (6)
Laravel (2)
VMware (2)
Unix (2)
OpenSuse (2)
수영 (51)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
tistory 티스토리 가입하기!
'Linux'에 해당되는 글 4건
2010. 8. 25. 15:43
Linux Total CPU idle
% snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.2021.11.11.0
% snmpwalk -v 2c -c public localhost ssCpuIdle.0

Linux Total CPU Usage
% snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.2021.11.11.0 | awk '{print 100-$4}'
% snmpwalk -v 2c -c public localhost ssCpuIdle.0 | awk '{print 100-$4}'

Linux Total CPU Usage For mrtg target
% snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.2021.11.11.0 | awk '{print 100-$4 "\n" 100-$4}'  

Invididual CPU Usage (Windows 2003, Linux)
% snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.25.3.3.1.2
% snmpwalk -v 2c -c public localhost hrProcessorLoad

Total CPU Usage (Windows 2003, Linux)
% snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.25.3.3.1.2 | awk 'BEGIN {sum = 0;}; {sum += $4} ; END {printf("%d", sum/4)}'

Total CPU Usage For mrtg target (Windows 2003, Linux)
% snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.25.3.3.1.2 | awk 'BEGIN {sum = 0;}; {sum += $4} ; END {printf("%d\n%d\n", sum/4, sum/4)}'

Get all mib value
% snmpwalk -v 2c -c public localhost > FILENAME.txt

'Unix' 카테고리의 다른 글

Find SNMP MIB  (0) 2010.08.25
2010. 8. 25. 15:10

Get all mib
% snmpwalk -v 2c -c public localhost > all_mib.txt

View all_mib.txt and find to need mib value

Example
In all_mib.txt FILE
HOST-RESOURCES-MIB::hrProcessorLoad.768 = INTEGER: 1

% snmpwalk -v 2c -c public localhost hrProcessorLoad.768

Total CPU idle in Linux (Using net-snmp)
% snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.2021.11.11.0

'Unix' 카테고리의 다른 글

SNMP CPU  (0) 2010.08.25
2010. 8. 23. 19:07

http://www.nomachine.com
download --> NX Free Edition for Linux --> nxclient, nxnode, nxserver

% rpm -ivh nxclient-3.4.0-7.x86_64.rpm  nxnode-3.4.0-13.x86_64.rpm  nxserver-3.4.0-12.x86_64.rpm
% /etc/init.d/sshd restart
% /usr/NX/bin/nxserver --useradd USERNAME
or
% /usr/NX/bin/nxserver --useradd USERNAME --system

'OpenSuse' 카테고리의 다른 글

OpenSuse firewall modify & restart in terminal  (0) 2010.08.23
2010. 8. 23. 19:04

Edit following file
/etc/sysconfig/SuSEfirewall2
FW_SERVICES_ACCEPT_EXT="111.222.333.0/24,tcp,22 444.555.666.0/24,tcp,22 777.888.999.0/24,udp,161"

/etc/init.d/SuSEfirewall2_init restart
/etc/init.d/SuSEfirewall2_setup restart


 

'OpenSuse' 카테고리의 다른 글

Install freeNX Server in OpenSuse  (0) 2010.08.23
prev"" #1 next