blob: 81d92f27681bc78ccc7852d23150eee8f685ed1c [file] [log] [blame]
Vince Lehmanc439d662015-04-27 10:56:00 -05001nlsrc
2=====
3
4Usage
5-----
6
7::
8
Junxiao Shia3a63972022-01-24 02:03:41 +00009 nlsrc [-h | -V]
10 nlsrc [-R <router prefix> [-c <nlsr.conf path> | -k]] COMMAND [<Command Options>]
Vince Lehmanc439d662015-04-27 10:56:00 -050011
12
13Description
14-----------
15
16``nlsrc`` is a tool to retrieve link-state database (LSDB) status information from NLSR and
17announce/withdraw Name prefixes advertised by NLSR.
18
19Options
20-------
21
22``-h``
23 Print usage information
24
25``-V``
26 Show NLSRC version information
27
Junxiao Shia3a63972022-01-24 02:03:41 +000028``-R <router prefix>``
29 Target a remote NLSR instance.
30 The default is the local NLSR instance ``/localhost``.
31
32``-c <nlsr.conf path>``
33 Verify remote status information with the trust schema loaded from ``security.validator`` section of specified nlsr.conf config file.
34 The default is loading from ``/etc/ndn/nlsr.conf``.
35
36``-k``
37 Insecure: do not verify signature on status information retrieved from remote router.
38
Vince Lehmanc439d662015-04-27 10:56:00 -050039``COMMAND``
40
laqinfan35731852017-08-08 06:17:39 -050041 ``lsdb``
Vince Lehmanc439d662015-04-27 10:56:00 -050042 Retrieve LSDB status information
43
laqinfan35731852017-08-08 06:17:39 -050044 ``routing``
45 Retrieve routing table status information
46
47 ``status``
48 Retrieve LSDB status and routing table status information
49
Vince Lehmanc439d662015-04-27 10:56:00 -050050 ``advertise``
51 Add a Name prefix to be advertised by NLSR
52
53 ``advertise <name>``
54
55 ``name``
56 The Name prefix to be advertised
57
Saurab Dulal7526cee2018-01-31 18:14:10 +000058 ``advertise <name> save``
59
60 ``save``
dulalsaurab82a34c22019-02-04 17:31:21 +000061 Advertise a prefix and also save it to the nlsr.conf file residing in the state-dir for the next start of NLSR that operator may copy and use for the next start of NLSR
Saurab Dulal7526cee2018-01-31 18:14:10 +000062
Vince Lehmanc439d662015-04-27 10:56:00 -050063 ``withdraw``
64 Remove a Name prefix advertised through NLSR
65
66 ``withdraw <name>``
67
68 ``name``
69 The Name prefix to be withdrawn
70
Saurab Dulal7526cee2018-01-31 18:14:10 +000071 ``withdraw <name> delete``
72
73 ``delete``
dulalsaurab82a34c22019-02-04 17:31:21 +000074 Withdraw a prefix and also delete it from the nlsr.conf file residing in the state-dir
Saurab Dulal7526cee2018-01-31 18:14:10 +000075
dmcoomesc2c3ae02017-04-19 10:25:58 -050076Notes
77-----
78
79When security is enabled, NLSR will not be allowed to successfully
80advertise/withdraw names without first setting a default identity of operator.
81If default identity is not set as operator, the user will be presented with the
Davide Pesavento1b640fd2023-01-04 21:00:05 -050082error message: "Name prefix update error (code: 403)". To remedy this
83issue, use the command ``ndnsec set-default``. Example::
dmcoomesc2c3ae02017-04-19 10:25:58 -050084
Davide Pesavento1b640fd2023-01-04 21:00:05 -050085 ndnsec set-default /ndn/a-site/%C1.Operator/op
dmcoomesc2c3ae02017-04-19 10:25:58 -050086
Vince Lehmanc439d662015-04-27 10:56:00 -050087Exit Status
88-----------
89
Davide Pesavento1b640fd2023-01-04 21:00:05 -050090nlsrc exits with one of the following values::
Vince Lehmanc439d662015-04-27 10:56:00 -050091
92 0 nlsrc exited successfully
93 >0 An error occurred