2015年2月1日 星期日

[CNR 7.2] How to use command line (CLI) to modify the CNR


set the parameter of client.

nrcmd> client 1,6,00:00:00:00:00:01  show
100 Ok
1,6,00:00:00:00:00:01:
    action =
    add-to-environment-dictionary =
    authenticate-until =
    client-class-name = CableModem
    default-vpn =
    domain-name =
    embedded-policy =
    host-name =
    over-limit-client-class-name =
    override-vpn =
    policy-name = #CM_100
    selection-criteria =
    unauthenticated-client-class-name =
    user-defined =



nrcmd> client 1,6,00:00:00:00:00:01 set policy-name=#CM_200
100 Ok
policy-name="#CM_200"

nrcmd> save
100 Ok


Clone the policy from other policy.
Clone CM_100 to CM_10000.


nrcmd> policy #CM_10000 create clone=#CM_100
100 Ok
#CM_10000:
    affinity-period =
    allow-client-a-record-update = [default=disabled]
    allow-dual-zone-dns-update = [default=disabled]
    allow-lease-time-override = [default=disabled]
    allow-non-temporary-addresses = [default=true]
    allow-rapid-commit = [default=false]
    allow-temporary-addresses = [default=true]
    default-prefix-length = [default=64]
    forward-dnsupdate =
    forward-zone-name =
    giaddr-as-server-id = [default=false]
    grace-period = 24h
    inhibit-all-renews = [default=false]
    inhibit-renews-at-reboot = [default=false]
    limitation-count =
    offer-timeout = 24h
    packet-file-name = 100/000000000001
    packet-server-name =
    packet-siaddr = 192.168.0.1
    permanent-leases = [default=disabled]
    preferred-lifetime = [default=1w]
    reconfigure = [default=allow]
    reconfigure-via-relay = [default=false]
    reverse-dnsupdate =
    server-lease-time =
    split-lease-times = [default=disabled]
    unavailable-timeout = [default=24h]
    use-client-id-for-reservations = [default=off]
    v4-bootp-reply-options =
    v4-reply-options =
    v6-reply-options =
    valid-lifetime = [default=2w]


nrcmd> save
100 Ok



Reference:
1. CLI Reference Guide for Cisco Network Registrar 7.2

0 意見:

張貼留言