summaryrefslogtreecommitdiff
path: root/op-mode-definitions/restart-snmp.xml.in
blob: 7de27df64aa3417e2e6a74d2c35092a5c81a6b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="restart">
    <children>
      <node name="snmp">
        <properties>
          <help>Restart SNMP service</help>
        </properties>
        <command>if cli-shell-api existsActive service snmp; then sudo systemctl restart snmpd.service; else echo "Service SNMP not configured"; fi</command>
      </node>
    </children>
  </node>
</interfaceDefinition>