Skip header
 

Use the "snmp" command to display and edit the SNMP configuration settings such as the community name.

View settings

msh> snmp

  • Default access settings 1 is as follows:

    Community name:public

    IPv4 address:0.0.0.0

    IPv6 address:::

    Access type:read-only

    Effective Protocol:IPv4/IPv6

  • Default access settings 2 is as follows:

    Community name:admin

    IPv4 address:0.0.0.0

    IPv6 address:::

    Access type:read-write

    Effective Protocol:IPv4/IPv6

  • If "-p" is added, you can view settings one by one.

  • To display the current community, specify its registration number.

Display

msh> snmp ?

Community name configuration

msh> snmp "number" name "community_name"

  • You can configure ten SNMP access settings numbered 1–10.

  • The machine cannot be accessed from Device Manager NX or SmartDeviceMonitor for Client if "public" is not registered in numbers 1–10. If you change the machine's community name, change the connected computer's community name accordingly.

  • The community name can be entered up to 15 characters.

Deleting community name

msh> snmp "number" clear name

Access type configuration

msh> snmp "number" type "access_type"

Access type

Type of access permission

no

not accessible

read

read only

write

read and write

trap

user is notified of trapmessages

Protocol configuration

Use the following command to set protocols "active" or "inactive". If you set a protocol "inactive", all access settings for that protocol are disabled.

msh> snmp {ipv4|ipv6} {on|off}

  • Specify "ipv4" for IPv4, or "ipv6" for IPv6.

  • {on} means "active" and {off} means "inactive".

  • All protocols cannot be turned off concurrently.

Configuration of protocol for each registration number

msh> snmp "number" active {ipv4|ipv6} {on|off}

  • To change the protocol of access settings, use the following command. However, if you have disabled a protocol with the above command, activating it here has no effect.

Access configuration

msh> snmp "number" {ipv4|ipv6} "address"

  • You can configure a host address according to the protocol used.

  • The network interface board accepts requests only from hosts that have IPv4 and IPv6 addresses with access types of "read-only" or "read-write". Enter "0" to have the network interface board accept requests from any hosts without requiring a specific type of access.

  • Enter a host address to deliver "trap" access type information.

  • To specify IPv4 or IPv6, enter "ipv4" or "ipv6" followed by a space, and then the IPv4 or IPv6 address.

sysLocation configuration

msh> snmp location "character string"

Deleting sysLocation

msh> snmp clear location

sysContact setting

msh> snmp contact "character string"

Deleting sysContact

msh> snmp clear contact

SNMP v1v2 function configuration

msh> snmp v1v2 {on|off}

  • Specify "on" to enable, and "off" to disable.

SNMP v3 function configuration

msh> snmp v3 {on|off}

  • Specify "on" to enable, and "off" to disable.

SNMP TRAP configuration

msh> snmp trap {v1|v2|v3} {on|off}

  • Specify "on" to enable, and "off" to disable.

Remote configuration authorization configuration

msh> snmp remote {on|off}

  • Specify "on" to enable, and "off" to disable the SNMP v1v2 setting.

SNMP v3 TRAP configuration display

msh> snmp v3trap

msh> snmp v3trap [1–5]

  • If a number from 1 to 5 is entered, settings are displayed for that number only.

Configuring a sending address for SNMP v3 TRAP

msh> snmp v3trap [1–5] {ipv4|ipv6} "address"

Configuring a sending protocol for SNMP v3 TRAP

msh> snmp v3trap [1–5] active {ipv4|ipv6} {on|off}

Configuring a user account for SNMP v3 TRAP

msh> snmp v3trap [1–5] account "account_name"

  • Enter an account name up to 32 alphanumeric characters.

Deleting an SNMP v3 TRAP user account

msh> snmp v3trap [1–5] clear account

Configuring an SNMP v3 authentication algorithm

msh> snmp v3auth algo {md5|sha1}

Configuring an SNMP v3 encryption algorithm

msh> snmp v3priv algo des/aes

Configuring SNMP v3 encryption

msh> snmp v3priv mode {auto|on}

  • Set "auto" for automatic encryption configuration.

  • If you select "on", plain-text communication becomes impossible - only encrypted communication is possible.

Note

  • "Encrypted communication" means an encrypted password is set on the machine.