Advertisement
Guest User

Untitled

a guest
Jul 19th, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. Usage: mstpctl [options] [commands]
  2. options:
  3. -h | --help Show this help text
  4. -V | --version Show version
  5. -b | --batch <file> Process file with mstpctl commands
  6. -s | --stdin Process mstpctl commands from stdin
  7. Make sure to provide newlines between
  8. commands. Won't work if `batch` is used
  9. -i | --ignore Ignore failing commands during batch
  10. processing
  11. -f | --format <format> Select output format (json, plain)
  12. commands:
  13. -Add bridges to the mstpd's list:
  14. addbridge <bridge> [<bridge> ...]
  15. -Remove bridges from the mstpd's list:
  16. delbridge <bridge> [<bridge> ...]
  17. -Show bridge state for the CIST:
  18. showbridge [<bridge> ... [param]]
  19. -Show list of registered MSTIs:
  20. showmstilist <bridge>
  21. -Show MST ConfigId:
  22. showmstconfid <bridge>
  23. -Show VID-to-FID allocation table:
  24. showvid2fid <bridge>
  25. -Show FID-to-MSTID allocation table:
  26. showfid2mstid <bridge>
  27. -Show port state for the CIST:
  28. showport <bridge> [<port> ... [param]]
  29. -Show port detailed state for the CIST:
  30. showportdetail <bridge> [<port> ... [param]]
  31. -Show bridge state for the given MSTI:
  32. showtree <bridge> <mstid>
  33. -Show port detailed state for the given MSTI:
  34. showtreeport <bridge> <port> <mstid>
  35. -Set MST ConfigId elements: Revision Level (0-65535) and Name:
  36. setmstconfid <bridge> <revision> <name>
  37. -Set VIDs-to-FIDs allocation:
  38. setvid2fid <bridge> <FID>:<VIDs List> [<FID>:<VIDs List> ...]
  39. -Set FIDs-to-MSTIDs allocation:
  40. setfid2mstid <bridge> <mstid>:<FIDs List> [<mstid>:<FIDs List> ...]
  41. -Set bridge max age (6-40):
  42. setmaxage <bridge> <max_age>
  43. -Set bridge forward delay (4-30):
  44. setfdelay <bridge> <fwd_delay>
  45. -Set bridge max hops (6-40):
  46. setmaxhops <bridge> <max_hops>
  47. -Set bridge hello time (1-10):
  48. sethello <bridge> <hello_time>
  49. -Set bridge ageing time (10-1000000):
  50. setageing <bridge> <ageing_time>
  51. -Force Spanning Tree protocol version:
  52. setforcevers <bridge> {mstp|rstp|stp}
  53. -Set bridge transmit hold count (1-10):
  54. settxholdcount <bridge> <tx_hold_count>
  55. -Create new MSTI:
  56. createtree <bridge> <mstid>
  57. -Delete existing MSTI:
  58. deletetree <bridge> <mstid>
  59. -Set bridge priority (0-15) for the given MSTI:
  60. settreeprio <bridge> <mstid> <priority>
  61. -Set port external path cost for the CIST (0 = auto):
  62. setportpathcost <bridge> <port> <cost>
  63. -Set initial edge state:
  64. setportadminedge <bridge> <port> {yes|no}
  65. -Enable auto transition to/from edge state:
  66. setportautoedge <bridge> <port> {yes|no}
  67. -Set p2p detection mode:
  68. setportp2p <bridge> <port> {yes|no|auto}
  69. -Restrict port ability to take Root role:
  70. setportrestrrole <bridge> <port> {yes|no}
  71. -Restrict port ability to propagate received TCNs:
  72. setportrestrtcn <bridge> <port> {yes|no}
  73. -Try to get back from STP to rapid (RSTP/MSTP) mode:
  74. portmcheck <bridge> <port>
  75. -Set bpdu guard state:
  76. setbpduguard <bridge> <port> {yes|no}
  77. -Set port priority (0-15) for the given MSTI:
  78. settreeportprio <bridge> <port> <mstid> <priority>
  79. -Set port internal path cost for the given MSTI (0 = auto):
  80. settreeportcost <bridge> <port> <mstid> <cost>
  81. -Set port network state:
  82. setportnetwork <bridge> <port> {yes|no}
  83. -Set BPDU filter state:
  84. setportbpdufilter <bridge> <port> {yes|no}
  85. -Level of verbosity:
  86. debuglevel <level>
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement