FraRy commited on
Commit
6743e20
·
verified ·
1 Parent(s): edfab99

Populated syntax field

Browse files
Files changed (1) hide show
  1. 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
- "command": "configure terminal",
14
- "description": "Enters global configuration mode, which allows you to make changes to the device's configuration.",
15
- "examples": [
16
- {
17
- "example_command": "configure terminal",
18
- "explanation": "Enters global configuration mode to modify the device configuration."
19
- }
20
- ]
21
- },
22
- {
23
- "command": "interface gigabitethernet/number",
24
- "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`.",
25
- "examples": [
26
- {
27
- "example_command": "interface gigabitethernet1/0/1",
28
- "explanation": "Enters interface configuration mode for the GigabitEthernet1/0/1 interface."
29
- }
30
- ]
31
- },
32
- {
33
- "command": "reload",
34
- "description": "Reboots the Cisco switch or router, reloading its running software and configuration.",
35
- "examples": [
36
- {
37
- "example_command": "reload",
38
- "explanation": "Reboots the device."
39
- }
40
- ]
41
- },
42
- {
43
- "command": "hostname name",
44
- "description": "Sets the hostname for the current Cisco device. This hostname is used to identify the device on the network.",
45
- "examples": [
46
- {
47
- "example_command": "hostname Switch01",
48
- "explanation": "Sets the hostname of the device to 'Switch01'."
49
- }
50
- ]
51
- },
52
- {
53
- "command": "copy from-location to-location",
54
- "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:`.",
55
- "examples": [
56
- {
57
- "example_command": "copy running-config startup-config",
58
- "explanation": "Saves the current running configuration to the startup configuration."
59
- }
60
- ]
61
- },
62
- {
63
- "command": "copy running-config startup-config",
64
- "description": "Saves the active configuration to the startup configuration file so that it is retained when the device is rebooted.",
65
- "examples": [
66
- {
67
- "example_command": "copy running-config startup-config",
68
- "explanation": "Saves the current active configuration to the startup configuration file."
69
- }
70
- ]
71
- },
72
- {
73
- "command": "copy startup-config running-config",
74
- "description": "Merges the startup configuration (stored in NVRAM) with the current running configuration (in RAM).",
75
- "examples": [
76
- {
77
- "example_command": "copy startup-config running-config",
78
- "explanation": "Merges the startup configuration with the current running configuration."
79
- }
80
- ]
81
- },
82
- {
83
- "command": "write erase",
84
- "description": "Erases the startup configuration file from NVRAM, effectively resetting the device to its factory settings.",
85
- "examples": [
86
- {
87
- "example_command": "write erase",
88
- "explanation": "Erases the startup configuration, resetting the device."
89
- }
90
- ]
91
- },
92
- {
93
- "command": "ip address ip-address mask",
94
- "description": "Assigns an IP address and subnet mask to an interface on the Cisco device.",
95
- "examples": [
96
- {
97
- "example_command": "ip address 192.168.1.1 255.255.255.0",
98
- "explanation": "Assigns the IP address 192.168.1.1 with a subnet mask of 255.255.255.0 to the interface."
99
- }
100
- ]
101
- },
102
- {
103
- "command": "shutdown / no shutdown",
104
- "description": "The `shutdown` command disables an interface, while `no shutdown` enables it.",
105
- "examples": [
106
- {
107
- "example_command": "shutdown",
108
- "explanation": "Disables the interface."
109
- },
110
- {
111
- "example_command": "no shutdown",
112
- "explanation": "Enables the interface."
113
- }
114
- ]
115
- },
116
- {
117
- "command": "ip default-gateway ip_address",
118
- "description": "Configures the default gateway on the device, allowing it to send traffic to devices outside its local subnet.",
119
- "examples": [
120
- {
121
- "example_command": "ip default-gateway 192.168.1.254",
122
- "explanation": "Sets the default gateway to 192.168.1.254."
123
- }
124
- ]
125
- },
126
- {
127
- "command": "ping {hostname | system-address}",
128
- "description": "Sends Internet Control Message Protocol (ICMP) echo requests to a specified host or IP address to test network connectivity.",
129
- "examples": [
130
- {
131
- "example_command": "ping 8.8.8.8",
132
- "explanation": "Pings the Google DNS server (8.8.8.8) to check for network connectivity."
133
- }
134
- ]
135
- },
136
- {
137
- "command": "speed {10 | 100 | 1000 | auto}",
138
- "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.",
139
- "examples": [
140
- {
141
- "example_command": "speed 1000",
142
- "explanation": "Sets the interface speed to 1000 Mbps (1 Gbps)."
143
- }
144
- ]
145
- },
146
- {
147
- "command": "duplex {auto | full | half}",
148
- "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.",
149
- "examples": [
150
- {
151
- "example_command": "duplex full",
152
- "explanation": "Sets the interface to full duplex mode."
153
- }
154
- ]
155
- },
156
- {
157
- "command": "cdp run / no cdp run",
158
- "description": "Enables or disables Cisco Discovery Protocol (CDP) globally on the device.",
159
- "examples": [
160
- {
161
- "example_command": "cdp run",
162
- "explanation": "Enables Cisco Discovery Protocol globally on the device."
163
- },
164
- {
165
- "example_command": "no cdp run",
166
- "explanation": "Disables Cisco Discovery Protocol globally on the device."
167
- }
168
- ]
169
- },
170
- {
171
- "command": "show mac address-table",
172
- "description": "Displays the MAC address table of the device, showing which MAC addresses are associated with which interfaces.",
173
- "examples": [
174
- {
175
- "example_command": "show mac address-table",
176
- "explanation": "Displays the MAC address table for all interfaces."
177
- }
178
- ]
179
- },
180
- {
181
- "command": "show ip route",
182
- "description": "Displays the current IP routing table, listing known routes that are either statically configured or learned through dynamic routing protocols.",
183
- "examples": [
184
- {
185
- "example_command": "show ip route",
186
- "explanation": "Displays the current IP routing table."
187
- }
188
- ]
189
- },
190
- {
191
- "command": "ip route network-number network-mask {ip-address | interface}",
192
- "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.",
193
- "examples": [
194
- {
195
- "example_command": "ip route 10.1.1.0 255.255.255.0 192.168.1.1",
196
- "explanation": "Configures a static route to the 10.1.1.0/24 network with a next-hop IP address of 192.168.1.1."
197
- }
198
- ]
199
- },
200
- {
201
- "command": "switchport access vlan {vlan-id}",
202
- "description": "Assigns a specific VLAN to the interface in access mode, allowing it to communicate within the VLAN.",
203
- "examples": [
204
- {
205
- "example_command": "switchport access vlan 10",
206
- "explanation": "Assigns VLAN 10 to the interface in access mode."
207
- }
208
- ]
209
- },
210
- {
211
- "command": "switchport trunk encapsulation dot1q",
212
- "description": "Sets 802.1Q encapsulation for a trunk port, allowing multiple VLANs to be carried over the trunk.",
213
- "examples": [
214
- {
215
- "example_command": "switchport trunk encapsulation dot1q",
216
- "explanation": "Sets 802.1Q encapsulation on the trunk port."
217
- }
218
- ]
219
- },
220
- {
221
- "command": "enable password pass-value",
222
- "description": "Sets the password required to enter privileged EXEC mode (the `enable` command).",
223
- "examples": [
224
- {
225
- "example_command": "enable password cisco123",
226
- "explanation": "Sets 'cisco123' as the password required to enter privileged EXEC mode."
227
- }
228
- ]
229
- },
230
- {
231
- "command": "enable secret pass-value",
232
- "description": "Sets a hashed, encrypted password for privileged EXEC mode access.",
233
- "examples": [
234
- {
235
- "example_command": "enable secret mysecretpass",
236
- "explanation": "Sets a hashed, encrypted password 'mysecretpass' for privileged EXEC mode."
237
- }
238
- ]
239
- },
240
- {
241
- "command": "service password-encryption",
242
- "description": "Enables encryption for passwords stored in the configuration file.",
243
- "examples": [
244
- {
245
- "example_command": "service password-encryption",
246
- "explanation": "Encrypts all passwords in the device configuration file."
247
- }
248
- ]
249
- },
250
- {
251
- "command": "access-list access-list-number {deny | permit} source [source-wildcard]",
252
- "description": "Defines an IP access list (ACL) with rules to either permit or deny traffic based on source addresses.",
253
- "examples": [
254
- {
255
- "example_command": "access-list 10 permit 192.168.1.0 0.0.0.255",
256
- "explanation": "Permits traffic from the 192.168.1.0/24 network."
257
- }
258
- ]
259
- },
260
- {
261
- "command": "ntp peer <ip-address>",
262
- "description": "Configures the device to synchronize its clock with a specified NTP (Network Time Protocol) peer.",
263
- "examples": [
264
- {
265
- "example_command": "ntp peer 192.168.1.100",
266
- "explanation": "Configures the device to synchronize with NTP peer at 192.168.1.100."
267
- }
268
- ]
269
- },
270
- {
271
- "command": "lldp run",
272
- "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.",
273
- "examples": [
274
- {
275
- "example_command": "lldp run",
276
- "explanation": "Enables LLDP globally on the device."
277
- }
278
- ]
279
- },
280
- {
281
- "command": "show lldp neighbors",
282
- "description": "Displays information about neighboring devices discovered using LLDP. The information can be displayed for all interfaces or for a specific interface.",
283
- "syntax": [
284
- "show lldp neighbors [ interface-id ]"
285
- ],
286
- "examples": [
287
- {
288
- "example_command": "show lldp neighbors",
289
- "explanation": "Displays a summary of neighboring devices discovered via LLDP on all interfaces."
290
- },
291
- {
292
- "example_command": "show lldp neighbors gigabitethernet1/0/1",
293
- "explanation": "Displays LLDP information for the neighboring device connected to interface GigabitEthernet1/0/1."
294
- }
295
- ]
296
- },
297
- {
298
- "command": "show lldp traffic",
299
- "description": "Displays LLDP traffic statistics, including the number of transmitted and received LLDP packets, as well as any packet errors.",
300
- "examples": [
301
- {
302
- "example_command": "show lldp traffic",
303
- "explanation": "Displays LLDP traffic statistics for the device."
304
- }
305
- ]
306
- },
307
- {
308
- "command": "no lldp run",
309
- "description": "Disables LLDP globally on the device, preventing it from advertising or listening for neighboring devices.",
310
- "examples": [
311
- {
312
- "example_command": "no lldp run",
313
- "explanation": "Disables LLDP globally on the device."
314
- }
315
- ]
316
- },
317
- {
318
- "command": "show cdp neighbors",
319
- "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.",
320
- "examples": [
321
- {
322
- "example_command": "show cdp neighbors",
323
- "explanation": "Displays a summary of neighboring devices discovered via CDP."
324
- }
325
- ]
326
- },
327
- {
328
- "command": "show interfaces status",
329
- "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.",
330
- "examples": [
331
- {
332
- "example_command": "show interfaces status",
333
- "explanation": "Displays the status of all interfaces on the device."
334
- }
335
- ]
336
- },
337
- {
338
- "command": "show interfaces switchport",
339
- "description": "Displays detailed information about the switchport settings of an interface, including VLAN and trunking information.",
340
- "examples": [
341
- {
342
- "example_command": "show interfaces switchport gigabitethernet1/0/1",
343
- "explanation": "Displays detailed switchport information for the interface GigabitEthernet1/0/1."
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
+ ]