documentation_complete: true


title: 'Uninstall net-snmp Package'

description: |-
    {{% if pkg_manager != "apt_get" %}}
    The <tt>net-snmp</tt> package provides the snmpd service.
    {{{ describe_package_remove(package="net-snmp") }}}
    {{% else %}}
    The <tt>snmp</tt> package provides the snmpd service.
    {{{ describe_package_remove(package="snmp") }}}
    {{% endif %}}

rationale: |-
    If there is no need to run SNMP server software,
    removing the package provides a safeguard against its
    activation.

severity: unknown

identifiers:
    cce@rhel8: CCE-85980-1
    cce@rhel9: CCE-85981-9
    cce@rhel10: CCE-89193-7
    cce@sle12: CCE-91645-2
    cce@sle15: CCE-91288-1
    cce@slmicro5: CCE-93891-0

references:
    cis@sle12: 2.2.15
    cis@sle15: 2.2.15

{{% if pkg_manager != "apt_get" %}}
{{{ complete_ocil_entry_package(package="net-snmp") }}}
{{% else %}}
{{{ complete_ocil_entry_package(package="snmp") }}}
{{% endif %}}

template:
    name: package_removed
    vars:
        pkgname: net-snmp
        pkgname@debian11: snmp
        pkgname@ubuntu2204: snmp
        pkgname@ubuntu2404: snmpd
