nlsrc¶
Usage¶
nlsrc [-h | -V]
nlsrc [-R <router prefix> [-c <nlsr.conf path> | -k]] COMMAND [<Command Options>]
Description¶
nlsrc is a tool to retrieve link-state database (LSDB) status information from NLSR and
announce/withdraw Name prefixes advertised by NLSR.
Options¶
-hPrint usage information
-VShow NLSRC version information
-R <router prefix>Target a remote NLSR instance. The default is the local NLSR instance
/localhost.-c <nlsr.conf path>Verify remote status information with the trust schema loaded from
security.validatorsection of specified nlsr.conf config file. The default is loading from/etc/ndn/nlsr.conf.-kInsecure: do not verify signature on status information retrieved from remote router.
COMMAND
lsdbRetrieve LSDB status information
routingRetrieve routing table status information
statusRetrieve LSDB status and routing table status information
advertiseAdd a Name prefix to be advertised by NLSR
advertise <name>
nameThe Name prefix to be advertised
advertise <name> save
saveAdvertise 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
withdrawRemove a Name prefix advertised through NLSR
withdraw <name>
nameThe Name prefix to be withdrawn
withdraw <name> delete
deleteWithdraw a prefix and also delete it from the nlsr.conf file residing in the state-dir
Notes¶
When security is enabled, NLSR will not be allowed to successfully
advertise/withdraw names without first setting a default identity of operator.
If default identity is not set as operator, the user will be presented with the
error message: “Name prefix update error (code: 403)”. To remedy this
issue, use the command ndnsec set-default. Example:
ndnsec set-default /ndn/a-site/%C1.Operator/op
Exit Status¶
nlsrc exits with one of the following values:
0 nlsrc exited successfully
1 generic error
2 bad command line
