commands_output.golden 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. $ version
  2. e2e-test
  3. $ version -json
  4. e2e-test
  5. $ version -pretty
  6. e2e-test
  7. $ device-info
  8. name= cidr=[10.222.0.1/24]
  9. $ device-info -json
  10. {"name":"","cidr":["10.222.0.1/24"]}
  11. $ device-info -pretty
  12. {
  13. "name": "",
  14. "cidr": [
  15. "10.222.0.1/24"
  16. ]
  17. }
  18. $ list-hostmap
  19. $ list-hostmap -json
  20. []
  21. $ list-hostmap -pretty
  22. []
  23. $ list-hostmap -by-index
  24. $ list-hostmap -json -by-index
  25. []
  26. $ list-hostmap -pretty -by-index
  27. []
  28. $ list-pending-hostmap
  29. [10.222.0.9]: []
  30. $ list-pending-hostmap -json
  31. [{"vpnAddrs":["10.222.0.9"],"localIndex":<n>,"remoteIndex":<n>,"remoteAddrs":[],"cert":null,"messageCounter":<n>,"currentRemote":"","currentRelaysToMe":[],"currentRelaysThroughMe":[]}]
  32. $ list-pending-hostmap -pretty
  33. [
  34. {
  35. "vpnAddrs": [
  36. "10.222.0.9"
  37. ],
  38. "localIndex": <n>,
  39. "remoteIndex": <n>,
  40. "remoteAddrs": [],
  41. "cert": null,
  42. "messageCounter": <n>,
  43. "currentRemote": "",
  44. "currentRelaysToMe": [],
  45. "currentRelaysThroughMe": []
  46. }
  47. ]
  48. $ list-pending-hostmap -by-index
  49. $ list-pending-hostmap -json -by-index
  50. []
  51. $ list-pending-hostmap -pretty -by-index
  52. []
  53. $ list-lighthouse-addrmap
  54. 10.222.0.9: {}
  55. $ list-lighthouse-addrmap -json
  56. [{"vpnAddr":"10.222.0.9","addrs":{}}]
  57. $ list-lighthouse-addrmap -pretty
  58. [
  59. {
  60. "vpnAddr": "10.222.0.9",
  61. "addrs": {}
  62. }
  63. ]
  64. $ print-cert
  65. {
  66. "details": {
  67. "curve": "CURVE25519",
  68. "groups": [],
  69. "isCa": false,
  70. "issuer": "<hex>",
  71. "name": "output-golden",
  72. "networks": [
  73. "10.222.0.1/24"
  74. ],
  75. "notAfter": "<time>",
  76. "notBefore": "<time>",
  77. "publicKey": "<hex>",
  78. "unsafeNetworks": []
  79. },
  80. "fingerprint": "<hex>",
  81. "signature": "<hex>",
  82. "version": 1
  83. }
  84. $ print-cert -json
  85. {"details":{"curve":"CURVE25519","groups":[],"isCa":false,"issuer":"<hex>","name":"output-golden","networks":["10.222.0.1/24"],"notAfter":"<time>","notBefore":"<time>","publicKey":"<hex>","unsafeNetworks":[]},"fingerprint":"<hex>","signature":"<hex>","version":1}\ No newline at end of output
  86. $ print-cert -pretty
  87. {
  88. "details": {
  89. "curve": "CURVE25519",
  90. "groups": [],
  91. "isCa": false,
  92. "issuer": "<hex>",
  93. "name": "output-golden",
  94. "networks": [
  95. "10.222.0.1/24"
  96. ],
  97. "notAfter": "<time>",
  98. "notBefore": "<time>",
  99. "publicKey": "<hex>",
  100. "unsafeNetworks": []
  101. },
  102. "fingerprint": "<hex>",
  103. "signature": "<hex>",
  104. "version": 1
  105. }\ No newline at end of output
  106. $ print-cert -raw
  107. -----BEGIN NEBULA CERTIFICATE-----
  108. <pem>
  109. -----END NEBULA CERTIFICATE-----
  110. $ print-cert -json -raw
  111. {"details":{"curve":"CURVE25519","groups":[],"isCa":false,"issuer":"<hex>","name":"output-golden","networks":["10.222.0.1/24"],"notAfter":"<time>","notBefore":"<time>","publicKey":"<hex>","unsafeNetworks":[]},"fingerprint":"<hex>","signature":"<hex>","version":1}\ No newline at end of output
  112. $ print-cert -pretty -raw
  113. {
  114. "details": {
  115. "curve": "CURVE25519",
  116. "groups": [],
  117. "isCa": false,
  118. "issuer": "<hex>",
  119. "name": "output-golden",
  120. "networks": [
  121. "10.222.0.1/24"
  122. ],
  123. "notAfter": "<time>",
  124. "notBefore": "<time>",
  125. "publicKey": "<hex>",
  126. "unsafeNetworks": []
  127. },
  128. "fingerprint": "<hex>",
  129. "signature": "<hex>",
  130. "version": 1
  131. }\ No newline at end of output
  132. $ print-cert 10.222.0.9
  133. Could not find tunnel for vpn addr: 10.222.0.9
  134. $ print-cert -json 10.222.0.9
  135. Could not find tunnel for vpn addr: 10.222.0.9
  136. $ print-cert -pretty 10.222.0.9
  137. Could not find tunnel for vpn addr: 10.222.0.9
  138. $ print-cert 10.222.0.250
  139. Could not find tunnel for vpn addr: 10.222.0.250
  140. $ print-cert -json 10.222.0.250
  141. Could not find tunnel for vpn addr: 10.222.0.250
  142. $ print-cert -pretty 10.222.0.250
  143. Could not find tunnel for vpn addr: 10.222.0.250
  144. $ print-cert not-an-address
  145. The provided vpn addr could not be parsed: not-an-address
  146. $ print-cert -json not-an-address
  147. The provided vpn addr could not be parsed: not-an-address
  148. $ print-cert -pretty not-an-address
  149. The provided vpn addr could not be parsed: not-an-address
  150. $ print-tunnel
  151. No vpn address was provided
  152. $ print-tunnel -json
  153. flag provided but not defined: -json
  154. Usage:
  155. -pretty
  156. pretty prints json
  157. $ print-tunnel -pretty
  158. No vpn address was provided
  159. $ print-tunnel 10.222.0.9
  160. Could not find tunnel for vpn addr: 10.222.0.9
  161. $ print-tunnel -json 10.222.0.9
  162. flag provided but not defined: -json
  163. Usage:
  164. -pretty
  165. pretty prints json
  166. $ print-tunnel -pretty 10.222.0.9
  167. Could not find tunnel for vpn addr: 10.222.0.9
  168. $ print-tunnel 10.222.0.250
  169. Could not find tunnel for vpn addr: 10.222.0.250
  170. $ print-tunnel -json 10.222.0.250
  171. flag provided but not defined: -json
  172. Usage:
  173. -pretty
  174. pretty prints json
  175. $ print-tunnel -pretty 10.222.0.250
  176. Could not find tunnel for vpn addr: 10.222.0.250
  177. $ print-relays
  178. {"Relays":null}
  179. $ print-relays -json
  180. flag provided but not defined: -json
  181. Usage:
  182. -pretty
  183. pretty prints json
  184. $ print-relays -pretty
  185. {
  186. "Relays": null
  187. }
  188. $ query-lighthouse
  189. No vpn address was provided
  190. $ query-lighthouse -json
  191. The provided vpn address could not be parsed: -json
  192. $ query-lighthouse -pretty
  193. The provided vpn address could not be parsed: -pretty
  194. $ query-lighthouse 10.222.0.9
  195. {}
  196. $ query-lighthouse -json 10.222.0.9
  197. The provided vpn address could not be parsed: -json
  198. $ query-lighthouse -pretty 10.222.0.9
  199. The provided vpn address could not be parsed: -pretty
  200. $ query-lighthouse not-an-address
  201. The provided vpn address could not be parsed: not-an-address
  202. $ query-lighthouse -json not-an-address
  203. The provided vpn address could not be parsed: -json
  204. $ query-lighthouse -pretty not-an-address
  205. The provided vpn address could not be parsed: -pretty
  206. $ log-level
  207. Log level is not reconfigurable on this logger
  208. $ log-level -json
  209. Log level is not reconfigurable on this logger
  210. $ log-level -pretty
  211. Log level is not reconfigurable on this logger
  212. $ log-level debug
  213. Log level is not reconfigurable on this logger
  214. $ log-level -json debug
  215. Log level is not reconfigurable on this logger
  216. $ log-level -pretty debug
  217. Log level is not reconfigurable on this logger
  218. $ log-level bogus
  219. Log level is not reconfigurable on this logger
  220. $ log-level -json bogus
  221. Log level is not reconfigurable on this logger
  222. $ log-level -pretty bogus
  223. Log level is not reconfigurable on this logger
  224. $ log-level info
  225. Log level is not reconfigurable on this logger
  226. $ log-level -json info
  227. Log level is not reconfigurable on this logger
  228. $ log-level -pretty info
  229. Log level is not reconfigurable on this logger
  230. $ log-format
  231. Log format is not reconfigurable on this logger
  232. $ log-format -json
  233. Log format is not reconfigurable on this logger
  234. $ log-format -pretty
  235. Log format is not reconfigurable on this logger
  236. $ log-format json
  237. Log format is not reconfigurable on this logger
  238. $ log-format -json json
  239. Log format is not reconfigurable on this logger
  240. $ log-format -pretty json
  241. Log format is not reconfigurable on this logger
  242. $ log-format text
  243. Log format is not reconfigurable on this logger
  244. $ log-format -json text
  245. Log format is not reconfigurable on this logger
  246. $ log-format -pretty text
  247. Log format is not reconfigurable on this logger
  248. $ change-remote
  249. No vpn address was provided
  250. $ change-remote -json
  251. flag provided but not defined: -json
  252. Usage:
  253. -address string
  254. The new remote address, ip:port
  255. $ change-remote -pretty
  256. flag provided but not defined: -pretty
  257. Usage:
  258. -address string
  259. The new remote address, ip:port
  260. $ change-remote 10.222.0.9
  261. No address was provided
  262. $ change-remote -json 10.222.0.9
  263. flag provided but not defined: -json
  264. Usage:
  265. -address string
  266. The new remote address, ip:port
  267. $ change-remote -pretty 10.222.0.9
  268. flag provided but not defined: -pretty
  269. Usage:
  270. -address string
  271. The new remote address, ip:port
  272. $ change-remote -address 10.94.0.10:4242 10.222.0.9
  273. Could not find tunnel for vpn address: 10.222.0.9
  274. $ change-remote -json -address 10.94.0.10:4242 10.222.0.9
  275. flag provided but not defined: -json
  276. Usage:
  277. -address string
  278. The new remote address, ip:port
  279. $ change-remote -pretty -address 10.94.0.10:4242 10.222.0.9
  280. flag provided but not defined: -pretty
  281. Usage:
  282. -address string
  283. The new remote address, ip:port
  284. $ change-remote -address 10.94.0.10:4242 10.222.0.250
  285. Could not find tunnel for vpn address: 10.222.0.250
  286. $ change-remote -json -address 10.94.0.10:4242 10.222.0.250
  287. flag provided but not defined: -json
  288. Usage:
  289. -address string
  290. The new remote address, ip:port
  291. $ change-remote -pretty -address 10.94.0.10:4242 10.222.0.250
  292. flag provided but not defined: -pretty
  293. Usage:
  294. -address string
  295. The new remote address, ip:port
  296. $ create-tunnel
  297. No vpn address was provided
  298. $ create-tunnel -json
  299. flag provided but not defined: -json
  300. Usage:
  301. -address string
  302. Optionally provide a real remote address, ip:port
  303. $ create-tunnel -pretty
  304. flag provided but not defined: -pretty
  305. Usage:
  306. -address string
  307. Optionally provide a real remote address, ip:port
  308. $ create-tunnel 10.222.0.9
  309. Tunnel already handshaking
  310. $ create-tunnel -json 10.222.0.9
  311. flag provided but not defined: -json
  312. Usage:
  313. -address string
  314. Optionally provide a real remote address, ip:port
  315. $ create-tunnel -pretty 10.222.0.9
  316. flag provided but not defined: -pretty
  317. Usage:
  318. -address string
  319. Optionally provide a real remote address, ip:port
  320. $ create-tunnel -address 10.94.0.10:4242 10.222.0.10
  321. Created
  322. $ create-tunnel -json -address 10.94.0.10:4242 10.222.0.10
  323. flag provided but not defined: -json
  324. Usage:
  325. -address string
  326. Optionally provide a real remote address, ip:port
  327. $ create-tunnel -pretty -address 10.94.0.10:4242 10.222.0.10
  328. flag provided but not defined: -pretty
  329. Usage:
  330. -address string
  331. Optionally provide a real remote address, ip:port
  332. $ create-tunnel not-an-address
  333. The provided vpn address could not be parsed: not-an-address
  334. $ create-tunnel -json not-an-address
  335. flag provided but not defined: -json
  336. Usage:
  337. -address string
  338. Optionally provide a real remote address, ip:port
  339. $ create-tunnel -pretty not-an-address
  340. flag provided but not defined: -pretty
  341. Usage:
  342. -address string
  343. Optionally provide a real remote address, ip:port
  344. $ close-tunnel
  345. No vpn address was provided
  346. $ close-tunnel -json
  347. flag provided but not defined: -json
  348. Usage:
  349. -local-only
  350. Disables notifying the remote that the tunnel is shutting down
  351. $ close-tunnel -pretty
  352. flag provided but not defined: -pretty
  353. Usage:
  354. -local-only
  355. Disables notifying the remote that the tunnel is shutting down
  356. $ close-tunnel 10.222.0.250
  357. Could not find tunnel for vpn address: 10.222.0.250
  358. $ close-tunnel -json 10.222.0.250
  359. flag provided but not defined: -json
  360. Usage:
  361. -local-only
  362. Disables notifying the remote that the tunnel is shutting down
  363. $ close-tunnel -pretty 10.222.0.250
  364. flag provided but not defined: -pretty
  365. Usage:
  366. -local-only
  367. Disables notifying the remote that the tunnel is shutting down
  368. $ close-tunnel not-an-address
  369. The provided vpn address could not be parsed: not-an-address
  370. $ close-tunnel -json not-an-address
  371. flag provided but not defined: -json
  372. Usage:
  373. -local-only
  374. Disables notifying the remote that the tunnel is shutting down
  375. $ close-tunnel -pretty not-an-address
  376. flag provided but not defined: -pretty
  377. Usage:
  378. -local-only
  379. Disables notifying the remote that the tunnel is shutting down
  380. $ help
  381. Available commands:
  382. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  383. close-tunnel - Closes a tunnel for the provided vpn addr
  384. create-tunnel - Creates a tunnel for the provided vpn address
  385. device-info - Prints information about the network device.
  386. help - prints available commands or help <command> for specific usage info
  387. list-hostmap - List all known previously connected hosts
  388. list-lighthouse-addrmap - List all lighthouse map entries
  389. list-pending-hostmap - List all handshaking hosts
  390. log-format - Gets or sets the current log format
  391. log-level - Gets or sets the current log level
  392. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  393. print-relays - Prints json details about all relay info
  394. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  395. query-lighthouse - Query the lighthouses for the provided vpn address
  396. reload - Reloads configuration from disk, same as sending HUP to the process
  397. version - Prints the currently running version of nebula
  398. $ help -json
  399. Command not available -json
  400. $ help -pretty
  401. Command not available -pretty
  402. $ help print-cert
  403. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  404. -json
  405. outputs as json
  406. -pretty
  407. pretty prints json, assumes -json
  408. -raw
  409. raw prints the PEM encoded certificate, not compatible with -json or -pretty
  410. $ help -json print-cert
  411. Command not available -json
  412. $ help -pretty print-cert
  413. Command not available -pretty
  414. $ reload
  415. Reloading config
  416. Config reload failed, the new config did not load: no config files found at
  417. $ reload -json
  418. Reloading config
  419. Config reload failed, the new config did not load: no config files found at
  420. $ reload -pretty
  421. Reloading config
  422. Config reload failed, the new config did not load: no config files found at