My-Lab
Configuring Snmp on Devices

We will up SNMP v2 on your Cisco Catalyst 3650, FortiGate 60D, and Juniper EX4200 involves enabling SNMP and configuring a community string for management access.


1. Cisco Catalyst 3650

Configuration:

  1. Access the device CLI:

    enable
    configure terminal
  2. Enable SNMP and set the community string:

    snmp-server community public RO
    snmp-server community private RW
    • Replace public with your read-only (RO) community string and private with your read-write (RW) community string.
  3. (Optional) Specify SNMP server (NMS) location and contact:

    snmp-server location Lab_Network
    snmp-server contact Admin_Name
  4. Enable SNMP traps (optional):

    snmp-server enable traps
    snmp-server host 192.168.1.100 traps version 2c public
    • Replace 192.168.1.100 with your SNMP server IP and public with the correct community string.
  5. Exit and save the configuration:

    end
    write memory

2. FortiGate 60D

Configuration:

  1. Enable SNMP via GUI:

    • Go to System > SNMP.
    • Click Create New under the SNMP Agent section.
  2. Configure SNMP settings:

    • Community: Set the SNMP community string (e.g., public).
    • Description: Add a description for the SNMP setup (e.g., Lab Monitoring).
    • Host IP: Add the IP address of the SNMP manager (e.g., 192.168.1.100).
    • Access Permissions: Specify whether it is read-only or read-write.
    • Version: Choose SNMP v2c.
  3. Enable SNMP on the interface:

    • Go to Network > Interfaces.
    • Edit the interface where SNMP access is required (e.g., LAN or WAN).
    • Enable SNMP under Administrative Access.
  4. Save the configuration.

CLI Alternative:

config system snmp community
    edit "public"
        set status enable
        set events cpu-high mem-low log-full
        config hosts
            edit 1
                set ip 192.168.1.100 255.255.255.255
                set interface "internal"
            next
        end
    next
end

3. Juniper EX4200

Configuration:

  1. Access the device CLI:

    cli
    configure
  2. Set up SNMP community:

    set snmp community public authorization read-only
    set snmp community private authorization read-write
    • Replace public and private with your preferred community strings.
  3. Specify SNMP contact and location:

    set snmp contact "Admin_Name"
    set snmp location "Lab_Network"
  4. Enable SNMP traps (optional):

    set snmp trap-group my-traps version v2
    set snmp trap-group my-traps targets 192.168.1.100
    • Replace 192.168.1.100 with the SNMP server's IP address.
  5. Commit the configuration:

    commit
    exit

Verification

  • Cisco Catalyst 3650:

    show snmp community
    show snmp host
  • FortiGate 60D:
    Verify using the GUI or CLI:

    diagnose snmp stats
  • Juniper EX4200:

    show snmp community
    show snmp statistics

This completes the SNMP v2 configuration on your devices. Test with an SNMP monitoring tool like Nagios, Zabbix, or SolarWinds to confirm functionality.