如何使用 SNMP 查找启用 snmp 的设备型号

发布于 12-15 22:13 字数 135 浏览 2 评论 0原文

是否有一个通用的 OID,以便我可以获得它的型号。 适用于 Cisco、Juniper、Alcatel 等设备...

例如 sonicWall 路由器 企业.8741.2.1.1.1.0 = snwlSysModel = "TZ 100"

is there a generic OID(s) so that i can get it's Model Number.
for devices like Cisco, Juniper, Alcatel etc...

For example for sonicWall Router
enterprises.8741.2.1.1.1.0 = snwlSysModel = "TZ 100"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

傾旎2024-12-22 22:13:46

不幸的是,没有。有一些对象可以帮助您获得线索,但没有任何对象可以直接列出版本。这是最好的开始:

SNMPv2-MIB::sysObjectID
sysObjectID OBJECT-TYPE
  -- FROM       SNMPv2-MIB, RFC1213-MIB
  SYNTAX        OBJECT IDENTIFIER
  MAX-ACCESS    read-only
  STATUS        current
  DESCRIPTION   "The vendor's authoritative identification of the
            network management subsystem contained in the entity.
            This value is allocated within the SMI enterprises
            subtree (1.3.6.1.4.1) and provides an easy and
            unambiguous means for determining `what kind of box' is
            being managed.  For example, if vendor `Flintstones,
            Inc.' was assigned the subtree 1.3.6.1.4.1.424242,
            it could assign the identifier 1.3.6.1.4.1.424242.1.1
            to its `Fred Router'."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) system(1) 2 }

然后查看 HOST-RESOURCES-MIB 以及 ENTITY-MIB(如果支持)。

Unfortunately, no. There are a few objects to help you get a clue but nothing that lists versions outright. This is the best one to start with:

SNMPv2-MIB::sysObjectID
sysObjectID OBJECT-TYPE
  -- FROM       SNMPv2-MIB, RFC1213-MIB
  SYNTAX        OBJECT IDENTIFIER
  MAX-ACCESS    read-only
  STATUS        current
  DESCRIPTION   "The vendor's authoritative identification of the
            network management subsystem contained in the entity.
            This value is allocated within the SMI enterprises
            subtree (1.3.6.1.4.1) and provides an easy and
            unambiguous means for determining `what kind of box' is
            being managed.  For example, if vendor `Flintstones,
            Inc.' was assigned the subtree 1.3.6.1.4.1.424242,
            it could assign the identifier 1.3.6.1.4.1.424242.1.1
            to its `Fred Router'."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) system(1) 2 }

followed by looking through the HOST-RESOURCES-MIB and, if supported, the ENTITY-MIB.

笨死的猪2024-12-22 22:13:46
entPhysicalIndex entPhysicalIndex   1.3.6.1.2.1.47.1.1.1.1.1    OBJECT-TYPE
entPhysicalSoftwareRev entPhysicalSoftwareRev   1.3.6.1.2.1.47.1.1.1.1.10   OBJECT-TYPE
entPhysicalSerialNum entPhysicalSerialNum   1.3.6.1.2.1.47.1.1.1.1.11   OBJECT-TYPE
entPhysicalMfgName entPhysicalMfgName   1.3.6.1.2.1.47.1.1.1.1.12   OBJECT-TYPE
entPhysicalModelName entPhysicalModelName   1.3.6.1.2.1.47.1.1.1.1.13   OBJECT-TYPE
entPhysicalAlias entPhysicalAlias   1.3.6.1.2.1.47.1.1.1.1.14   OBJECT-TYPE
entPhysicalAssetID entPhysicalAssetID   1.3.6.1.2.1.47.1.1.1.1.15   OBJECT-TYPE
entPhysicalIsFRU entPhysicalIsFRU   1.3.6.1.2.1.47.1.1.1.1.16   OBJECT-TYPE
entPhysicalDescr entPhysicalDescr   1.3.6.1.2.1.47.1.1.1.1.2    OBJECT-TYPE
entPhysicalVendorType entPhysicalVendorType 1.3.6.1.2.1.47.1.1.1.1.3    OBJECT-TYPE
entPhysicalContainedIn entPhysicalContainedIn   1.3.6.1.2.1.47.1.1.1.1.4    OBJECT-TYPE
entPhysicalClass entPhysicalClass   1.3.6.1.2.1.47.1.1.1.1.5    OBJECT-TYPE
entPhysicalParentRelPos entPhysicalParentRelPos 1.3.6.1.2.1.47.1.1.1.1.6    OBJECT-TYPE
entPhysicalName entPhysicalName 1.3.6.1.2.1.47.1.1.1.1.7    OBJECT-TYPE
entPhysicalHardwareRev entPhysicalHardwareRev   1.3.6.1.2.1.47.1.1.1.1.8    OBJECT-TYPE
entPhysicalFirmwareRev entPhysicalFirmwareRev   1.3.6.1.2.1.47.1.1.1.1.9    OBJECT-TYPE
entPhysicalIndex entPhysicalIndex   1.3.6.1.2.1.47.1.1.1.1.1    OBJECT-TYPE
entPhysicalSoftwareRev entPhysicalSoftwareRev   1.3.6.1.2.1.47.1.1.1.1.10   OBJECT-TYPE
entPhysicalSerialNum entPhysicalSerialNum   1.3.6.1.2.1.47.1.1.1.1.11   OBJECT-TYPE
entPhysicalMfgName entPhysicalMfgName   1.3.6.1.2.1.47.1.1.1.1.12   OBJECT-TYPE
entPhysicalModelName entPhysicalModelName   1.3.6.1.2.1.47.1.1.1.1.13   OBJECT-TYPE
entPhysicalAlias entPhysicalAlias   1.3.6.1.2.1.47.1.1.1.1.14   OBJECT-TYPE
entPhysicalAssetID entPhysicalAssetID   1.3.6.1.2.1.47.1.1.1.1.15   OBJECT-TYPE
entPhysicalIsFRU entPhysicalIsFRU   1.3.6.1.2.1.47.1.1.1.1.16   OBJECT-TYPE
entPhysicalDescr entPhysicalDescr   1.3.6.1.2.1.47.1.1.1.1.2    OBJECT-TYPE
entPhysicalVendorType entPhysicalVendorType 1.3.6.1.2.1.47.1.1.1.1.3    OBJECT-TYPE
entPhysicalContainedIn entPhysicalContainedIn   1.3.6.1.2.1.47.1.1.1.1.4    OBJECT-TYPE
entPhysicalClass entPhysicalClass   1.3.6.1.2.1.47.1.1.1.1.5    OBJECT-TYPE
entPhysicalParentRelPos entPhysicalParentRelPos 1.3.6.1.2.1.47.1.1.1.1.6    OBJECT-TYPE
entPhysicalName entPhysicalName 1.3.6.1.2.1.47.1.1.1.1.7    OBJECT-TYPE
entPhysicalHardwareRev entPhysicalHardwareRev   1.3.6.1.2.1.47.1.1.1.1.8    OBJECT-TYPE
entPhysicalFirmwareRev entPhysicalFirmwareRev   1.3.6.1.2.1.47.1.1.1.1.9    OBJECT-TYPE
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文