summaryrefslogtreecommitdiffstats
path: root/3rdparty/openpgm-svn-r1085/pgm/net-snmp.txt
blob: 549bcc293b8f7b5ad99b906c17242da17885e806 (plain) (blame)
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
net-snmp is hard coded on mib location, only the mib file names can
be specified outside of snmptranslate.

$ mkdir -p ~/.snmp/mibs
$ cp mibs/PGM-MIB-petrova-01.txt ~/.snmp/mibs

Basic test:

$ snmptranslate -m ALL -IR pgmMIB
PGM-MIB::pgmMIB

Display full pretty tree:

$ snmptranslate -m ALL -Tp -IR pgmMIB
+--pgmMIB(112)
   |
   +--pgm(1)
   |  |
   |  +--pgmNetworkElement(1)
   |  |  |
...


Now the framework tool can be used:

$ env MIBS="+ALL" mib2c pgmMIB

...

To run with SNMP install snmpd, enable "master agentx" and walk:

$ env MIBS="+ALL" snmpwalk -v 1 -c public localhost pgmMIB
End of MIB