
CLI Command Reference
nmcfg
Makito X User’s Guide, v2.0, Issue 01
305
E
XAMPLE
#1: I
NITIALIZING A COMMUNITY
-
BASED
(
V
1/
V
2
C
)
SYSTEM
E
XAMPLE
#2: C
REATING AN
SNMP
V
3
USER
In the example below, a system with default settings is configured to add a distant host
access (198.51.100.122) to the existing localhost and localnet accesses of the
admin
community. Note that the localnet source is a special keyword that translates at runtime
to the network settings of the LAN interface. System parameters are also defined.
# nmcfg
parameter value
--------------- ------------------------------------
contact<undefined>
location<undefined>
perm/group
community
source
-------------- --------------------- ----------------------
rw
admin
localhost
rw
admin
localnet
ro
public
localnet
# nmcfg system define contact “myname <[email protected]>"
# nmcfg system define location “Media Lab”
# nmcfg community permit admin rw 198.51.100.122
#
Two commands are required to create a USM (v3) user and define its access:
# nmcfg user define johnsmith SHA “arfds23dsjs” AES “2394urscxkvn”
# nmcfg access usm permit johnsmith operator