commands_output.golden 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  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. exit status 1
  135. $ print-cert -json 10.222.0.9
  136. Could not find tunnel for vpn addr: 10.222.0.9
  137. exit status 1
  138. $ print-cert -pretty 10.222.0.9
  139. Could not find tunnel for vpn addr: 10.222.0.9
  140. exit status 1
  141. $ print-cert 10.222.0.250
  142. Could not find tunnel for vpn addr: 10.222.0.250
  143. exit status 1
  144. $ print-cert -json 10.222.0.250
  145. Could not find tunnel for vpn addr: 10.222.0.250
  146. exit status 1
  147. $ print-cert -pretty 10.222.0.250
  148. Could not find tunnel for vpn addr: 10.222.0.250
  149. exit status 1
  150. $ print-cert not-an-address
  151. The provided vpn addr could not be parsed: not-an-address
  152. exit status 1
  153. $ print-cert -json not-an-address
  154. The provided vpn addr could not be parsed: not-an-address
  155. exit status 1
  156. $ print-cert -pretty not-an-address
  157. The provided vpn addr could not be parsed: not-an-address
  158. exit status 1
  159. $ print-tunnel
  160. No vpn address was provided
  161. exit status 1
  162. $ print-tunnel -json
  163. flag provided but not defined: -json
  164. Usage:
  165. -pretty
  166. pretty prints json
  167. exit status 1
  168. $ print-tunnel -pretty
  169. No vpn address was provided
  170. exit status 1
  171. $ print-tunnel 10.222.0.9
  172. Could not find tunnel for vpn addr: 10.222.0.9
  173. exit status 1
  174. $ print-tunnel -json 10.222.0.9
  175. flag provided but not defined: -json
  176. Usage:
  177. -pretty
  178. pretty prints json
  179. exit status 1
  180. $ print-tunnel -pretty 10.222.0.9
  181. Could not find tunnel for vpn addr: 10.222.0.9
  182. exit status 1
  183. $ print-tunnel 10.222.0.250
  184. Could not find tunnel for vpn addr: 10.222.0.250
  185. exit status 1
  186. $ print-tunnel -json 10.222.0.250
  187. flag provided but not defined: -json
  188. Usage:
  189. -pretty
  190. pretty prints json
  191. exit status 1
  192. $ print-tunnel -pretty 10.222.0.250
  193. Could not find tunnel for vpn addr: 10.222.0.250
  194. exit status 1
  195. $ print-relays
  196. {"Relays":null}
  197. $ print-relays -json
  198. flag provided but not defined: -json
  199. Usage:
  200. -pretty
  201. pretty prints json
  202. exit status 1
  203. $ print-relays -pretty
  204. {
  205. "Relays": null
  206. }
  207. $ query-lighthouse
  208. No vpn address was provided
  209. exit status 1
  210. $ query-lighthouse -json
  211. The provided vpn address could not be parsed: -json
  212. exit status 1
  213. $ query-lighthouse -pretty
  214. The provided vpn address could not be parsed: -pretty
  215. exit status 1
  216. $ query-lighthouse 10.222.0.9
  217. {}
  218. $ query-lighthouse -json 10.222.0.9
  219. The provided vpn address could not be parsed: -json
  220. exit status 1
  221. $ query-lighthouse -pretty 10.222.0.9
  222. The provided vpn address could not be parsed: -pretty
  223. exit status 1
  224. $ query-lighthouse not-an-address
  225. The provided vpn address could not be parsed: not-an-address
  226. exit status 1
  227. $ query-lighthouse -json not-an-address
  228. The provided vpn address could not be parsed: -json
  229. exit status 1
  230. $ query-lighthouse -pretty not-an-address
  231. The provided vpn address could not be parsed: -pretty
  232. exit status 1
  233. $ log-level
  234. Log level is not reconfigurable on this logger
  235. exit status 1
  236. $ log-level -json
  237. Log level is not reconfigurable on this logger
  238. exit status 1
  239. $ log-level -pretty
  240. Log level is not reconfigurable on this logger
  241. exit status 1
  242. $ log-level debug
  243. Log level is not reconfigurable on this logger
  244. exit status 1
  245. $ log-level -json debug
  246. Log level is not reconfigurable on this logger
  247. exit status 1
  248. $ log-level -pretty debug
  249. Log level is not reconfigurable on this logger
  250. exit status 1
  251. $ log-level bogus
  252. Log level is not reconfigurable on this logger
  253. exit status 1
  254. $ log-level -json bogus
  255. Log level is not reconfigurable on this logger
  256. exit status 1
  257. $ log-level -pretty bogus
  258. Log level is not reconfigurable on this logger
  259. exit status 1
  260. $ log-level info
  261. Log level is not reconfigurable on this logger
  262. exit status 1
  263. $ log-level -json info
  264. Log level is not reconfigurable on this logger
  265. exit status 1
  266. $ log-level -pretty info
  267. Log level is not reconfigurable on this logger
  268. exit status 1
  269. $ log-format
  270. Log format is not reconfigurable on this logger
  271. exit status 1
  272. $ log-format -json
  273. Log format is not reconfigurable on this logger
  274. exit status 1
  275. $ log-format -pretty
  276. Log format is not reconfigurable on this logger
  277. exit status 1
  278. $ log-format json
  279. Log format is not reconfigurable on this logger
  280. exit status 1
  281. $ log-format -json json
  282. Log format is not reconfigurable on this logger
  283. exit status 1
  284. $ log-format -pretty json
  285. Log format is not reconfigurable on this logger
  286. exit status 1
  287. $ log-format text
  288. Log format is not reconfigurable on this logger
  289. exit status 1
  290. $ log-format -json text
  291. Log format is not reconfigurable on this logger
  292. exit status 1
  293. $ log-format -pretty text
  294. Log format is not reconfigurable on this logger
  295. exit status 1
  296. $ change-remote
  297. No vpn address was provided
  298. exit status 1
  299. $ change-remote -json
  300. flag provided but not defined: -json
  301. Usage:
  302. -address string
  303. The new remote address, ip:port
  304. exit status 1
  305. $ change-remote -pretty
  306. flag provided but not defined: -pretty
  307. Usage:
  308. -address string
  309. The new remote address, ip:port
  310. exit status 1
  311. $ change-remote 10.222.0.9
  312. No address was provided
  313. exit status 1
  314. $ change-remote -json 10.222.0.9
  315. flag provided but not defined: -json
  316. Usage:
  317. -address string
  318. The new remote address, ip:port
  319. exit status 1
  320. $ change-remote -pretty 10.222.0.9
  321. flag provided but not defined: -pretty
  322. Usage:
  323. -address string
  324. The new remote address, ip:port
  325. exit status 1
  326. $ change-remote -address 10.94.0.10:4242 10.222.0.9
  327. Could not find tunnel for vpn address: 10.222.0.9
  328. exit status 1
  329. $ change-remote -json -address 10.94.0.10:4242 10.222.0.9
  330. flag provided but not defined: -json
  331. Usage:
  332. -address string
  333. The new remote address, ip:port
  334. exit status 1
  335. $ change-remote -pretty -address 10.94.0.10:4242 10.222.0.9
  336. flag provided but not defined: -pretty
  337. Usage:
  338. -address string
  339. The new remote address, ip:port
  340. exit status 1
  341. $ change-remote -address 10.94.0.10:4242 10.222.0.250
  342. Could not find tunnel for vpn address: 10.222.0.250
  343. exit status 1
  344. $ change-remote -json -address 10.94.0.10:4242 10.222.0.250
  345. flag provided but not defined: -json
  346. Usage:
  347. -address string
  348. The new remote address, ip:port
  349. exit status 1
  350. $ change-remote -pretty -address 10.94.0.10:4242 10.222.0.250
  351. flag provided but not defined: -pretty
  352. Usage:
  353. -address string
  354. The new remote address, ip:port
  355. exit status 1
  356. $ create-tunnel
  357. No vpn address was provided
  358. exit status 1
  359. $ create-tunnel -json
  360. flag provided but not defined: -json
  361. Usage:
  362. -address string
  363. Optionally provide a real remote address, ip:port
  364. exit status 1
  365. $ create-tunnel -pretty
  366. flag provided but not defined: -pretty
  367. Usage:
  368. -address string
  369. Optionally provide a real remote address, ip:port
  370. exit status 1
  371. $ create-tunnel 10.222.0.9
  372. Tunnel already handshaking
  373. exit status 1
  374. $ create-tunnel -json 10.222.0.9
  375. flag provided but not defined: -json
  376. Usage:
  377. -address string
  378. Optionally provide a real remote address, ip:port
  379. exit status 1
  380. $ create-tunnel -pretty 10.222.0.9
  381. flag provided but not defined: -pretty
  382. Usage:
  383. -address string
  384. Optionally provide a real remote address, ip:port
  385. exit status 1
  386. $ create-tunnel -address 10.94.0.10:4242 10.222.0.10
  387. Created
  388. $ create-tunnel -json -address 10.94.0.10:4242 10.222.0.10
  389. flag provided but not defined: -json
  390. Usage:
  391. -address string
  392. Optionally provide a real remote address, ip:port
  393. exit status 1
  394. $ create-tunnel -pretty -address 10.94.0.10:4242 10.222.0.10
  395. flag provided but not defined: -pretty
  396. Usage:
  397. -address string
  398. Optionally provide a real remote address, ip:port
  399. exit status 1
  400. $ create-tunnel not-an-address
  401. The provided vpn address could not be parsed: not-an-address
  402. exit status 1
  403. $ create-tunnel -json not-an-address
  404. flag provided but not defined: -json
  405. Usage:
  406. -address string
  407. Optionally provide a real remote address, ip:port
  408. exit status 1
  409. $ create-tunnel -pretty not-an-address
  410. flag provided but not defined: -pretty
  411. Usage:
  412. -address string
  413. Optionally provide a real remote address, ip:port
  414. exit status 1
  415. $ close-tunnel
  416. No vpn address was provided
  417. exit status 1
  418. $ close-tunnel -json
  419. flag provided but not defined: -json
  420. Usage:
  421. -local-only
  422. Disables notifying the remote that the tunnel is shutting down
  423. exit status 1
  424. $ close-tunnel -pretty
  425. flag provided but not defined: -pretty
  426. Usage:
  427. -local-only
  428. Disables notifying the remote that the tunnel is shutting down
  429. exit status 1
  430. $ close-tunnel 10.222.0.250
  431. Could not find tunnel for vpn address: 10.222.0.250
  432. exit status 1
  433. $ close-tunnel -json 10.222.0.250
  434. flag provided but not defined: -json
  435. Usage:
  436. -local-only
  437. Disables notifying the remote that the tunnel is shutting down
  438. exit status 1
  439. $ close-tunnel -pretty 10.222.0.250
  440. flag provided but not defined: -pretty
  441. Usage:
  442. -local-only
  443. Disables notifying the remote that the tunnel is shutting down
  444. exit status 1
  445. $ close-tunnel not-an-address
  446. The provided vpn address could not be parsed: not-an-address
  447. exit status 1
  448. $ close-tunnel -json not-an-address
  449. flag provided but not defined: -json
  450. Usage:
  451. -local-only
  452. Disables notifying the remote that the tunnel is shutting down
  453. exit status 1
  454. $ close-tunnel -pretty not-an-address
  455. flag provided but not defined: -pretty
  456. Usage:
  457. -local-only
  458. Disables notifying the remote that the tunnel is shutting down
  459. exit status 1
  460. $ help
  461. Available commands:
  462. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  463. close-tunnel - Closes a tunnel for the provided vpn addr
  464. create-tunnel - Creates a tunnel for the provided vpn address
  465. device-info - Prints information about the network device.
  466. help - prints available commands or help <command> for specific usage info
  467. list-hostmap - List all known previously connected hosts
  468. list-lighthouse-addrmap - List all lighthouse map entries
  469. list-pending-hostmap - List all handshaking hosts
  470. log-format - Gets or sets the current log format
  471. log-level - Gets or sets the current log level
  472. logout - Ends the current session
  473. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  474. print-relays - Prints json details about all relay info
  475. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  476. query-lighthouse - Query the lighthouses for the provided vpn address
  477. reload - Reloads configuration from disk, same as sending HUP to the process
  478. version - Prints the currently running version of nebula
  479. $ help -json
  480. Command not available -json
  481. exit status 1
  482. $ help -pretty
  483. Command not available -pretty
  484. exit status 1
  485. $ help print-cert
  486. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  487. -json
  488. outputs as json
  489. -pretty
  490. pretty prints json, assumes -json
  491. -raw
  492. raw prints the PEM encoded certificate, not compatible with -json or -pretty
  493. $ help -json print-cert
  494. Command not available -json
  495. exit status 1
  496. $ help -pretty print-cert
  497. Command not available -pretty
  498. exit status 1
  499. $ help logout
  500. logout - Ends the current session
  501. $ help -json logout
  502. Command not available -json
  503. exit status 1
  504. $ help -pretty logout
  505. Command not available -pretty
  506. exit status 1
  507. $ logout -h
  508. logout - Ends the current session
  509. $ logout -json -h
  510. logout - Ends the current session
  511. $ logout -pretty -h
  512. logout - Ends the current session
  513. $ not-a-command 10.222.0.9
  514. did not understand: not-a-command
  515. Available commands:
  516. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  517. close-tunnel - Closes a tunnel for the provided vpn addr
  518. create-tunnel - Creates a tunnel for the provided vpn address
  519. device-info - Prints information about the network device.
  520. help - prints available commands or help <command> for specific usage info
  521. list-hostmap - List all known previously connected hosts
  522. list-lighthouse-addrmap - List all lighthouse map entries
  523. list-pending-hostmap - List all handshaking hosts
  524. log-format - Gets or sets the current log format
  525. log-level - Gets or sets the current log level
  526. logout - Ends the current session
  527. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  528. print-relays - Prints json details about all relay info
  529. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  530. query-lighthouse - Query the lighthouses for the provided vpn address
  531. reload - Reloads configuration from disk, same as sending HUP to the process
  532. version - Prints the currently running version of nebula
  533. exit status 1
  534. $ not-a-command -json 10.222.0.9
  535. did not understand: not-a-command
  536. Available commands:
  537. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  538. close-tunnel - Closes a tunnel for the provided vpn addr
  539. create-tunnel - Creates a tunnel for the provided vpn address
  540. device-info - Prints information about the network device.
  541. help - prints available commands or help <command> for specific usage info
  542. list-hostmap - List all known previously connected hosts
  543. list-lighthouse-addrmap - List all lighthouse map entries
  544. list-pending-hostmap - List all handshaking hosts
  545. log-format - Gets or sets the current log format
  546. log-level - Gets or sets the current log level
  547. logout - Ends the current session
  548. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  549. print-relays - Prints json details about all relay info
  550. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  551. query-lighthouse - Query the lighthouses for the provided vpn address
  552. reload - Reloads configuration from disk, same as sending HUP to the process
  553. version - Prints the currently running version of nebula
  554. exit status 1
  555. $ not-a-command -pretty 10.222.0.9
  556. did not understand: not-a-command
  557. Available commands:
  558. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  559. close-tunnel - Closes a tunnel for the provided vpn addr
  560. create-tunnel - Creates a tunnel for the provided vpn address
  561. device-info - Prints information about the network device.
  562. help - prints available commands or help <command> for specific usage info
  563. list-hostmap - List all known previously connected hosts
  564. list-lighthouse-addrmap - List all lighthouse map entries
  565. list-pending-hostmap - List all handshaking hosts
  566. log-format - Gets or sets the current log format
  567. log-level - Gets or sets the current log level
  568. logout - Ends the current session
  569. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  570. print-relays - Prints json details about all relay info
  571. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  572. query-lighthouse - Query the lighthouses for the provided vpn address
  573. reload - Reloads configuration from disk, same as sending HUP to the process
  574. version - Prints the currently running version of nebula
  575. exit status 1
  576. $ reload
  577. Reloading config
  578. Config reload failed, the new config did not load: no config files found at
  579. exit status 1
  580. $ reload -json
  581. Reloading config
  582. Config reload failed, the new config did not load: no config files found at
  583. exit status 1
  584. $ reload -pretty
  585. Reloading config
  586. Config reload failed, the new config did not load: no config files found at
  587. exit status 1