SNMP SysOID for Hardware Type Verification

Overview

This feature enables identification of the vendor and device model using the SNMP SysOID.

Feature Characteristics

This feature provides information about the device vendor and device model. The query is performed using the OID 1.3.6.1.2.1.1.2, where each number represents the following:

Number Description
1 International Organization for Standardization (ISO)
3 Organization identification schemes registered according to ISO/IEC 6523-2
6 Department of Defense open system interconnection network (DODNET)
1 Internet
2 Management
1 Structure of Management Information Version 2 (SMIv2)
Management Information Bases (MIBs)
1 System group
2 sysObjectID OBJECT-TYPE

And the return will be made by OID 1.3.6.1.4.1.<PEN_VENDOR>.2.<HW_ID>, whose meaning of each number is:

Number Description
1 International Organization for Standardization (ISO)
3 Organization identification schemes registered according to ISO/IEC 6523-2
6 Department of Defense open system interconnection network (DODNET)
1 Internet
4 Private projects
1 Organizations, individuals and other entities
<PEN_VENDOR> IANA registered number for Vendor
2 Vendor products ID
<HW_ID> Hardware (device) model ID

The numeric OID returned from the query is displayed transparently, as the identification is provided in string format. This enables identification of the device vendor MIB file name, the device vendor name, and the device model name used in the query.

Benefits

This feature enables identification of the device vendor and model through SNMP.

Prerequisites

Configure SNMP on the device.

Configuration

Topology

Configure SNMP.

Copy
OcNOS(config)# snmp-server view all .1 included vrf management

• Create an SNMP community and associate it with the management VRF.

Copy
OcNOS(config)# snmp-server community test vrf management

Enable the SNMP server on the management VRF.

Copy
OcNOS(config)#snmp-server enable snmp vrf management
OcNOS(config)#commit
OcNOS(config)#

The management VRF is used for SNMP configuration. However, it is not required to use the management VRF specifically. SNMP can also be configured on other VRFs as needed.

Validation

Copy
OcNOS#show running-config snmp 
snmp-server view all .1 included vrf management
snmp-server community test vrf management
snmp-server enable snmp vrf management
OcNOS#

Implementation Examples

Configure SNMP on the device.

Copy
OcNOS(config)#snmp-server enable snmp vrf management
OcNOS(config)#snmp-server view all .1 included vrf management
OcNOS(config)#snmp-server community test vrf management
OcNOS(config)#commit
OcNOS(config)#

Validation

Check the device model through the CLI:

Copy
OcNOS#show version 
Software version: EC_AS7946-30XB-OcNOS-SP-PLUS-7.0.0-Alpha 08/22/2025 03:13:51
 Copyright (C) 2025 IP Infusion. All rights reserved


 Software Product: OcNOS-SP, Version: 7.0.0
 Build Number: 76
 Release: Alpha
 Hardware Model: Edgecore AS7946-30XB-O-48V-F
 Software Feature Code: PLUS
 Software Baseline Version: 6.6.1-120


Installation Information:
 Image Filename: OcNOS-SP-PLUS-Q2-7.0.0-76-Alpha-installer
 Install method: http
 ONIE-SysInfo: x86_64-accton_as7946_30xb-r0


OcNOS#

The device model is displayed on the Hardware Model line.

Enter the shell and execute the snmpwalk command for the enterprise OID. Compare the output with the hardware model information displayed in the show version command output:

Copy
OcNOS#start-shell
bash-5.2$ su -
Password: 
root@OcNOS:~# ip netns exec zebosfib1 bash
root@OcNOS:~# snmpwalk -Ln -m ALL -v2c -c test 127.0.0.1 1.3.6.1.2.1.1.2
SNMPv2-MIB::sysObjectID.0 = OID: EDGECORE-MIB::edgeCoreAS794630XB
root@OcNOS:~# 

In this example, the vendor is EDGECORE and the device model is edgeCoreAS794630XB.

Glossary

Key Terms/Acronym Description
SNMP Simple Network Management Protocol
sysOID System Object ID
PEN Private Enterprise Name