Verify SNMP configuration
For this challenge we will verify the existing configuration on the Cisco
Modules
-
Modules do the actual work in Ansible, they are what gets executed in each playbook task.
-
Typically written in Python (but not limited to it)
-
Modules can be idempotent
-
Modules take user input in the form of parameters
-
Network modules
-
Ansible modules for network automation typically references the vendor OS followed by the module name.
-
namespace.collection.
facts -
namespace.collection.
command -
namespace.collection.
config -
namespace.collection.
resource
-
-
Examples of network vendors:
-
Arista EOS =
arista.eos -
Cisco IOS/IOS-XE =
cisco.ios -
Cisco NX-OS =
cisco.nxos -
Cisco IOS-XR =
cisco.iosxr -
F5 BIG-IP =
f5networks.f5_bigip_bigip -
Juniper Junos =
junipsnetworks.junos -
VyOS =
vyos.vyos
-
-
Network Automation Module
-
Network Automation Module
Lets get started
That is the end of of your lab briefing!
Step 1 - Verify SNMP configuration
Login to an Cisco IOS router and verify the current SNMP configuration.
-
From the terminal, you can
ssh ciscoand typeenablessh cisco -
Use the command
show snmpto examine the SNMP configuration (SNMP should say agent not available):show snmpIt will show output similar to the following:%SNMP agent not enabled
-
Use the
show run | s snmpto examine the SNMP running-configuration on the Cisco device. When running this command expect no output as there is no running SNMP configuration.show run | s snmpIt will show output similar to the following:cisco#
-
Exit the router CLI to complete the challenge.
exit