Populated syntax field
Browse files- cisco_cli_commands.json +445 -347
cisco_cli_commands.json
CHANGED
@@ -1,347 +1,445 @@
|
|
1 |
-
[
|
2 |
-
{
|
3 |
-
"command": "enable",
|
4 |
-
"description": "Switches the user from user EXEC mode to privileged EXEC mode, allowing access to more powerful administrative commands. Privileged EXEC mode is indicated by the `#` symbol in the prompt.",
|
5 |
-
"examples": [
|
6 |
-
{
|
7 |
-
"example_command": "enable",
|
8 |
-
"explanation": "Switches from user EXEC mode to privileged EXEC mode."
|
9 |
-
}
|
10 |
-
]
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
"
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
"
|
44 |
-
"
|
45 |
-
|
46 |
-
|
47 |
-
"
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
"
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
"
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
"
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
"
|
95 |
-
"
|
96 |
-
|
97 |
-
|
98 |
-
"
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
{
|
111 |
-
"example_command": "
|
112 |
-
"explanation": "
|
113 |
-
}
|
114 |
-
]
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
"
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
{
|
141 |
-
"example_command": "
|
142 |
-
"explanation": "
|
143 |
-
}
|
144 |
-
]
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
"
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
"
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
"
|
192 |
-
"
|
193 |
-
|
194 |
-
|
195 |
-
"
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
"
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
]
|
219 |
-
},
|
220 |
-
{
|
221 |
-
"command": "
|
222 |
-
"description": "
|
223 |
-
"examples": [
|
224 |
-
{
|
225 |
-
"example_command": "
|
226 |
-
"explanation": "
|
227 |
-
}
|
228 |
-
]
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
"
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
"
|
262 |
-
"
|
263 |
-
|
264 |
-
|
265 |
-
"
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
"
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
"
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
"
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
"
|
300 |
-
"
|
301 |
-
|
302 |
-
|
303 |
-
"
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
"
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
]
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
]
|
336 |
-
},
|
337 |
-
{
|
338 |
-
"command": "
|
339 |
-
"description": "
|
340 |
-
"examples": [
|
341 |
-
{
|
342 |
-
"example_command": "
|
343 |
-
"explanation": "
|
344 |
-
}
|
345 |
-
]
|
346 |
-
|
347 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"command": "enable",
|
4 |
+
"description": "Switches the user from user EXEC mode to privileged EXEC mode, allowing access to more powerful administrative commands. Privileged EXEC mode is indicated by the `#` symbol in the prompt.",
|
5 |
+
"examples": [
|
6 |
+
{
|
7 |
+
"example_command": "enable",
|
8 |
+
"explanation": "Switches from user EXEC mode to privileged EXEC mode."
|
9 |
+
}
|
10 |
+
],
|
11 |
+
"syntax": [
|
12 |
+
"enable"
|
13 |
+
]
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"command": "configure terminal",
|
17 |
+
"description": "Enters global configuration mode, which allows you to make changes to the device's configuration.",
|
18 |
+
"examples": [
|
19 |
+
{
|
20 |
+
"example_command": "configure terminal",
|
21 |
+
"explanation": "Enters global configuration mode to modify the device configuration."
|
22 |
+
}
|
23 |
+
],
|
24 |
+
"syntax": [
|
25 |
+
"configure terminal"
|
26 |
+
]
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"command": "interface gigabitethernet/number",
|
30 |
+
"description": "Puts the device into interface configuration mode for the specified Gigabit Ethernet interface, allowing you to configure settings for that interface. For example, `interface gigabitethernet1/0/1`.",
|
31 |
+
"examples": [
|
32 |
+
{
|
33 |
+
"example_command": "interface gigabitethernet1/0/1",
|
34 |
+
"explanation": "Enters interface configuration mode for the GigabitEthernet1/0/1 interface."
|
35 |
+
}
|
36 |
+
],
|
37 |
+
"syntax": [
|
38 |
+
"interface gigabitethernet1/0/1"
|
39 |
+
]
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"command": "reload",
|
43 |
+
"description": "Reboots the Cisco switch or router, reloading its running software and configuration.",
|
44 |
+
"examples": [
|
45 |
+
{
|
46 |
+
"example_command": "reload",
|
47 |
+
"explanation": "Reboots the device."
|
48 |
+
}
|
49 |
+
],
|
50 |
+
"syntax": [
|
51 |
+
"reload"
|
52 |
+
]
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"command": "hostname name",
|
56 |
+
"description": "Sets the hostname for the current Cisco device. This hostname is used to identify the device on the network.",
|
57 |
+
"examples": [
|
58 |
+
{
|
59 |
+
"example_command": "hostname Switch01",
|
60 |
+
"explanation": "Sets the hostname of the device to 'Switch01'."
|
61 |
+
}
|
62 |
+
],
|
63 |
+
"syntax": [
|
64 |
+
"hostname Switch01"
|
65 |
+
]
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"command": "copy from-location to-location",
|
69 |
+
"description": "Copies files from one location to another on the Cisco device. For example, copying configuration files or IOS images between locations such as `flash:`, `tftp:`, or `nvram:`.",
|
70 |
+
"examples": [
|
71 |
+
{
|
72 |
+
"example_command": "copy running-config startup-config",
|
73 |
+
"explanation": "Saves the current running configuration to the startup configuration."
|
74 |
+
}
|
75 |
+
],
|
76 |
+
"syntax": [
|
77 |
+
"copy running-config startup-config"
|
78 |
+
]
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"command": "copy running-config startup-config",
|
82 |
+
"description": "Saves the active configuration to the startup configuration file so that it is retained when the device is rebooted.",
|
83 |
+
"examples": [
|
84 |
+
{
|
85 |
+
"example_command": "copy running-config startup-config",
|
86 |
+
"explanation": "Saves the current active configuration to the startup configuration file."
|
87 |
+
}
|
88 |
+
],
|
89 |
+
"syntax": [
|
90 |
+
"copy running-config startup-config"
|
91 |
+
]
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"command": "copy startup-config running-config",
|
95 |
+
"description": "Merges the startup configuration (stored in NVRAM) with the current running configuration (in RAM).",
|
96 |
+
"examples": [
|
97 |
+
{
|
98 |
+
"example_command": "copy startup-config running-config",
|
99 |
+
"explanation": "Merges the startup configuration with the current running configuration."
|
100 |
+
}
|
101 |
+
],
|
102 |
+
"syntax": [
|
103 |
+
"copy startup-config running-config"
|
104 |
+
]
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"command": "write erase",
|
108 |
+
"description": "Erases the startup configuration file from NVRAM, effectively resetting the device to its factory settings.",
|
109 |
+
"examples": [
|
110 |
+
{
|
111 |
+
"example_command": "write erase",
|
112 |
+
"explanation": "Erases the startup configuration, resetting the device."
|
113 |
+
}
|
114 |
+
],
|
115 |
+
"syntax": [
|
116 |
+
"write erase"
|
117 |
+
]
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"command": "ip address ip-address mask",
|
121 |
+
"description": "Assigns an IP address and subnet mask to an interface on the Cisco device.",
|
122 |
+
"examples": [
|
123 |
+
{
|
124 |
+
"example_command": "ip address 192.168.1.1 255.255.255.0",
|
125 |
+
"explanation": "Assigns the IP address 192.168.1.1 with a subnet mask of 255.255.255.0 to the interface."
|
126 |
+
}
|
127 |
+
],
|
128 |
+
"syntax": [
|
129 |
+
"ip address 192.168.1.1 255.255.255.0"
|
130 |
+
]
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"command": "shutdown / no shutdown",
|
134 |
+
"description": "The `shutdown` command disables an interface, while `no shutdown` enables it.",
|
135 |
+
"examples": [
|
136 |
+
{
|
137 |
+
"example_command": "shutdown",
|
138 |
+
"explanation": "Disables the interface."
|
139 |
+
},
|
140 |
+
{
|
141 |
+
"example_command": "no shutdown",
|
142 |
+
"explanation": "Enables the interface."
|
143 |
+
}
|
144 |
+
],
|
145 |
+
"syntax": [
|
146 |
+
"shutdown",
|
147 |
+
"no shutdown"
|
148 |
+
]
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"command": "ip default-gateway ip_address",
|
152 |
+
"description": "Configures the default gateway on the device, allowing it to send traffic to devices outside its local subnet.",
|
153 |
+
"examples": [
|
154 |
+
{
|
155 |
+
"example_command": "ip default-gateway 192.168.1.254",
|
156 |
+
"explanation": "Sets the default gateway to 192.168.1.254."
|
157 |
+
}
|
158 |
+
],
|
159 |
+
"syntax": [
|
160 |
+
"ip default-gateway 192.168.1.254"
|
161 |
+
]
|
162 |
+
},
|
163 |
+
{
|
164 |
+
"command": "ping {hostname | system-address}",
|
165 |
+
"description": "Sends Internet Control Message Protocol (ICMP) echo requests to a specified host or IP address to test network connectivity.",
|
166 |
+
"examples": [
|
167 |
+
{
|
168 |
+
"example_command": "ping 8.8.8.8",
|
169 |
+
"explanation": "Pings the Google DNS server (8.8.8.8) to check for network connectivity."
|
170 |
+
}
|
171 |
+
],
|
172 |
+
"syntax": [
|
173 |
+
"ping 8.8.8.8"
|
174 |
+
]
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"command": "speed {10 | 100 | 1000 | auto}",
|
178 |
+
"description": "Sets the speed of a network interface. Speeds are in Mbps, or the `auto` option can be used to automatically detect the correct speed.",
|
179 |
+
"examples": [
|
180 |
+
{
|
181 |
+
"example_command": "speed 1000",
|
182 |
+
"explanation": "Sets the interface speed to 1000 Mbps (1 Gbps)."
|
183 |
+
}
|
184 |
+
],
|
185 |
+
"syntax": [
|
186 |
+
"speed 1000"
|
187 |
+
]
|
188 |
+
},
|
189 |
+
{
|
190 |
+
"command": "duplex {auto | full | half}",
|
191 |
+
"description": "Configures the duplex setting of a network interface. Duplex can be set to `full` for bidirectional communication, `half` for unidirectional, or `auto` for automatic detection.",
|
192 |
+
"examples": [
|
193 |
+
{
|
194 |
+
"example_command": "duplex full",
|
195 |
+
"explanation": "Sets the interface to full duplex mode."
|
196 |
+
}
|
197 |
+
],
|
198 |
+
"syntax": [
|
199 |
+
"duplex full"
|
200 |
+
]
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"command": "cdp run / no cdp run",
|
204 |
+
"description": "Enables or disables Cisco Discovery Protocol (CDP) globally on the device.",
|
205 |
+
"examples": [
|
206 |
+
{
|
207 |
+
"example_command": "cdp run",
|
208 |
+
"explanation": "Enables Cisco Discovery Protocol globally on the device."
|
209 |
+
},
|
210 |
+
{
|
211 |
+
"example_command": "no cdp run",
|
212 |
+
"explanation": "Disables Cisco Discovery Protocol globally on the device."
|
213 |
+
}
|
214 |
+
],
|
215 |
+
"syntax": [
|
216 |
+
"cdp run",
|
217 |
+
"no cdp run"
|
218 |
+
]
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"command": "show mac address-table",
|
222 |
+
"description": "Displays the MAC address table of the device, showing which MAC addresses are associated with which interfaces.",
|
223 |
+
"examples": [
|
224 |
+
{
|
225 |
+
"example_command": "show mac address-table",
|
226 |
+
"explanation": "Displays the MAC address table for all interfaces."
|
227 |
+
}
|
228 |
+
],
|
229 |
+
"syntax": [
|
230 |
+
"show mac address-table"
|
231 |
+
]
|
232 |
+
},
|
233 |
+
{
|
234 |
+
"command": "show ip route",
|
235 |
+
"description": "Displays the current IP routing table, listing known routes that are either statically configured or learned through dynamic routing protocols.",
|
236 |
+
"examples": [
|
237 |
+
{
|
238 |
+
"example_command": "show ip route",
|
239 |
+
"explanation": "Displays the current IP routing table."
|
240 |
+
}
|
241 |
+
],
|
242 |
+
"syntax": [
|
243 |
+
"show ip route"
|
244 |
+
]
|
245 |
+
},
|
246 |
+
{
|
247 |
+
"command": "ip route network-number network-mask {ip-address | interface}",
|
248 |
+
"description": "Creates a static route in the IP routing table. You can specify the destination network and subnet mask, along with either a next-hop IP address or the interface through which the traffic should be routed.",
|
249 |
+
"examples": [
|
250 |
+
{
|
251 |
+
"example_command": "ip route 10.1.1.0 255.255.255.0 192.168.1.1",
|
252 |
+
"explanation": "Configures a static route to the 10.1.1.0/24 network with a next-hop IP address of 192.168.1.1."
|
253 |
+
}
|
254 |
+
],
|
255 |
+
"syntax": [
|
256 |
+
"ip route 10.1.1.0 255.255.255.0 192.168.1.1"
|
257 |
+
]
|
258 |
+
},
|
259 |
+
{
|
260 |
+
"command": "switchport access vlan {vlan-id}",
|
261 |
+
"description": "Assigns a specific VLAN to the interface in access mode, allowing it to communicate within the VLAN.",
|
262 |
+
"examples": [
|
263 |
+
{
|
264 |
+
"example_command": "switchport access vlan 10",
|
265 |
+
"explanation": "Assigns VLAN 10 to the interface in access mode."
|
266 |
+
}
|
267 |
+
],
|
268 |
+
"syntax": [
|
269 |
+
"switchport access vlan 10"
|
270 |
+
]
|
271 |
+
},
|
272 |
+
{
|
273 |
+
"command": "switchport trunk encapsulation dot1q",
|
274 |
+
"description": "Sets 802.1Q encapsulation for a trunk port, allowing multiple VLANs to be carried over the trunk.",
|
275 |
+
"examples": [
|
276 |
+
{
|
277 |
+
"example_command": "switchport trunk encapsulation dot1q",
|
278 |
+
"explanation": "Sets 802.1Q encapsulation on the trunk port."
|
279 |
+
}
|
280 |
+
],
|
281 |
+
"syntax": [
|
282 |
+
"switchport trunk encapsulation dot1q"
|
283 |
+
]
|
284 |
+
},
|
285 |
+
{
|
286 |
+
"command": "enable password pass-value",
|
287 |
+
"description": "Sets the password required to enter privileged EXEC mode (the `enable` command).",
|
288 |
+
"examples": [
|
289 |
+
{
|
290 |
+
"example_command": "enable password cisco123",
|
291 |
+
"explanation": "Sets 'cisco123' as the password required to enter privileged EXEC mode."
|
292 |
+
}
|
293 |
+
],
|
294 |
+
"syntax": [
|
295 |
+
"enable password cisco123"
|
296 |
+
]
|
297 |
+
},
|
298 |
+
{
|
299 |
+
"command": "enable secret pass-value",
|
300 |
+
"description": "Sets a hashed, encrypted password for privileged EXEC mode access.",
|
301 |
+
"examples": [
|
302 |
+
{
|
303 |
+
"example_command": "enable secret mysecretpass",
|
304 |
+
"explanation": "Sets a hashed, encrypted password 'mysecretpass' for privileged EXEC mode."
|
305 |
+
}
|
306 |
+
],
|
307 |
+
"syntax": [
|
308 |
+
"enable secret mysecretpass"
|
309 |
+
]
|
310 |
+
},
|
311 |
+
{
|
312 |
+
"command": "service password-encryption",
|
313 |
+
"description": "Enables encryption for passwords stored in the configuration file.",
|
314 |
+
"examples": [
|
315 |
+
{
|
316 |
+
"example_command": "service password-encryption",
|
317 |
+
"explanation": "Encrypts all passwords in the device configuration file."
|
318 |
+
}
|
319 |
+
],
|
320 |
+
"syntax": [
|
321 |
+
"service password-encryption"
|
322 |
+
]
|
323 |
+
},
|
324 |
+
{
|
325 |
+
"command": "access-list access-list-number {deny | permit} source [source-wildcard]",
|
326 |
+
"description": "Defines an IP access list (ACL) with rules to either permit or deny traffic based on source addresses.",
|
327 |
+
"examples": [
|
328 |
+
{
|
329 |
+
"example_command": "access-list 10 permit 192.168.1.0 0.0.0.255",
|
330 |
+
"explanation": "Permits traffic from the 192.168.1.0/24 network."
|
331 |
+
}
|
332 |
+
],
|
333 |
+
"syntax": [
|
334 |
+
"access-list 10 permit 192.168.1.0 0.0.0.255"
|
335 |
+
]
|
336 |
+
},
|
337 |
+
{
|
338 |
+
"command": "ntp peer <ip-address>",
|
339 |
+
"description": "Configures the device to synchronize its clock with a specified NTP (Network Time Protocol) peer.",
|
340 |
+
"examples": [
|
341 |
+
{
|
342 |
+
"example_command": "ntp peer 192.168.1.100",
|
343 |
+
"explanation": "Configures the device to synchronize with NTP peer at 192.168.1.100."
|
344 |
+
}
|
345 |
+
],
|
346 |
+
"syntax": [
|
347 |
+
"ntp peer 192.168.1.100"
|
348 |
+
]
|
349 |
+
},
|
350 |
+
{
|
351 |
+
"command": "lldp run",
|
352 |
+
"description": "Enables LLDP (Link Layer Discovery Protocol) globally on the device. LLDP is a vendor-neutral protocol that allows devices to advertise their identity and capabilities to neighboring devices.",
|
353 |
+
"examples": [
|
354 |
+
{
|
355 |
+
"example_command": "lldp run",
|
356 |
+
"explanation": "Enables LLDP globally on the device."
|
357 |
+
}
|
358 |
+
],
|
359 |
+
"syntax": [
|
360 |
+
"lldp run"
|
361 |
+
]
|
362 |
+
},
|
363 |
+
{
|
364 |
+
"command": "show lldp neighbors",
|
365 |
+
"description": "Displays information about neighboring devices discovered using LLDP. The information can be displayed for all interfaces or for a specific interface.",
|
366 |
+
"syntax": [
|
367 |
+
"show lldp neighbors [ interface-id ]"
|
368 |
+
],
|
369 |
+
"examples": [
|
370 |
+
{
|
371 |
+
"example_command": "show lldp neighbors",
|
372 |
+
"explanation": "Displays a summary of neighboring devices discovered via LLDP on all interfaces."
|
373 |
+
},
|
374 |
+
{
|
375 |
+
"example_command": "show lldp neighbors gigabitethernet1/0/1",
|
376 |
+
"explanation": "Displays LLDP information for the neighboring device connected to interface GigabitEthernet1/0/1."
|
377 |
+
}
|
378 |
+
]
|
379 |
+
},
|
380 |
+
{
|
381 |
+
"command": "show lldp traffic",
|
382 |
+
"description": "Displays LLDP traffic statistics, including the number of transmitted and received LLDP packets, as well as any packet errors.",
|
383 |
+
"examples": [
|
384 |
+
{
|
385 |
+
"example_command": "show lldp traffic",
|
386 |
+
"explanation": "Displays LLDP traffic statistics for the device."
|
387 |
+
}
|
388 |
+
],
|
389 |
+
"syntax": [
|
390 |
+
"show lldp traffic"
|
391 |
+
]
|
392 |
+
},
|
393 |
+
{
|
394 |
+
"command": "no lldp run",
|
395 |
+
"description": "Disables LLDP globally on the device, preventing it from advertising or listening for neighboring devices.",
|
396 |
+
"examples": [
|
397 |
+
{
|
398 |
+
"example_command": "no lldp run",
|
399 |
+
"explanation": "Disables LLDP globally on the device."
|
400 |
+
}
|
401 |
+
],
|
402 |
+
"syntax": [
|
403 |
+
"no lldp run"
|
404 |
+
]
|
405 |
+
},
|
406 |
+
{
|
407 |
+
"command": "show cdp neighbors",
|
408 |
+
"description": "Displays information about neighboring devices discovered using CDP (Cisco Discovery Protocol). It shows the device ID, local interface, holdtime, capability, platform, and port ID of the connected neighbors.",
|
409 |
+
"examples": [
|
410 |
+
{
|
411 |
+
"example_command": "show cdp neighbors",
|
412 |
+
"explanation": "Displays a summary of neighboring devices discovered via CDP."
|
413 |
+
}
|
414 |
+
],
|
415 |
+
"syntax": [
|
416 |
+
"show cdp neighbors"
|
417 |
+
]
|
418 |
+
},
|
419 |
+
{
|
420 |
+
"command": "show interfaces status",
|
421 |
+
"description": "Displays a summary of interface status, including speed, duplex, VLAN assignment, and operational state. It's useful for troubleshooting interface issues and verifying interface configurations.",
|
422 |
+
"examples": [
|
423 |
+
{
|
424 |
+
"example_command": "show interfaces status",
|
425 |
+
"explanation": "Displays the status of all interfaces on the device."
|
426 |
+
}
|
427 |
+
],
|
428 |
+
"syntax": [
|
429 |
+
"show interfaces status"
|
430 |
+
]
|
431 |
+
},
|
432 |
+
{
|
433 |
+
"command": "show interfaces switchport",
|
434 |
+
"description": "Displays detailed information about the switchport settings of an interface, including VLAN and trunking information.",
|
435 |
+
"examples": [
|
436 |
+
{
|
437 |
+
"example_command": "show interfaces switchport gigabitethernet1/0/1",
|
438 |
+
"explanation": "Displays detailed switchport information for the interface GigabitEthernet1/0/1."
|
439 |
+
}
|
440 |
+
],
|
441 |
+
"syntax": [
|
442 |
+
"show interfaces switchport gigabitethernet1/0/1"
|
443 |
+
]
|
444 |
+
}
|
445 |
+
]
|