Chapter 4: Using the Command Line Interface
156
Variables:
•
<option> is one of the options:
passwordOnly
,
publicKeyOnly
or
passwordOrPublicKey
.
Option
Description
passwordOnly
Enables the password-based login only.
publicKeyOnly
Enables the public key-based login only.
passwordOrPublicKey
Enables both the password- and public key-based login. This is the default.
If the public key authentication is selected, you must enter a valid SSH public key for each user profile to log in over the
SSH connection. See
(on page 96).
Setting the SNMP Configuration
You can enable or disable the SNMP v1/v2c or v3 agent, configure the read and write community strings, or set the MIB-II
parameters, such as sysContact, using the CLI commands.
An SNMP command begins with
network services snmp
.
Enabling or Disabling SNMP v1/v2c
This command enables or disables the SNMP v1/v2c protocol.
config:#
network services snmp v1/v2c <option>
Variables:
•
<option> is one of the options:
enable
or
disable
.
Option
Description
enable
The SNMP v1/v2c protocol is enabled.
disable
The SNMP v1/v2c protocol is disabled.
Enabling or Disabling SNMP v3
This command enables or disables the SNMP v3 protocol.
config:#
network services snmp v3 <option>
Variables:
•
<option> is one of the options:
enable
or
disable
.
Option
Description
enable
The SNMP v3 protocol is enabled.