Published On: August 6ᵗʰ, 2019 02:06

Cisco Enterprise Network Function Virtualization Infrastructure Software Command Reference

snmp agent engineID

To configure the engine ID used for hashing the other configuration parameters, use the snmp agent engineID command in global configuration mode.

snmp agent engineID

Syntax Description

engineID

Specifies th engine ID. By default it is auto-generated.

Command Default

Auto-generated

Command Modes

Global configuration mode

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example configures the engine ID.

snmp agent engineID 00:22:33:22:22:22:55

snmp agent sysName

To configure an administartively assigned system name for the managed node, use the snmp agent sysName command in global configuration mode.

snmp agent sysName name

Syntax Description

name

Specifies the system name.

Command Default

Auto-generated

Command Modes

Global configuration mode

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example configures the system name.

snmp agent sysName TestSystem

snmp community

To configure SNMP community, use the snmp community command in global configuration mode.

snmp community community access

Syntax Description

community

(Optional) Specifies the name of the community.

access

(Optional) Specifies the type of access: readOnly or writeOnly.

Command Default

none

Command Modes

Global configuration mode

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example configures the community pub_com with read only access.

snmp community pub_comm community-access readOnly

snmp enable traps

To enable linkup or linkdown traps for a system, use the snmp enable traps command in global configuration mode.

snmp enable traps { linkups | linkdowns }

Syntax Description

linkups

Specifies the linkup traps.

linkdowns

Specifies the linkdown traps.

Command Default

Disabled

Command Modes

Global configuration mode

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example enable linkup traps.

nfvis(config)# snmp enable traps linkup
commit
end

snmp disable traps

To disable linkup or linkdown traps for a system, use the snmp disable traps command in global configuration mode.

snmp disable traps { linkups | linkdowns }

Syntax Description

linkups

Specifies the linkup traps.

linkdowns

Specifies the linkdown traps.

Command Default

None

Command Modes

Global configuration mode

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example disables linkup traps.

nfvis(config)# snmp disable traps linkup
commit
end

snmp group

To configure SNMP group, use the snmp group command in global configuration mode.

snmp group name snmp2 read write notify

Syntax Description

name

(Optional) Specifies the group name.

snmp2

(Optional) Specifies the SNMP type. For example, noAuthNoPriv.

read

(Optional) Specifies if the group has read access.

write

(Optional) Specifies if the group has write access.

notify

(Optional) Specifies if the group has notify access.

Command Default

none

Command Modes

Global configuration mode

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example configures the SNMP group.

snmp group testgroup snmp 2 noAuthNoPriv read read-access write write-access notify notify-access

snmp host

To configure the SNMP host to receive traps, use the snmp host command in global configuration mode.

snmp host host-ip-address host-port host-version host-security-level host-user-name

Syntax Description

host-ip-address

(Optional) Specifies the IP address of the host.

host-port

(Optional) Specifies the port number of the host.

host-version

(Optional) Specifies the version of the host..

host-security-level

(Optional) Specifies the security level.

host-user-name

(Optional) Specifies the username of the host.

Command Default

none

Command Modes

Global configuration mode

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example configures host2 to receive traps.

snmp host host2 host-ip-address 2.2.2.2 host-port 162 host-version 2 host-security-level noAuthNoPriv host-user-name public

snmp user

To configure SNMP user, use the snmp user command in global configuration mode.

snmp user auth-protocol priv-protocol passphrase user-group user-version

Syntax Description

auth-protocol

(Optional) Specifies the user authentication protocol.

priv-protocol

(Optional) Specifies the protocol privilege.

passphrase

(Optional) Specifies the user password phrase.

user-group

(Optional) Specifies the user group number.

user-version

(Optional) Specifies user version number.

Command Default

none

Command Modes

Global configuration mode

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example configures the SNMP user.

snmp user public auth-protocol md5 priv-protocol des passphrase pass123 user-group 2 user-version 2

show snmp agent

To get the SNMP agent information, use the show snmp agent command in privileged EXEC configuration mode.

show snmp agent

Command Default

none

Command Modes

Privileged EXEC (#)

Command History

Release Modification
3.5.1

This command was introduced.

Examples

admin@nfvis show snmp agent
snmp agent sysDescr "Cisco NFVIS "
snmp agent sysOID 1.3.6.1.4.1.9.12.3.1.3.2376 //platform specific

show snmp stats

To get the SNMP stats information, use the show snmp stats command in privileged EXEC configuration mode.

show snmp stats

Command Default

none

Command Modes

Privileged EXEC (#)

Command History

Release Modification
3.5.1

This command was introduced.

Examples

admin@nfvis show snmp stats
snmp stats sysUpTime 40930629
snmp stats sysServices 70
snmp stats sysORLastChange 0
snmp stats snmpInPkts 0
snmp stats snmpInBadVersions 0
snmp stats snmpInBadCommunityNames 0
snmp stats snmpInBadCommunityUses 0
snmp stats snmpInASNParseErrs 0
snmp stats snmpSilentDrops 0
snmp stats snmpProxyDrops 0

show snmp traps

To get the SNMP traps information, use the show snmp traps command in privileged EXEC configuration mode. It sends SNMP trap notification to the hosts for any link status change on physical interface.

show snmp traps trap state

Syntax Description

trap

(Optional) Specifies the trap: linkDown or linkUp.

state

(Optional) Specifies the state of the trap: enabled or disabled.

Command Default

none

Command Modes

Privileged EXEC (#)

Command History

Release Modification
3.5.1

This command was introduced.

Examples

admin@nfvis show snmp traps
NAME STATE
-------------------
linkDown enabled
linkUp enabled

show running-config snmp

To display the currently running SNMP configuration, use the show running-config snmp command in privileged EXEC mode.

show running-config snmp

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

Privileged EXEC (#)

Command History

Release Modification
3.5.1

This command was introduced.

Examples

nfvis# show running-config snmp
snmp agent engineID 00:00:00:09:00:00:00:a6:ca:d6:38:4c