QTECH
Software Configuration Manual
2-37
! Display local engine configuration
QTECH(config)# show snmp engineid local
2.12.8
Configure view
Use snmp-server view command to configure view and its subtree. Iso, internet and sysview are the default
views. At most 64 views can be configured. View Internet must not delete and modify. Configure it in global
configuration mode :
snmp-server view view-name
oid-tree
{ included | excluded }
no snmp-server view view-name
[ oid-tree ]
View-name means the name of the view to be added. It ranges from 1 to 32, excluding space.
Oid-tree means the subtree of the view which corresponds to such a mib node as “1.3.6.1”; The substring of
OID must be the integer between 0 and 2147483647.
In the view name string of character contains the character integer adds on which OID to contain the node integer
adds on 2 again and do not surpass 64.
The sum of the number of characters in view name string and the number of oid nodes should not be more
than 62.
When configuring view subtree to be exclude, the node in this subtree cannot be accesed which does not
mean the node excluded this subtree can be accessed. When configuring notify destination host, if the security name
is the community, sending notify is not effected on view; if the user with the security name being SNMPv3, sending
notify is controlled by notify view of this user. What this notify view controlled is the accessing of the node that
variable belongs to and it is not influence accessing attribution of trap OID that notify belonged to. If notify does not
contain binded variable, sending notify is not effected on view.
For example :
! Add view “view1”, and configure it to have a subtree “1.3.6.1”
QTECH(config)# snmp-server view view1 1.3.6.1 include
! Add a subtree “1.3.6.2” for existed view “view1”
QTECH(config)# snmp-server view view1 1.3.6.2 include
! Remove existed view “view1”
QTECH(config)# no snmp-server view view1
! Display configured view
QTECH(config)# show snmp view
2.12.9
Configure group
Use this configuration to configure a accessing conreol group. Folowing groups are default to exist : (1)
security model is v3, the security level is differentiated group initial ; (2) security model is v3, the security level is
differentiated encrypt group initial. At most 64 groups can be configured. Configure it in global configuiration mode :
snmp-server group
groupname
{
1
|
2c
|
3
[
auth
|
noauth
|
priv
] [
context
context-name
]} [
read
readview
] [
write
writeview
] [
notify
notifyview
]
no snmp-server group
groupname
{
1 | 2c | 3 [auth | noauth | priv
] [
contex
t
context-name
]}
Display configured group in any configuration mode :
show snmp group
groupname means group name, which ranges from 1 to 32 characters, excluding space.
Readview is a view name, which means the right to read in the view. If the keyword is vacant, it is default
not to include readable view.
Writeview is a view name, which means the right to read and write in the view. If the keyword is vacant, it is
default not to include readable and writable view.
Notifyview is a view name, which means the right to send notification in the view. If the keyword is vacant,
it is default not to include notify sending view.