Skip to main content

SNMP

This schema extension contains models for SNMP Communities and SNMP Clients. As you can see this extension is not linked to Tenancy or Device, as you could decide to link the Community to different models based on your use case.

Details

  • Dependencies:

Nodes

CommunityV2

  • Label: SNMP v1/v2c
  • Description: SNMP v1/v2c community configuration.
  • Namespace: Snmp
  • Icon: iconoir:community
  • Human Friendly ID: name__value
  • Inherit From: SnmpCommunity

Attributes

namedescriptionkindoptionaldefault_valuechoices
community_stringPassword
accessDropdownread_only, read_write

CommunityV3

  • Label: SNMP v3
  • Description: SNMP version 3 configuration with enhanced security.
  • Namespace: Snmp
  • Icon: iconoir:community
  • Human Friendly ID: name__value
  • Inherit From: SnmpCommunity

Attributes

namedescriptionkindoptionaldefault_valuechoices
usernameText
auth_protocolDropdownnone, md5, sha
auth_passwordPasswordTrue
privacy_protocolDropdownnone, des, aes
privacy_passwordPasswordTrue
security_levelDropdownnoAuthNoPriv, authNoPriv, authPriv

Client

  • Label: SNMP Client
  • Description: Represents an SNMP client that interacts with SNMP Community.
  • Namespace: Snmp
  • Icon: ph:user-list-light
  • Human Friendly ID: name__value

Attributes

namedescriptionkindoptionaldefault_valuechoices
nameText
client_descriptionTextTrue

Relationships

namepeeroptionalcardinalitykind
ip_addressIpamIPAddressmanyAttribute
communitySnmpCommunitymany

Generics

Community

  • Label: SNMP Community
  • Description: Generic model for SNMP community configurations.
  • Namespace: Snmp
  • Icon: iconoir:community
  • Human Friendly ID: name__value

Attributes

namedescriptionkindoptionaldefault_valuechoices
nameText
descriptionTextTrue

Relationships

namepeeroptionalcardinalitykind
clientsSnmpClientmanyComponent
devicesDcimDevicemanyAttribute

Code

version: '1.0'
generics:
- name: Community
namespace: Snmp
description: Generic model for SNMP community configurations.
label: SNMP Community
icon: iconoir:community
human_friendly_id:
- name__value
display_label: name__value
order_by:
- name__value
attributes:
- name: name
kind: Text
order_weight: 1000
- name: description
kind: Text
order_weight: 1100
optional: true
relationships:
- name: clients
peer: SnmpClient
cardinality: many
kind: Component
- name: devices
label: Devices
description: Devices this community is configured on.
peer: DcimDevice
cardinality: many
kind: Attribute
order_weight: 1200
nodes:
- name: CommunityV2
namespace: Snmp
description: SNMP v1/v2c community configuration.
label: SNMP v1/v2c
icon: iconoir:community
menu_placement: SnmpCommunity
human_friendly_id:
- name__value
display_label: name__value
order_by:
- name__value
inherit_from:
- SnmpCommunity
attributes:
- name: community_string
kind: Password
order_weight: 1300
- name: access
kind: Dropdown
choices:
- name: read_only
label: Read-Only
description: Read-only access.
- name: read_write
label: Read-Write
description: Read-write access.
order_weight: 1200
- name: CommunityV3
namespace: Snmp
description: SNMP version 3 configuration with enhanced security.
label: SNMP v3
icon: iconoir:community
menu_placement: SnmpCommunity
human_friendly_id:
- name__value
display_label: name__value
order_by:
- name__value
inherit_from:
- SnmpCommunity
attributes:
- name: username
kind: Text
order_weight: 1300
- name: auth_protocol
label: Authentication Protocol
kind: Dropdown
choices:
- name: none
label: None
description: No authentication.
- name: md5
label: MD5
description: MD5 authentication.
- name: sha
label: SHA
description: SHA authentication.
order_weight: 1400
- name: auth_password
label: Authentication Password
kind: Password
order_weight: 1500
optional: true
- name: privacy_protocol
label: Privacy Protocol
kind: Dropdown
choices:
- name: none
label: None
description: No privacy.
- name: des
label: DES
description: DES encryption.
- name: aes
label: AES
description: AES encryption.
order_weight: 1600
- name: privacy_password
label: Privacy Password
kind: Password
order_weight: 1700
optional: true
- name: security_level
label: Security Level
kind: Dropdown
choices:
- name: noAuthNoPriv
label: NoAuthNoPriv
description: No authentication and no privacy.
- name: authNoPriv
label: AuthNoPriv
description: Authentication but no privacy.
- name: authPriv
label: AuthPriv
description: Both authentication and privacy.
order_weight: 1200
- name: Client
namespace: Snmp
description: Represents an SNMP client that interacts with SNMP Community.
label: SNMP Client
icon: ph:user-list-light
menu_placement: SnmpCommunity
human_friendly_id:
- name__value
display_label: name__value
order_by:
- name__value
attributes:
- name: name
kind: Text
order_weight: 1000
- name: client_description
label: Description
kind: Text
order_weight: 1100
optional: true
relationships:
- name: ip_address
label: IP Address
description: Authorized SNMP client address.
peer: IpamIPAddress
cardinality: many
kind: Attribute
order_weight: 1150
- name: community
peer: SnmpCommunity
cardinality: many
order_weight: 1200