From 0e786d4b7a4feb878a80b0d3cc26e9defb32a92c Mon Sep 17 00:00:00 2001 From: Dmitry Luhtionov Date: Mon, 21 Oct 2019 16:34:46 +0300 Subject: [PATCH] Add Eltex.RG.get_inventory script --- sa/profiles/Eltex/RG/get_inventory.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sa/profiles/Eltex/RG/get_inventory.py diff --git a/sa/profiles/Eltex/RG/get_inventory.py b/sa/profiles/Eltex/RG/get_inventory.py new file mode 100644 index 0000000000..08dc939f14 --- /dev/null +++ b/sa/profiles/Eltex/RG/get_inventory.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# --------------------------------------------------------------------- +# Eltex.RG.get_inventory +# --------------------------------------------------------------------- +# Copyright (C) 2007-2019 The NOC Project +# See LICENSE for details +# --------------------------------------------------------------------- + +# NOC modules +from noc.core.script.base import BaseScript +from noc.sa.interfaces.igetinventory import IGetInventory + + +class Script(BaseScript): + name = "Eltex.RG.get_inventory" + interface = IGetInventory + + def execute_snmp(self): + v = self.scripts.get_version() + return [{"type": "CHASSIS", "vendor": "ELTEX", "part_no": [v["platform"]]}] -- GitLab