("mynet"/"private"), but what appears in the group directive is the security name, regardless of the original community
string.
Syntax
snmp create comtosec securityName community [ source SOURCE ] { IPv4 | IPv6 }
Parameters
securityName Specify a security name to map to the source/community pair. The name must be alphanumeric, of
•
length 1-32, and the first letter must be a letter.
community Specify the SNMPv1/v2c community string. The string must be alphanumeric, of length 1-32, and the
•
first letter must be a letter.
•
source SOURCE Optionally specify a source IP, which can be a hostname, a subnet, or the word "default". A subnet
can be specified as IP/mask or IP/bits. The first source/community combination that matches the incoming packet is
selected.
IPv4, IPv6 Optionally choose which requests, IPv4 or IPv6, this mapping applies. Defaults to IPv4 if this option is
•
not specified.
Examples
•
Create a mapping from a source/community pair to a security name and limited to IPv6 requests:
CONTROLLER>snmp create comtosec securityName commsecret IPv6
CONTROLLER>apply
•
Create a mapping from a source/community pair to a security name and limited to requests from 192.168.0.0/16:
CONTROLLER>snmp create comtosec securityName commsecret SOURCE 192.168.0.0/16
CONTROLLER>apply
snmp delete comtosec
Use the snmp delete comtosec command to delete a community secret to a security name mapping.
Syntax
snmp delete comtosec securityName community [ Source SOURCE ] { IPv4 | IPv6 }
Parameters
•
securityName Specify the security name which maps to the source/community pair.
•
community Specify the SNMPv1/v2c community strings which maps to the security name.
source SOURCE Specify the IP, hostname or subnet if the mapping maps a specific source.
•
IPv4, IPv6 Choose which requests, IPv4 or IPv6, this mapping applies. Defaults to IPv4 if this option is not specified.
•
Examples
•
Delete mapping v1user (security name) to netcrit (v1/v2c style community string):
CONTROLLER>snmp delete comtosec v1user netcrit
CONTROLLER>apply
•
Delete mapping v2Sec to commsecret restricted from sources 192.168.0.0/16:
CONTROLLER>snmp delete comtosec v2Sec commsecret source 192.168.0.0/16
CONTROLLER>apply
™
©
SmartNA-X
1G/10G User Guide 1.4
2015 Network Critical Solutions Limited
SmartNA-X 1G/10G Modular | Command Line Reference | 159
Need help?
Do you have a question about the SmartNA-X and is the answer not in the manual?