smtpSrvPort
SMTP-MIB ·
.1.3.6.1.4.1.171.12.29.1.3
Object
scalar r/w
Integer32
This object is the SMTP server's TCP port number. The default value is 25. You can configure it from 1 to 65535.
Context
- MIB
- SMTP-MIB
- OID
.1.3.6.1.4.1.171.12.29.1.3- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- swSMTPCtrl
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SMTP-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SMTP-MIB::smtpSrvPort.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SMTP-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SMTP-MIB::smtpSrvPort'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-65535