summaryrefslogtreecommitdiff
path: root/op-mode-definitions/snmp.xml.in
blob: a0a47da40e0dd4af90f5b08fa9a8b78216c334e8 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="snmp">
        <properties>
          <help>Show status of SNMP on localhost</help>
        </properties>
        <children>
          <tagNode name="community">
            <properties>
              <help>Show status of SNMP community</help>
              <completionHelp>
                <script>${vyos_op_scripts_dir}/snmp.py --allowed</script>
              </completionHelp>
            </properties>
            <command>${vyos_op_scripts_dir}/snmp.py --community="$4"</command>
            <children>
              <tagNode name="host">
                <properties>
                  <help>Show status of SNMP on remote host</help>
                </properties>
                <command>${vyos_op_scripts_dir}/snmp.py --community="$4" --host "$6"</command>
              </tagNode>
            </children>
          </tagNode>
          <node name="mib">
            <properties>
              <help>Show SNMP MIB information</help>
            </properties>
            <children>
              <node name="ifmib">
                <properties>
                  <help>Show all SNMP interfaces MIB information</help>
                </properties>
                <command>${vyos_op_scripts_dir}/snmp_ifmib.py</command>
                <children>
                  <tagNode name="ifAlias">
                    <properties>
                      <help>Show SNMP ifAlias for specified interface</help>
                      <completionHelp>
                        <script>${vyos_completion_dir}/list_interfaces.py</script>
                      </completionHelp>
                    </properties>
                    <command>${vyos_op_scripts_dir}/snmp_ifmib.py --ifalias="$6"</command>
                  </tagNode>
                  <tagNode name="ifDescr">
                    <properties>
                      <help>Show SNMP ifDescr for specified interface</help>
                      <completionHelp>
                        <script>${vyos_completion_dir}/list_interfaces.py</script>
                      </completionHelp>
                    </properties>
                    <command>${vyos_op_scripts_dir}/snmp_ifmib.py --ifdescr="$6"</command>
                  </tagNode>
                  <tagNode name="ifIndex">
                    <properties>
                      <help>Show SNMP ifDescr for specified interface</help>
                      <completionHelp>
                        <script>${vyos_completion_dir}/list_interfaces.py</script>
                      </completionHelp>
                    </properties>
                    <command>${vyos_op_scripts_dir}/snmp_ifmib.py --ifindex="$6"</command>
                  </tagNode>
                </children>
              </node>
            </children>
          </node>
          <node name="v3">
            <properties>
              <help>Show SNMP v3 status on localhost</help>
            </properties>
            <command>${vyos_op_scripts_dir}/snmp_v3.py --all</command>
            <children>
              <leafNode name="certificates">
                <properties>
                  <help>Show TSM certificates</help>
                </properties>
                <command>${vyos_op_scripts_dir}/snmp_v3_showcerts.sh</command>
              </leafNode>
              <leafNode name="group">
                <properties>
                  <help>Show the list of configured groups</help>
                </properties>
                <command>${vyos_op_scripts_dir}/snmp_v3.py --group</command>
              </leafNode>
              <leafNode name="trap-target">
                <properties>
                  <help>Show the list of configured targets</help>
                </properties>
                <command>${vyos_op_scripts_dir}/snmp_v3.py --trap</command>
              </leafNode>
              <leafNode name="user">
                <properties>
                  <help>Show the list of configured users</help>
                </properties>
                <command>${vyos_op_scripts_dir}/snmp_v3.py --user</command>
              </leafNode>
              <leafNode name="view">
                <properties>
                  <help>Show the list of configured views</help>
                </properties>
                <command>${vyos_op_scripts_dir}/snmp_v3.py --view</command>
              </leafNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>