...
root@RaspberryPi-Gateway:~# systemctl status snmpd ● snmpd.service - Simple Network Management Protocol (SNMP) Daemon. Loaded: loaded (/lib/systemd/system/snmpd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2020-07-29 15:03:46 UTC; 1min 19s ago Main PID: 205 (snmpd) CGroup: /system.slice/snmpd.service └─205 /usr/sbin/snmpd -f -C -c /usr/ccsp/snmp/snmpd.conf -M /usr/share/snmp/mibs -Le Jul 29 15:03:46 RaspberryPi-Gateway snmpd[205]: pcilib: pci_init failed Jul 29 15:03:46 RaspberryPi-Gateway snmpd[205]: Turning on AgentX master support. Jul 29 15:03:46 RaspberryPi-Gateway snmpd[205]: A SNMP version other than 3 was requested with (D)TLS; using 3 anyways Jul 29 15:03:46 RaspberryPi-Gateway snmpd[205]: A SNMP version other than 3 was requested with (D)TLS; using 3 anyways Jul 29 15:03:46 RaspberryPi-Gateway snmpd[205]: A SNMP version other than 3 was requested with (D)TLS; using 3 anyways Jul 29 15:03:46 RaspberryPi-Gateway snmpd[205]: A SNMP version other than 3 was requested with (D)TLS; using 3 anyways Jul 29 15:03:46 RaspberryPi-Gateway snmpd[205]: NET-SNMP version 5.8 Jul 29 15:03:46 RaspberryPi-Gateway systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon.. Jul 29 15:03:55 RaspberryPi-Gateway snmpd[205]: Name of an interface changed. Such interfaces will keep its old name in IF-MIB. Jul 29 15:04:25 RaspberryPi-Gateway snmpd[205]: IfIndex of an interface changed. Such interfaces will appear multiple times in IF-MIB. root@RaspberryPi-Gateway:~# ls /lib/systemd/system/snmpSubAgent.service /lib/systemd/system/snmpSubAgent.service
root@RaspberryPi-Gateway:~# systemctl status snmpSubAgent ● snmpSubAgent.service - SNMP Subagent service Loaded: loaded (/lib/systemd/system/snmpSubAgent.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2020-07-29 15:04:05 UTC; 1min 29s ago Main PID: 2624 (snmp_subagent) CGroup: /system.slice/snmpSubAgent.service └─2624 /usr/bin/snmp_subagent &
Jul 29 15:04:05 RaspberryPi-Gateway systemd[1]: Started SNMP Subagent service. Jul 29 15:04:06 RaspberryPi-Gateway snmp_subagent[2624]: unknown snmp version 193 Jul 29 15:04:06 RaspberryPi-Gateway snmp_subagent[2624]: NET-SNMP version 5.8 AgentX subagent connected Jul 29 15:04:06 RaspberryPi-Gateway snmp_subagent[2624]: PID path is /var/tmp/snmp_subagent_v2.pid Jul 29 15:04:06 RaspberryPi-Gateway snmp_subagent[2624]: ccsp-snmp-subagent is up and running. root@RaspberryPi-Gateway:~# |
---|
Netstat Command
Using netstat command to check the snmpd status
root@RaspberryPi-Gateway:~# netstat -lutpn | grep snmp netstat: showing only processes with your user ID tcp 0 0 127.0.0.1:1161 0.0.0.0:* LISTEN 205/snmpd tcp 0 0 127.0.0.1:705 0.0.0.0:* LISTEN 205/snmpd udp 0 0 0.0.0.0:10161 0.0.0.0:* 205/snmpd udp 0 0 0.0.0.0:10163 0.0.0.0:* 205/snmpd udp 0 0 0.0.0.0:161 0.0.0.0:* 205/snmpd udp 0 0 :::10161 :::* 205/snmpd udp 0 0 :::10163 :::* 205/snmpd udp 0 0 :::161 :::* 205/snmpd root@RaspberryPi-Gateway:~#
|
---|
Execution Commands
Using snmpget/snmpset commands are used to control and monitor the Gateway device.
...
Troubleshooting
Please check whether the snmp-subagent,snmpd process are running or not by using PS command.
snmp Logs
SNMP Logs will be generated in below path,
Location of SNMP MIB and CONF files