Tuesday, September 18, 2018 5:01 PM

> Can you provide a short command line example showing how to test this
> using snmpget?

This is how I run it in my envir:

I put the mib file in my home folder under:
 $HOME/.snmp/mibs

Load the mib:
MIBS=+PTPBASE-MIB
export MIBS

Run the stack and snmp agent:
sudo ./ptp4l -f configs/default.cfg -Sm -i enp0s3&
sudo ./snmp4lptp -mq &

Run the master agent:
service snmpd restart

snmptable -c linuxptp -v 2c localhost:161 1.3.6.1.2.1.241.1.2.1 for current ds
snmpwalk -c linuxptp -v 2c localhost:161 1.3.6.1.2.1.241.1.2 for all ds

I excluded get since when I included that, the walk gave me both table and
single attributes inside and after some iterations I thought that the table
would be more neat to visualize.

But now when I look again at my drawings on the accessible parts in the MIB,
it is not the whole table that is read-only, only the attributes in it excluding
the indexes... 
Then I need to change back so that snmpget work instead of table...

/Anders



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to