본문 바로가기

Hojung's Command List

Total Commands : 232

 (e)grep (6)
 * find large files (2)
 * System info (12)
 * Term Key (8)
 * use previous argu (1)
 *CD/DVD cmd (5)
 *DNS test (4)
 ab (2)
 apg (1)
 arping (4)
 at (1)
 awk (1)
 cal (2)
 cd and pushd (3)
 crontab (7)
 curl (4)
 dd (1)
 dhclient (1)
 dig (2)
 du (1)
 echo (1)
 editcap (1)
 ethtool (2)
 find (20)
 head (1)
 history (1)
 host (1)
 hping3 (6)
 ifconfig (3)
 lftp (1)
 logger (1)
 ls (2)
 lsof (2)
 mail (2)
 man (1)
 mergecap (1)
 mount (8)
 nc (netcat) (1)
 ncftpput (1)
 netcat(nc) (1)
 netstat (1)
 nice (2)
 nl (1)
 nmap (5)
 ntpdate (1)
 openssl (15)
 ping (1)
 pkill (1)
 ps (2)
 rar (1)
 recode (6)
 rename (3)
 rm (1)
 route (2)
 rpm (4)
 sed (4)
 smb (3)
 snmpwalk (2)
 sort (4)
 ssh (1)
 tar (6)
 tcpdump (10)
 top (1)
 touch (2)
 uniq (1)
 vi (11)
 wall (2)
 wget (3)
 yum (5)
 zip/unzip (6)

특정 OID로 snmp polling

snmpwalk -v2c -cpublic 10.72.10.23 .1.3.6.1.4.1.17163.1.4.5.1.2

Written by Hojung at 2010-11-03 17:49:00

Simple use of snmpwalk

snmpwalk -v2c -cpublic 127.0.0.1
snmpwalk -v2c -On -cpublic 127.0.0.1

# snmpwalk -v2c -cpublic 127.0.0.1
SNMPv2-MIB::sysDescr.0 = STRING: Linux test.f5net.com 2.4.21-1.2.2.8.0smp #2 SMP Sat Jan 13 11:01:15 PST 2007 i686
SNMPv2-MIB::sysObjectID.0 = OID: F5-BIGIP-SYSTEM-MIB::bigip1500
SNMPv2-MIB::sysUpTime.0 = Timeticks: (8595357) 23:52:33.57
SNMPv2-MIB::sysContact.0 = STRING: Customer Name <admin@customer.com>
SNMPv2-MIB::sysName.0 = STRING: edem.f5net.com
SNMPv2-MIB::sysLocation.0 = STRING: Network Closet 1
SNMPv2-MIB::sysServices.0 = INTEGER: 78
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
...

# snmpwalk -v2c -On -cpublic 127.0.0.1
.1.3.6.1.2.1.1.1.0 = STRING: Linux test.f5net.com 2.4.21-1.2.2.8.0smp #2 SMP Sat Jan 13 11:01:15 PST 2007 i686
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.3375.2.1.3.4.4
.1.3.6.1.2.1.1.3.0 = Timeticks: (8596319) 23:52:43.19
.1.3.6.1.2.1.1.4.0 = STRING: Customer Name <admin@customer.com>
.1.3.6.1.2.1.1.5.0 = STRING: edem.f5net.com
.1.3.6.1.2.1.1.6.0 = STRING: Network Closet 1
.1.3.6.1.2.1.1.7.0 = INTEGER: 78
.1.3.6.1.2.1.1.8.0 = Timeticks: (1) 0:00:00.01
.1.3.6.1.2.1.1.9.1.2.1 = OID: .1.3.6.1.2.1.31
.1.3.6.1.2.1.1.9.1.2.2 = OID: .1.3.6.1.6.3.1
...
Written by Hojung at 2010-05-23 11:08:55