
SmartNA-X 1G/10G Modular | Command Line Reference |
149
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
If no transport-specifier or port is given then UDP and port 162 are assumed.
•
v1
,
v2c
,
v3
Select the SNMP version used by the host.
•
community/user
Specify the community string (SNMPv1/v2c) or user (SNMPv3).
•
Trap
,
Inform
Choose a notification format, either Traps (unacknowledged notifications) or Informs (acknowledged
notifications). If using Informs, you must set the
EngineID
of the remote host.
•
EngineID
Specify the SNMP EngineID of the host. You must specify the remote host’s EngineID if using Inform
notifications.
Examples
• Delete an SNMPv3 host – assumes UDP, port 162, and Trap notifications:
CONTROLLER>
snmp delete host
hostaddress
v3
user
CONTROLLER>
apply
• Delete an SNMPv3 host for Inform notifications – assumes UDP and port 162:
CONTROLLER>
snmp delete host
hostaddress
v3
user
remoteEngineID
CONTROLLER>
apply
• Delete an SNMPv2c host – assumes Trap notifications:
CONTROLLER>
snmp delete host
transport-specifier
:
hostaddress
:
port
v2c
community
CONTROLLER>
apply
snmp show community
Use the
snmp show community
command to list all SNMP v1 and v2 communities configured on this device.
Communities are only defined in SNMPv1 and v2 because SNMP v3 works with users instead of communities.
Syntax
snmp show community
Parameters
This command has no arguments or keywords.
Example
Show SNMP hosts:
CONTROLLER>
snmp show host
Notify Host number 0
host : 192.168.0.3
Notify type : trap
Version Set : v2c
sec name : public
snmp create community
Use the
snmp create community
command to create SNMP v1 and v2c communities.
All communities must have a community name, which is a type of shared password between the SNMP management
station and the device that is used to authenticate the SNMP management station. Communities can have read-write or
read-only management access. Optional parameters can also be specified to restrict the community to part of the MIB tree,
to clients using a particular source IP address, and/or to restrict access to management stations using IPv4 or IPv6.
Syntax
snmp create community
community
{
rw
|
ro
} [
oid
oid-root
] [
source
source-addr
] [
ipv4
|
ipv6
]