ptpbaseClockPortRole

PTPBASE-MIB · .1.3.6.1.2.1.241.1.2.7.1.6

Object

This object describes the current role (slave/master) of the
port.

Context

MIB
PTPBASE-MIB
OID
.1.3.6.1.2.1.241.1.2.7.1.6
Type
column
Access
readonly
Status
current
Parent
ptpbaseClockPortEntry
Groups
1

Walk the column to discover its indexed instances, or supply every index to read one instance.

Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'PTPBASE-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PTPBASE-MIB::ptpbaseClockPortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'PTPBASE-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PTPBASE-MIB::ptpbaseClockPortRole.<ptpbaseClockPortDomainIndex>.<ptpbaseClockPortClockTypeIndex>.<ptpbaseClockPortClockInstanceIndex>.<ptpbaseClockPortTablePortNumberIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'PTPBASE-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'PTPBASE-MIB::ptpbaseClockPortRole'

Syntax

Source
PtpClockRoleType
Base type
Enumeration

Values & Constraints

Type Values
1master
2slave

Conformance