RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
root@RaspberryPi-Gateway:~# ps aux | grep snmp 183 root 0:00 /usr/sbin/snmpd -f -C -c /usr/ccsp/snmp/snmpd.conf -M /usr/share/snmp/mibs -Le 2501 root 0:00 /usr/bin/snmp_subagent & 5570 root 0:00 grep snmp |
---|
root@RaspberryPi-Gateway:~# systemctl status snmpd Jul 29 15:03:46 RaspberryPi-Gateway snmpd[205]: pcilib: pci_init failed
Jul 29 15:04:05 RaspberryPi-Gateway systemd[1]: Started SNMP Subagent service. |
---|
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:~# |
---|
Using snmpget/snmpset commands are used to control and monitor the Gateway device.
...
are used to control and monitor the Gateway device.
snmpget command is used for particular OID .
snmpget -OQ -Ir -v 2c -c public < WAN_IP(erouter0 IP Address> <OID>
For Example,
root@RaspberryPi-Gateway:~# snmpget -OQ -Ir -v 2c -c public 192.168.0.108 1.3.6.1.4.1.17270.50.2.2.2.1.1.3.10001 SNMPv2-SMI::enterprises.17270.50.2.2.2.1.1.3.10001 = "New_SSID" |
---|
snmpset command is used for particular OID .
snmpset -OQ -Ir -v 2c -c private <WAN_IP(erouter0 IP Address)> <OID> s <VALUE>
For Example,
It will update the existing SSID to new SSID and will broadcast the new one. You can confirm the same by running snmpget command again or by checking in /nvram/hostapd0.conf file
root@RaspberryPi-Gateway:~# snmpset -OQ -Ir -v 2c -c private 192.168.0.108 1.3.6.1.4.1.17270.50.2.2.2.1.1.3.10001 s RDKB_RPI_2G SNMPv2-SMI::enterprises.17270.50.2.2.2.1.1.3.10001 = "RDKB_RPI_2G" root@RaspberryPi-Gateway:~# root@RaspberryPi-Gateway:~# |
---|
...
|
---|
snmpwalk command is used for to fetch all the oids under a tree
Command :
snmpwalk -t 60 -c public -v 2c <WAN IP : erouter0 IP Address> 1.3.6.1.4.1.17270
Here, this will list all the oids under 17270
root@RaspberryPi-Gateway:~# |
---|
Please check whether the snmp-subagent,snmpd process are running or not by using PS command.
SNMP Logs will be generated in below path,
root@RaspberryPi-Gateway:/rdklogs/logs# ls -l SNMP.txt.* -rw-r--r-- 1 root root 308441 Jul 30 16:00 SNMP.txt.0 -rw-r--r-- 1 root root 0 Jul 30 08:47 SNMP.txt.1 root@RaspberryPi-Gateway:/rdklogs/logs# |
---|
Please check whether the SNMP MIB xml files and conf are present in below location or not,