File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,33 @@ Then type the following in `EXEC` mode:
18
18
guestshell enable
19
19
```
20
20
21
+ Guestshell may not include the needed ` requests ` module. Enter guestshell with the following command:
22
+
23
+ ```
24
+ guestshell
25
+ ```
26
+
27
+ From the guestshell prompt, run the following command:
28
+
29
+ ```
30
+ sudo pip install requests
31
+ ```
32
+
33
+ If this returns an error about not being able to establish a connection to download the module, you
34
+ may need to update your DNS settings within guestshell. If you know your DNS server, you can use
35
+ that address. If you don't, just use 8.8.8.8. Run the command:
36
+
37
+ ```
38
+ sudo echo 'nameserver DNSSERVER' > /etc/resolv.conf
39
+ ```
40
+
41
+ Where DNSSERVER is the IP address of your DNS server (or 8.8.8.8). After doing that, repeat
42
+ the ` pip ` command, and it should install successfully. If ` pip ` tells you ` requests ` is already
43
+ installed, then your guestshell environment is good. You can type ` exit ` to return to IOS-XE.
44
+
45
+ ** NOTE** The guestshell environment will persist across reboots. It will not revert to the default
46
+ state unless you do a ` guestshell destory ` followed by another ` guestshell enable ` .
47
+
21
48
Next, define the following EEM environment. Be sure ** NOT** to put quotes around the variable
22
49
values:
23
50
You can’t perform that action at this time.
0 commit comments