You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gateways:=report.Command("gateways", "Repost on Gateway (Super Cluster) connections").Alias("super").Alias("gateway").Action(c.reportGateway)
111
+
gateways.Arg("limit", "Limit the responses to a certain amount of servers").IntVar(&c.waitFor)
110
112
gateways.Flag("filter-name", "Limits responses to a certain name").StringVar(&c.gatewayName)
111
113
gateways.Flag("sort", "Sorts by a specific property (server,cluster)").Default("cluster").EnumVar(&c.sort, "server", "cluster")
112
114
addFilterOpts(gateways)
113
115
114
116
health:=report.Command("health", "Report on Server health").Action(c.reportHealth)
117
+
health.Arg("limit", "Limit the responses to a certain amount of servers").IntVar(&c.waitFor)
115
118
health.Flag("js-enabled", "Checks that JetStream should be enabled on all servers").Short('J').BoolVar(&c.jsEnabled)
116
119
health.Flag("server-only", "Restricts the health check to the JetStream server only, do not check streams and consumers").Short('S').BoolVar(&c.jsServerOnly)
117
120
health.Flag("account", "Check only a specific Account").StringVar(&c.account)
leafs:=report.Command("leafnodes", "Report on Leafnode connections").Alias("leaf").Alias("leafz").Action(c.reportLeafs)
133
+
leafs.Arg("limit", "Limit the responses to a certain amount of servers").IntVar(&c.waitFor)
130
134
leafs.Flag("account", "Produce the report for a specific account").StringVar(&c.account)
131
135
leafs.Flag("sort", "Sort by a specific property (server,name,account,subs,in-bytes,out-bytes,in-msgs,out-msgs)").EnumVar(&c.sort, "server", "name", "account", "subs", "in-bytes", "out-bytes", "in-msgs", "out-msgs")
132
136
addFilterOpts(leafs)
133
137
134
138
mem:=report.Command("mem", "Report on Memory usage").Action(c.reportMem)
139
+
mem.Arg("limit", "Limit the responses to a certain amount of servers").IntVar(&c.waitFor)
routes:=report.Command("routes", "Report on Route (Cluster) connections").Alias("route").Action(c.reportRoute)
144
+
routes.Arg("limit", "Limit the responses to a certain amount of servers").IntVar(&c.waitFor)
139
145
routes.Flag("sort", "Sort by a specific property (server,cluster,name,account,subs,in-bytes,out-bytes)").EnumVar(&c.sort, "server", "cluster", "name", "account", "subs", "in-bytes", "out-bytes")
0 commit comments