set interfaces ethernet eth0 address '192.168.10.11/24' set service snmp community public network '192.168.10.0/24' commit set interfaces ethernet eth0 address '192.168.10.12/24' set interfaces ethernet eth0 address '192.168.10.13/24' set interfaces ethernet eth0 address '192.168.10.14/24' set interfaces ethernet eth0 address '192.168.10.15/24' set interfaces ethernet eth0 address '192.168.10.16/24' set interfaces ethernet eth0 address '192.168.10.17/24' commit
Logs
vyos@r2-epa# commit [ interfaces ethernet eth0 address 192.168.10.17/24 ] Job for snmpd.service failed. See 'systemctl status snmpd.service' and 'journalctl -xn' for details. [edit] vyos@r2-epa# vyos@r2-epa# systemctl status snmpd.service ● snmpd.service - LSB: SNMP agents Loaded: loaded (/etc/init.d/snmpd) Active: failed (Result: start-limit) since Wed 2020-09-16 15:07:33 UTC; 1min 53s ago Process: 6887 ExecStop=/etc/init.d/snmpd stop (code=exited, status=0/SUCCESS) Process: 6850 ExecStart=/etc/init.d/snmpd start (code=exited, status=0/SUCCESS) [edit]
Journalctl
vyos@r2-epa# sudo journalctl -xn -- Logs begin at Wed 2020-09-16 14:39:29 UTC, end at Wed 2020-09-16 15:09:51 UTC. -- Sep 16 15:09:46 r2-epa bgpd[1075]: [EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]): Sep 16 15:09:46 r2-epa ospfd[1094]: [EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]): Sep 16 15:09:46 r2-epa ospf6d[1098]: [EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]): Sep 16 15:09:48 r2-epa systemd[1]: [email protected] holdoff time over, scheduling restart. Sep 16 15:09:48 r2-epa systemd[1]: Stopping Serial Getty on ttyS0... -- Subject: Unit [email protected] has begun shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit [email protected] has begun shutting down. Sep 16 15:09:48 r2-epa systemd[1]: Starting Serial Getty on ttyS0... -- Subject: Unit [email protected] has begun with start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit [email protected] has begun starting up. Sep 16 15:09:48 r2-epa systemd[1]: Started Serial Getty on ttyS0. -- Subject: Unit [email protected] has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit [email protected] has finished starting up. -- -- The start-up result is done. Sep 16 15:09:48 r2-epa agetty[7117]: /dev/ttyS0: not a tty Sep 16 15:09:51 r2-epa sudo[7120]: vyos : TTY=pts/0 ; PWD=/home/vyos ; USER=root ; COMMAND=/bin/journalctl -xn Sep 16 15:09:51 r2-epa sudo[7120]: pam_unix(sudo:session): session opened for user root by vyos(uid=0) [edit] vyos@r2-epa#
Version
vyos@r2-epa# run show version Version: VyOS 1.2.6-epa1 Release Train: crux Built by: Sentrium S.L. Built on: Thu 13 Aug 2020 11:57 UTC Build UUID: 4e509d46-5370-4be1-82bd-83ccf0f9690c Build Commit ID: fddba995759ec4
The new implementation in 1.3
https://github.com/vyos/vyos-1x/blob/40ca599350731a743a0d999205df10829017a783/python/vyos/snmpv3_hashgen.py#L43