use nfdc instead of nfd-status
refs: #3878
Change-Id: Ib3aad0fdb48e719031d03a3706d284d93ada5653
diff --git a/docs/EXPERIMENTS.md b/docs/EXPERIMENTS.md
index 1b85fa5..3b83226 100644
--- a/docs/EXPERIMENTS.md
+++ b/docs/EXPERIMENTS.md
@@ -146,7 +146,7 @@
def run(self):
for host in self.net.hosts:
- host.cmd("nfd-status > status.txt")
+ host.cmd("nfdc status report > status.txt")
5. Register the experiment with the `ExperimentManager` to make the experiment runnable from the
command line.
@@ -176,6 +176,6 @@
for host in self.net.hosts:
# By default status.txt would be stored
# at /tmp/host/status.txt
- host.cmd("nfd-status > status.txt")
+ host.cmd("nfdc status report > status.txt")
Experiment.register("example-name", ExampleExperiment)
diff --git a/docs/GETTING-STARTED.md b/docs/GETTING-STARTED.md
index 5921579..ccc6f18 100644
--- a/docs/GETTING-STARTED.md
+++ b/docs/GETTING-STARTED.md
@@ -34,7 +34,7 @@
To see the status of the forwarder on the node:
- mininet> a nfd-status
+ mininet> a nfdc status report
To see the status of routing on the node:
diff --git a/ndn/experiments/experiment.py b/ndn/experiments/experiment.py
index e70c02c..f7284a8 100644
--- a/ndn/experiments/experiment.py
+++ b/ndn/experiments/experiment.py
@@ -66,8 +66,8 @@
# Checking for convergence
for host in self.net.hosts:
- statusRouter = host.cmd("nfd-status -b | grep site/%C1.Router/cs/")
- statusPrefix = host.cmd("nfd-status -b | grep ndn | grep site | grep -v Router")
+ statusRouter = host.cmd("nfdc fib list | grep site/%C1.Router/cs/")
+ statusPrefix = host.cmd("nfdc fib list | grep ndn | grep site | grep -v Router")
didNodeConverge = True
for node in self.nodes.split(","):
if ( ("/ndn/" + node + "-site/%C1.Router/cs/" + node) not in statusRouter or