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

Upload cisco_cli_commands.json

Browse files
Files changed (1) hide show
  1. cisco_cli_commands.json +347 -0
cisco_cli_commands.json ADDED
@@ -0,0 +1,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
+ },
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
+ ]