1
0

IncludeHeaderSnmpPort.txt 906 B

12345678910111213141516171819202122232425262728293031
  1. ---++ Список оборудования по портам
  2. %SEARCH{
  3. "Parent='%BASETOPIC%' and ParentPort"
  4. topic="*"
  5. type="query"
  6. nosearch="on"
  7. nototal="on"
  8. header="|*Port*|*Name*|*Model*|*Description*|"
  9. format="| [[$topic][$formfield(ParentPort)]] | $formfield(Name) | $formfield(Vendor) $formfield(DeviceModel) | $formfield(Description) |"
  10. order="formfield(ParentPort)"
  11. }%
  12. ---++ Состояние портов
  13. <div id="container1"></div>
  14. <script type="text/javascript">
  15. $(function() {
  16. $("#container1").load("%SCRIPTURLPATH{"rest"}%/RenderPlugin/tag",
  17. { name: 'SWITCHINFO',
  18. host: '%FORMFIELD{"DeviceIP" topic="%BASETOPIC%"}%',
  19. vendor: '%FORMFIELD{"Vendor" topic="%BASETOPIC%"}%',
  20. community: '%FORMFIELD{"Community" topic="%BASETOPIC%"}%',
  21. model: '%FORMFIELD{"DeviceModel" topic="%BASETOPIC%"}%',
  22. topic: '%BASEWEB%.%BASETOPIC%',
  23. web: '%BASEWEB%',
  24. render: true }
  25. );
  26. });
  27. </script>