All MIBs › SMTP-MIB › smtpSrvPort
smtpSrvPort
Module: SMTP-MIB
OID (symbolic): SMTP-MIB::smtpSrvPort
OID (numeric): 1.3.6.1.4.1.171.12.29.1.3
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: The SMTP server's TCP port number. when swith device reset,it shows 0. You can config it from 1 to 65535.
What is smtpSrvPort?
The TCP port number of the configured SMTP server, settable from 1 to 65535, which resets to 0 after the switch reboots. Admins must configure this along with smtpSrvAddr before the switch can successfully connect to a mail server, since a value of 0 after reset indicates no port has been set. For example, an admin would set smtpSrvPort to 25 (or 587 for submission) to match the mail server's listening port after every device reset.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.171.12.29.1.3 snmpwalk -v2c -c public <target> SMTP-MIB::smtpSrvPort
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.171.12.29.1.3.1 snmpget -v2c -c public <target> SMTP-MIB::smtpSrvPort.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.171.12.29.1.3.1 i <value>
Start monitoring SMTP mail relay/server, proprietary enterprise MIB, vendor unspecified (queue depth/delivery status) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the SMTP-MIB::smtpSrvPort OID value, configure state conditions and alerts, and monitor any SMTP mail relay/server, proprietary enterprise MIB, vendor unspecified (queue depth/delivery status) from a single console.
OID Breakdown
Upper-level ancestors (8 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.171 | d_link | DE1500-MIB |
| 1.3.6.1.4.1.171.12 | dlink_common_mgmt | DLINK-ID-REC-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.171.12.29 | swSMTPMIB | SMTP-MIB |
| 1.3.6.1.4.1.171.12.29.1 | swSMTPCtrl | SMTP-MIB |
| 1.3.6.1.4.1.171.12.29.1.3 | smtpSrvPort | SMTP-MIB |