-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrandom_snmp_notes.txt
44 lines (32 loc) · 1.36 KB
/
random_snmp_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Simple SNMP checks
#System Description: .1.3.6.1.2.1.1.1.0
#System Uptime .1.3.6.1.2.1.1.3.0
#System Name .1.3.6.1.2.1.1.5.0
#sysObjectID .1.3.6.1.2.1.1.2.0
#System Name
snmpget -v2c -c public 192.168.99.254 .1.3.6.1.2.1.1.5.0
tcp established connections
snmpget -v2c -c public 192.168.99.254 .1.3.6.1.2.1.6.9.0
Connection table
snmpbulkwalk -v2c -c public 192.168.99.254 .1.3.6.1.2.1.6.19
TCP listening sockets
snmpbulkwalk -v2c -c public 192.168.99.254 .1.3.6.1.2.1.6.20
snmpwalk -v2c -c public 192.168.99.254 .1.3.6.1
# Using Netscaler mibs
snmpbulkwalk -v2c -c public -m NS-ROOT-MIB -M /opt/librenms/mibs 192.168.99.254 1.3.6.1.4.1.5951
snmpwalk -v2c -c public -m NS-ROOT-MIB -M /opt/librenms/mibs 192.168.99.254 1.3.6.1.4.1.5951.4.1.1.23
snmpbulkwalk -v2c -c SVC -m NS-ROOT-MIB 192.168.99.254 .1.3.6.1
snmpget -v2c -c public -m NS-ROOT-MIB -M /opt/librenms/mibs 192.168.99.254 .1.3.6.1.4.1.5951.4.1.2.7
snmpwalk -v2c -c public -m NS-ROOT-MIB -M /opt/librenms/mibs 192.168.99.254 .1.3.6.1.4.1.5951.4.1.2.7.1.33
####
#snmp.conf elements
####
com2sec readonly default public
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation Somewhere
syscontact foo@foo.com
#Distro Detection
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
####