cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Node Reboot Using CSMP

331
Views
0
Helpful
0
Comments
mathaker
Contributor

This note illustrates how you can remotely reboot a CG-mesh node using the CSMP protocol.  In this example we use the CSMP CLI tool.  We also assume that CSMP message signing (a security measure) is not in use.

  • ping the node.  make sure it responds.  <100% success is okay...
  • Issue the CSMP request using the CSMP CLI tool.

C:\> java -jar CsmpRequest-5.4.19.jar -r [2001:db8:3:9:1:3b0b:33:37] -P txreq.json.txt 32
log4j:WARN No appenders could be found for logger (com.cisco.cgms.protocols.coap.CoapClient).
log4j:WARN Please initialize the log4j system properly.
CoapMessage(transaction_type=ACK,status=201,bodylen=0)

  • make sure you see the ACK.
  • ping the node.  make sure it fails to respond. 100% failure required…


Here is what the JSON file looks like:

C:\>type txreq.json.txt
  {"flag":0}

Content for Community-Ad

This widget could not be displayed.