blob: 352a5370fffdf1b8d385b41ad1399a7f4a2aeed0 [file] [log] [blame]
Vince Lehmanc439d662015-04-27 10:56:00 -05001nlsrc
2=====
3
4Usage
5-----
6
7::
8
9 nlsrc [-h] [-V] COMMAND [<Command Options>]
10
11
12Description
13-----------
14
15``nlsrc`` is a tool to retrieve link-state database (LSDB) status information from NLSR and
16announce/withdraw Name prefixes advertised by NLSR.
17
18Options
19-------
20
21``-h``
22 Print usage information
23
24``-V``
25 Show NLSRC version information
26
27``COMMAND``
28
laqinfan35731852017-08-08 06:17:39 -050029 ``lsdb``
Vince Lehmanc439d662015-04-27 10:56:00 -050030 Retrieve LSDB status information
31
laqinfan35731852017-08-08 06:17:39 -050032 ``routing``
33 Retrieve routing table status information
34
35 ``status``
36 Retrieve LSDB status and routing table status information
37
Vince Lehmanc439d662015-04-27 10:56:00 -050038 ``advertise``
39 Add a Name prefix to be advertised by NLSR
40
41 ``advertise <name>``
42
43 ``name``
44 The Name prefix to be advertised
45
Saurab Dulal7526cee2018-01-31 18:14:10 +000046 ``advertise <name> save``
47
48 ``save``
49 Advertise a prefix and also save it to the nlsr.conf file for the next start of NLSR
50
Vince Lehmanc439d662015-04-27 10:56:00 -050051 ``withdraw``
52 Remove a Name prefix advertised through NLSR
53
54 ``withdraw <name>``
55
56 ``name``
57 The Name prefix to be withdrawn
58
Saurab Dulal7526cee2018-01-31 18:14:10 +000059 ``withdraw <name> delete``
60
61 ``delete``
62 Withdraw a prefix and also delete it from the nlsr.conf file
63
dmcoomesc2c3ae02017-04-19 10:25:58 -050064Notes
65-----
66
67When security is enabled, NLSR will not be allowed to successfully
68advertise/withdraw names without first setting a default identity of operator.
69If default identity is not set as operator, the user will be presented with the
70error message: Name prefix update error (code: 403)”. To remedy this
71issue, use command 'ndn-sec-default'.
72
73Example:
74
75 ndnsec-set-default /ndn/a-site/%C1.Operator/op
76
Vince Lehmanc439d662015-04-27 10:56:00 -050077Exit Status
78-----------
79
80nlsrc exits with one of the following values:
81::
82
83 0 nlsrc exited successfully
84 >0 An error occurred