mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-12-20 12:32:16 +01:00
snmp: add MIB location and fix syntax error due line break
This commit is contained in:
parent
6b38a32cb1
commit
c4eaab5a8a
@ -189,15 +189,27 @@ After commit the resulting configuration will look like:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VyOS MIBs
|
||||||
|
^^^^^^^^^
|
||||||
|
|
||||||
|
All SNMP MIBs are located in each image of VyOS here: ``/usr/share/snmp/mibs/``
|
||||||
|
|
||||||
|
you are be able to download the files with the a activate ssh service like this
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
scp -r vyos@your_router:/usr/share/snmp/mibs /your_folder/mibs
|
||||||
|
|
||||||
|
|
||||||
SNMP Extensions
|
SNMP Extensions
|
||||||
^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
To extend SNMP agent functionality, custom scripts can be executed every time
|
To extend SNMP agent functionality, custom scripts can be executed every time
|
||||||
the agent is being called. This can be achieved by using ``arbitrary extension
|
the agent is being called. This can be achieved by using
|
||||||
commands``_. The first step is to create a functional script of course, then
|
``arbitrary extensioncommands``. The first step is to create a functional
|
||||||
upload it to your VyOS instance via the command ``scp your_script.sh
|
script of course, then upload it to your VyOS instance via the command
|
||||||
vyos@your_router:/config/user-data``. Once the script is uploaded, it needs to
|
``scp your_script.sh vyos@your_router:/config/user-data``.
|
||||||
be configured via the command below.
|
Once the script is uploaded, it needs to be configured via the command below.
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user