Configuring SNMP
The Simple Network Management Protocol (SNMP) is an application-layer protocol that provides a message format for communication between SNMP managers and agents. SNMP provides a standardized framework and a common language used for the monitoring and management of devices in a network.
This section contains payload examples and CLIs to demonstrate how to use the NX-API REST API to configure SNMP on Cisco Nexus 3000 and 9000 Series switches and to show how the REST APIs correspond to the CLI commands.
For more information, see the Cisco Nexus 9000 Series NX-OS System Management Configuration Guide.
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-installation-and-configuration-guides-list.html/
Configuring Local SNMP Users
Configures an SNMP user with authentication and privacy parameters.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload examples displayed in the pane on the right.
snmp-server user user1 auth md5 Cisco@123 priv Cisco@123 localizedkey
snmp-server user user1 enforcePriv
snmp-server user user1 network-admin
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpLocalUser |
sys/snmp/inst/lclUser-{userName} |
snmpUserGroup |
sys/snmp/inst/lclUser-{userName}/group-{groupName} |
snmpLocalUser Properties
The following table contains information about the snmpLocalUser properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
authpwd | snmp:AuthPasswd (string:Basic) | Auth Password | MAX SIZE: 130 |
authtype | snmp:AuthTypeT (scalar:Enum8) | Auth Protocol Type | SELECTION: 0 - no 1 - md5 2 - sha DEFAULT: no |
isenforcepriv | scalar:Bool
| whether enforce priv con | SELECTION: true or false |
islocalizedkey | scalar:Bool
| whether localized key configured | SELECTION: true or false |
privpwd | snmp:PrivPasswd (string:Basic) | Priv Password | MAX SIZE: 130 |
privtype | snmp:PrivTypeT (scalar:Enum8) | Priv Protocol Type | SELECTION: 0 - no 1 - des 2 - aes128 DEFAULT: no |
userName | snmp:userNameT (string:Basic) | snmp-server user name | A sequence of characters |
snmpUserGroup Properties
The following table contains information about the snmpUserGroup properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
groupName | snmp:userNameT (string:Basic) | snmp-server user name | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring Local SNMP Users Using Type 6 Encription
Configures an SNMP user with authentication and privacy parameters.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload examples displayed in the pane on the right.
snmp-server user name [pwd_type 6] [auth {md5 | sha | sha-224 | sha-256 | sha-384 | sha-512} passphrase [auto] [priv [aes-128] passphrase] [engineID id] [localizedkey | localizedV2key]]
Note: The property information for this example was added in Release 10.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpLocalUser |
sys/snmp/inst/lclUser-{userName} |
snmpLocalUser Properties
The following table contains information about the snmpLocalUser properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
.
Property Name | Data Type | Description | Values |
authtype | snmp:AuthTypeT, | Auth Protocol Type | Selection: 0, 1, 2, 3, 4, 5, 6 |
snmpUserGroup Properties
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring SNMP Users Using AES-256 Privacy Protocol
CLI Command
The CLI command below is the equivalent of the payload example displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload or the YANG tab to view the XML payload.
snmp-server user name [pwd_type 6] [auth {md5 | sha | sha-224 | sha-256 | sha-384 | sha-512} passphrase [auto][priv [aes-128] [aes-256] passphrase] [engineID id] [localizedkey] | [localizedV2key]]
Note: The property information for this example was added in Release 10.5(2).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
lclUser |
sys/snmp/inst/lclUser- |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring Remote SNMP Users
Configures an SNMP user.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
snmp-server user user2 auth md5 Cisco@123 priv Cisco@123 localizedkey engineID 1:2:3:4:5:6:7:8
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpRemoteUser |
sys/snmp/inst/rmtUser-{userName}-engId-{usrengineId} |
snmpRemoteUser Properties
The following table contains information about the snmpRemoteUser properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
authpwd | snmp:AuthPasswd (string:Basic) | Auth Password | MAX SIZE: 130 |
authtype | snmp:AuthTypeT (scalar:Enum8) | Auth Protocol Type | SELECTION: 0 - no 1 - md5 2 - sha DEFAULT: no |
islocalizedkey | scalar:Bool
| whether localized key configured | SELECTION: true or false |
privpwd | snmp:PrivPasswd (string:Basic) | Priv Password | MAX SIZE: 130 |
privtype | snmp:PrivTypeT (scalar:Enum8) | Priv Protocol Type | SELECTION: 0 - no 1 - des 2 - aes128 DEFAULT: no |
userName | snmp:userNameT (string:Basic) | snmp-server user name | A sequence of characters |
usrengineId | snmp:EngId (string:Basic) | Configured Engine Id | A sequence of characters |
usrengineIdlen | snmp:EngIdLen (scalar:UByte) | Configured Engine Id len | RANGE: [0 , 162] DEFAULT: 0 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Creating SNMP Communities
You can create SNMP communities for SNMPv1 or SNMPv2c.
Sets the access rights to read-only.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
snmp-server community comm1 ro
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpCommSecP |
sys/snmp/inst/community-{[name]} |
snmpCommSecP Properties
The following table contains information about the snmpCommSecP properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
commAcess | snmp:CommAcessT (scalar:Enum8) | SNMP community group | SELECTION: 0 - ro 1 - rw 2 - unspecified DEFAULT: unspecified |
grpName | snmp:GrpNameT (string:Basic) | SNMP community group | A sequence of characters |
name | pol:ObjName (naming:Name256) | Object name | MAX SIZE: 64 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Uses the access rights of the specified group.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
snmp-server community comm1 group group1
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpCommSecP |
sys/snmp/inst/community-{[name]} |
snmpCommSecP Properties
The following table contains information about the snmpCommSecP properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
commAcess | snmp:CommAcessT (scalar:Enum8) | SNMP community group | SELECTION: 0 - ro 1 - rw 2 - unspecified DEFAULT: unspecified |
grpName | snmp:GrpNameT (string:Basic) | SNMP community group | A sequence of characters |
name | pol:ObjName (naming:Name256) | Object name | MAX SIZE: 64 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Assigning an ACL to Filter SNMP Requests
Assigns an ACL to filter SNMP requests.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
snmp-server community ComName1 use-ipv4acl IPV4Name1 use-ipv6acl IPV6Name1
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpCommSecP |
sys/snmp/inst/community-{[name]} |
snmpAcl |
sys/snmp/inst/community-{[name]}/acl |
snmpCommSecP Properties
The following table contains information about the snmpCommSecP properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
name | pol:ObjName (naming:Name256) | Object name | MAX SIZE: 64 |
snmpAcl Properties
The following table contains information about the snmpAcl properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
useAclName | snmp:AclNameT (string:Basic) | SNMP community acl name | A sequence of characters |
useIpv4AclName | snmp:AclNameT (string:Basic) | SNMP community acl name | A sequence of characters |
useIpv6AclName | snmp:AclNameT (string:Basic) | SNMP community acl name | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring a Source Interface for SNMP Notifications
You can configure SNMP to use the IP address of an interface as the source IP address for notifications. When a notification is generated, its source IP address is based on the IP address of this configured interface.
You can configure a source interface as follows:
- All notifications sent to all SNMP notification receivers.
- All notifications sent to a specific SNMP notification receiver. This configuration overrides the global source interface configuration.
Configures a source interface for sending out SNMPv2 informs.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
snmp-server source-interface inform ethernet 1/1
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpGlobals |
sys/snmp/inst/globals |
snmpSourceInterfaceInforms |
sys/snmp/inst/globals/srcInterfaceInforms |
snmpSourceInterfaceInforms Properties
The following table contains information about the snmpSourceInterfaceInforms properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ifname | nw:IfId (base:IfIndex) | Source interface name for informs | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring a Source Interface for Sending SNMPv2 Traps
Configures a source interface for sending out SNMPv2 informs.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
snmp-server source-interface traps ethernet 1/1
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpGlobals |
sys/snmp/inst/globals |
snmpSourceInterfaceTraps |
sys/snmp/inst/globals/srcInterfaceTraps |
snmpSourceInterfaceTraps Properties
The following table contains information about the snmpSourceInterfaceTraps properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ifname | nw:IfId (base:IfIndex) | Source interface name for Traps | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring SNMP Global Settings
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpGlobals |
sys/snmp/inst/globals |
snmpGlobals Properties
The following table contains information about the snmpGlobals properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
aaaUserCacheTimeout | snmp:AaaUserCacheTimeout (scalar:Uint32) | Timeout for AAA Cache | RANGE: [1 , 86400] DEFAULT: 3600 |
counterCacheTimeout | snmp:CounterCacheTimeout (scalar:Uint16) | Timeout for port stats cache | RANGE: [1 , 3600] DEFAULT: 50 |
protocolEnable | snmp:Boolean (scalar:Enum8) | Enable/Disable snmp protocol operations | SELECTION: 0 - no 1 - yes DEFAULT: yes |
tcpSessionAuth | snmp:tcpSessionAuthT (scalar:Enum8) | tcp-session auth config | SELECTION: 0 - no 1 - tcpSess 2 - tcpSessAuth DEFAULT: tcpSessAuth |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Assigns the device contact information.
CLI Commands
The CLI commands and options listed below are the equivalent to the payload example displayed in the pane on the right.
snmp-server contact Admin
snmp-server location Lab-7
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpSysInfo |
sys/snmp/inst/sysinfo |
snmpSysInfo Properties
The following table contains information about the snmpSysInfo properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
sysContact | snmp:SnmpSysContact (string:Basic) | System Contact | A sequence of characters |
sysLocation | snmp:SnmpSysLoc (string:Basic) | System Location | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Silently Drop Unknown v3 User Packets
Note: This example was added in Release 9.2(4).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server drop unknown-user
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpInst |
sys/snmp/inst |
snmpInst Properties
The following table contains information about the snmpInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
unknownUser | snmp:Boolean (scalar:Enum8) | Indicates the Unknown User MO thats needs to be created | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpInst |
sys/snmp/inst |
snmpInst Properties
The following table contains information about the snmpInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
unknownUser | snmp:Boolean (scalar:Enum8) | Indicates the Unknown User MO thats needs to be created | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Do Not Silently Drop Unknown v3 User Packets
Note: This example was added in Release 9.2(4).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server drop unknown-user
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpInst |
sys/snmp/inst |
snmpInst Properties
The following table contains information about the snmpInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
unknownUser | snmp:Boolean (scalar:Enum8) | Indicates the Unknown User MO thats needs to be created | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpInst |
sys/snmp/inst |
snmpInst Properties
The following table contains information about the snmpInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
unknownUser | snmp:Boolean (scalar:Enum8) | Indicates the Unknown User MO thats needs to be created | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Silently Drop Unknown v3 Engine Id
Note: This example was added in Release 9.2(4).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server drop unknown-engine-id
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpInst |
sys/snmp/inst |
snmpInst Properties
The following table contains information about the snmpInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
unknownEngId | snmp:Boolean (scalar:Enum8) | Indicates the Unknown Engine Id MO thats needs to be created | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpInst |
sys/snmp/inst |
snmpInst Properties
The following table contains information about the snmpInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
unknownEngId | snmp:Boolean (scalar:Enum8) | Indicates the Unknown Engine Id MO thats needs to be created | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Do Not Silently Drop Unknown v3 Engine Id
Note: This example was added in Release 9.2(4).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server drop unknown-engine-id
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpInst |
sys/snmp/inst |
snmpInst Properties
The following table contains information about the snmpInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
unknownEngId | snmp:Boolean (scalar:Enum8) | Indicates the Unknown Engine Id MO thats needs to be created | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpInst |
sys/snmp/inst |
snmpInst Properties
The following table contains information about the snmpInst properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
unknownEngId | snmp:Boolean (scalar:Enum8) | Indicates the Unknown Engine Id MO thats needs to be created | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring Topology Associated with the SNMP Context
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server context SampleString_123 instance SampleString_123 vrf SampleString_123 topology SampleString_123
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpCtx |
sys/snmp/inst/ctx-[SampleString_123] |
snmpInst |
sys/snmp/inst |
snmpCtx Properties
The following table contains information about the snmpCtx properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ctxInstance | string:Basic
| Protocol instance associated with the SNMP context | A sequence of characters |
ctxTopology | string:Basic
| Topology associated with the SNMP context | A sequence of characters |
name | pol:ObjName string:Basic | | RANGE:
Min: "1"
Max: "64" |
vrf | string:Basic
| VRF associated with the SNMP context | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring Global Privacy Enforcement for All Users
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server globalEnforcePriv
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpGlobals |
sys/snmp/inst/globals |
snmpInst |
sys/snmp/inst |
snmpGlobals Properties
The following table contains information about the snmpGlobals properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
enforcePrivacy | snmp:Boolean (scalar:Enum8) | Globally enforce privacy for all the users | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting Global Privacy Enforcement for All Users
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server globalEnforcePriv
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpGlobals |
sys/snmp/inst/globals |
snmpInst |
sys/snmp/inst |
snmpGlobals Properties
The following table contains information about the snmpGlobals properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
enforcePrivacy | snmp:Boolean (scalar:Enum8) | Globally enforce privacy for all the users | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring the Notification to Host UDP Port Number
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName SampleString_123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
commName | snmp:commNameT (string:Basic) | community to be associated to the host | A sequence of characters |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
notifType | snmp:NotificationType (scalar:Enum8) | Ctrl bits indicating traps/informs config | SELECTION: 1 - traps 2 - informs DEFAULT: traps |
secLevel | snmp:V3SecLvl (scalar:Enum8) | Ctrl bits indicating auth/ priv/ noauth for v3 | SELECTION: 0 - unspecified 1 - noauth 2 - auth 3 - priv DEFAULT: unspecified |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
version | snmp:Version (scalar:Enum8) | Ctrl bits indicating version | SELECTION: 1 - v1 2 - v2c 3 - v3 DEFAULT: v1 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring Ethernet Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName source-interface ethernet 1/2 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ifName | nw:IfId (base:IfIndex) | Source interface name for host | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting the Notification to Host UDP Port Number (Ethernet Source Interface Sends SNMP Notifications)
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server host HostName source-interface ethernet 1/2 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring VLAN Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName source-interface vlan 123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ifName | nw:IfId (base:IfIndex) | Source interface name for host | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting VLAN Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server host HostName source-interface vlan 123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring Port Channel Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName source-interface port-channel 123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ifName | nw:IfId (base:IfIndex) | Source interface name for host | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting Port Channel Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server host HostName source-interface port-channel 123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring Loopback Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName source-interface loopback 123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ifName | nw:IfId (base:IfIndex) | Source interface name for host | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting Loopback Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server host HostName source-interface loopback 123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName filter-vrf SampleString_123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpFilterVrf |
sys/snmp/inst/host-hostName-udp-1/filtervrf-[SampleString_123] |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpInst |
sys/snmp/inst |
snmpFilterVrf Properties
The following table contains information about the snmpFilterVrf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
vrfName | l3:VrfName (string:Basic) | VRF name to be used by host | A sequence of characters |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server host HostName filter-vrf SampleString_123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpFilterVrf |
sys/snmp/inst/host-hostName-udp-1/filtervrf-[SampleString_123] |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpInst |
sys/snmp/inst |
snmpFilterVrf Properties
The following table contains information about the snmpFilterVrf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
vrfName | l3:VrfName (string:Basic) | VRF name to be used by host | A sequence of characters |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring MGMT Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName source-interface mgmt 0 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ifName | nw:IfId (base:IfIndex) | Source interface name for host | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting MGMT Source Interface for Sending SNMP Notifications
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server host HostName source-interface mgmt 0 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpHost |
sys/snmp/inst/host-hostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-hostName-udp-1/hostsourceinterface |
snmpInst |
sys/snmp/inst |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring the Name of the SNMP Context (MIB Access Parameters)
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server mib community-map SampleString_123 context SampleString_123
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpCommSecP |
sys/snmp/inst/community-[SampleString_123] |
snmpInst |
sys/snmp/inst |
snmpCommSecP Properties
The following table contains information about the snmpCommSecP properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
contextName | string:Basic
| Name of the SNMP context | A sequence of characters |
name | pol:ObjName string:Basic | The name of the community security profile | RANGE: 1-32 characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting the Name of the SNMP Context (MIB Access Parameters)
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server mib community-map SampleString_123 context SampleString_123
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpCommSecP |
sys/snmp/inst/community-[SampleString_123] |
snmpInst |
sys/snmp/inst |
snmpCommSecP Properties
The following table contains information about the snmpCommSecP properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
contextName | string:Basic
| Name of the SNMP context | A sequence of characters |
name | pol:ObjName string:Basic | The name of the community security profile | RANGE: 1-32 characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring IPv4 and IPv6 ACLs for a User SNMP Server
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server user SampleString_123 use-ipv4acl SampleString_123 use-ipv6acl SampleString_123
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpLocalUser |
sys/snmp/inst/lclUser-SampleString_123 |
snmpLocalUser Properties
The following table contains information about the snmpLocalUser properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ipv4AclName | string:Basic
| IPv4 ACL name to filter SNMP requests | A sequence of characters |
ipv6AclName | string:Basic
| IPv6 ACL name to filter SNMP requests | A sequence of characters |
userName | snmp:userNameT (string:Basic) | snmp-server user name | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting IPv4 and IPv6 ACLs for a User SNMP Server
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server user SampleString_123 use-ipv4acl SampleString_123 use-ipv6acl SampleString_123
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpLocalUser |
sys/snmp/inst/lclUser-SampleString_123 |
snmpLocalUser Properties
The following table contains information about the snmpLocalUser properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ipv4AclName | string:Basic
| IPv4 ACL name to filter SNMP requests | A sequence of characters |
ipv6AclName | string:Basic
| IPv6 ACL name to filter SNMP requests | A sequence of characters |
userName | snmp:userNameT (string:Basic) | snmp-server user name | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring Filter-VRF for Notification Host
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName public
snmp-server host HostName public udp-port 1
snmp-server host HostName filter-vrf SampleString_123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpHost |
sys/snmp/inst/host-HostName-udp-1 |
snmpFilterVrf |
sys/snmp/inst/host-HostName-udp-1/filtervrf-[SampleString_123] |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpFilterVrf Properties
The following table contains information about the snmpFilterVrf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
vrfName | l3:VrfName (string:Basic) | VRF name to be used by host | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting Filter-VRF for Notification Host
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName public
snmp-server host HostName public udp-port 1
no snmp-server host HostName filter-vrf SampleString_123 udp-port 1
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpHost |
sys/snmp/inst/host-HostName-udp-1 |
snmpFilterVrf |
sys/snmp/inst/host-HostName-udp-1/filtervrf-[SampleString_123] |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpFilterVrf Properties
The following table contains information about the snmpFilterVrf properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
vrfName | l3:VrfName (string:Basic) | VRF name to be used by host | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring an SNMPv3 User with IPv4/IPv6 ACL
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server user SampleString_123 use-ipv4acl SampleString_123 use-ipv6acl SampleString_123
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpLocalUser |
sys/snmp/inst/lclUser-SampleString_123 |
snmpLocalUser Properties
The following table contains information about the snmpLocalUser properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ipv4AclName | string:Basic
| IPv4 ACL name to filter SNMP requests | A sequence of characters |
ipv6AclName | string:Basic
| IPv6 ACL name to filter SNMP requests | A sequence of characters |
userName | snmp:userNameT (string:Basic) | snmp-server user name | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting an SNMPv3 User with IPv4/IPv6 ACL
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server user SampleString_123 use-ipv4acl SampleString_123 use-ipv6acl SampleString_123
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpLocalUser |
sys/snmp/inst/lclUser-SampleString_123 |
snmpLocalUser Properties
The following table contains information about the snmpLocalUser properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ipv4AclName | string:Basic
| IPv4 ACL name to filter SNMP requests | A sequence of characters |
ipv6AclName | string:Basic
| IPv6 ACL name to filter SNMP requests | A sequence of characters |
userName | snmp:userNameT (string:Basic) | snmp-server user name | A sequence of characters |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring a Source Interface for SNMP Notification Host
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName public udp-port 1
snmp-server host HostName source-interface ethernet 1/2
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpHost |
sys/snmp/inst/host-HostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-HostName-udp-1/hostsourceinterface |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
ifName | nw:IfId (base:IfIndex) | Source interface name for host | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting a Source Interface for SNMP Notification Host
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server host HostName public udp-port 1
no snmp-server host HostName source-interface ethernet 1/2
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpInst |
sys/snmp/inst |
snmpHost |
sys/snmp/inst/host-HostName-udp-1 |
snmpHostSrcInterface |
sys/snmp/inst/host-HostName-udp-1/hostsourceinterface |
snmpHost Properties
The following table contains information about the snmpHost properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
hostName | snmp:hostNameT (naming:Name) | snmp-server host name | RANGE: [1 , 255] |
udpPortID | snmp:PortIdT (scalar:Uint32) | snmp-server host udp-port | RANGE: [0 , 65535] DEFAULT: 162 |
snmpHostSrcInterface Properties
The following table contains information about the snmpHostSrcInterface properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
status | mo:ModificationStatus (scalar:Bitmask32) | Modification status | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
Configuring the SNMP Server for Reload
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp-server system-shutdown
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpServerShutdown |
sys/snmp/servershutdown |
snmpServerShutdown Properties
The following table contains information about the snmpServerShutdown properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
sysShutdown | snmp:Boolean (scalar:Enum8) | SNMP server system shutdown control | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting the SNMP Server Reload Configuration
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp-server system-shutdown
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpEntity |
sys/snmp |
snmpServerShutdown |
sys/snmp/servershutdown |
snmpServerShutdown Properties
The following table contains information about the snmpServerShutdown properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
sysShutdown | snmp:Boolean (scalar:Enum8) | SNMP server system shutdown control | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Configuring a Long Description for Interface Alias
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
snmp ifmib ifalias long
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpGlobals |
sys/snmp/inst/globals |
snmpInst |
sys/snmp/inst |
snmpGlobals Properties
The following table contains information about the snmpGlobals properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
enableIfAliasLong | snmp:Boolean (scalar:Enum8) | Enable long description upto 256 characters for interface alias | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
Deleting a Long Description for Interface Alias
Note: This example was added in Release 9.3(1).
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
no snmp ifmib ifalias long
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
snmpGlobals |
sys/snmp/inst/globals |
snmpInst |
sys/snmp/inst |
snmpGlobals Properties
The following table contains information about the snmpGlobals properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
enableIfAliasLong | snmp:Boolean (scalar:Enum8) | Enable long description upto 256 characters for interface alias | SELECTION: 0 - no 1 - yes DEFAULT: no |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html