Snmp Tool For Mac

I am trying to enable SNMP version 3 with a single ready-only user on Mac OS X 10.8.5 so that I can remotely monitor the health of the computer. When I attempt a local snmpwalk, this message is.

Contents

Snmp Tools For Mac

SNMP MIB Browser for Mac lies within Productivity Tools, more precisely General. The actual developer of this free Mac application is ZOHO Corp. This Mac download was checked by our antivirus and was rated as virus free. The program is also known as 'ManageEngine MibBrowser'. Download MIB Browser - SNMP Monitoring for macOS 10.12 or later and enjoy it on your Mac. ‎MIBBrowser is a tool which provides SNMP monitoring information via GUI, so you can browse SNMP information with it.

Snmp Tool For Mac High Sierra

Introduction

This document describes how to use Simple Network Management Protocol (SNMP) to obtain the port number on a Cisco Catalyst switch from which you know the MAC address.

Prerequisites

Requirements

Readers of this document should have knowledge of these topics:

  • How to get VLANs from a Catalyst switch with use of SNMP

  • How to use community string indexing with SNMP

  • General use of the SNMP get command and walk command

Components Used

This document applies to Catalyst switches that run regular Catalyst OS (CatOS) or Cisco IOS® Software. The software supports the BRIDGE-MIB and the IF-MIB.

The information in this document is based on these software and hardware versions:

  • Catalyst 3524XL that runs Cisco IOS Software Release 12.0(5)WC5a

  • Net-SNMP version 5.0.6

    Note: To obtain this software, refer to Net-SNMP .

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Conventions

For more information on document conventions, refer to the Cisco Technical Tips Conventions.

Snmp Tool For Mac

Background

For more information on how to query the content-addressable memory (CAM) table, VLANs, and all related MIBs, such as the CISCO-VTP-MIB and the BRIDGE-MIB, refer to the Background section of the document How To Get Dynamic CAM Entries (CAM Table) for Catalyst Switches Using SNMP.

Details of the MIB Variables, Which Includes Object Identifiers (OIDs)

Get the Port Number on Which a MAC Address Has Been Learned

Step-by-Step Instructions

Complete the steps in this section in order to use SNMP to get the port number on which a MAC address has been learned. Consider that the port number is in VLAN1.

Note: In the commands in this section:

  • public is the read community string.

  • @1 is the VLAN 1 part of the read community string.

  • crumpy is the device host name.

    Note: You can also use the IP address for this host name.

Note: The Conclusion section uses the values that appear in italics in the command output.

  1. Retrieve the VLANs. Use the snmpwalk command on the vtpVlanState object (.1.3.6.1.4.1.9.9.46.1.3.1.1.2 ):

    Note: This command uses community string indexing. The command also uses vtpVlanState, which has OID .1.3.6.1.4.1.9.9.46.1.3.1.1.2. If you have loaded the MIBs to your network management system (NMS), you can use the object name instead of the OID. Issue this command instead:

    Note: You can also use the object names in steps 2 through 6.

  2. Issue this command in order to obtain the MAC address table by considering that the port belongs to VLAN1:

    Note: Provide the appropriate VLAN number after the community string. In this example, it is VLAN1.

    The command lists all MAC addresses that have been learned on all ports that belong to VLAN 1.

  3. Issue this command to determine the bridge port number for VLAN 1:

    Note: VLAN 1 is dot1dTpFdbPort , or .1.3.6.1.2.1.17.4.3.1.2.

  4. Issue this command to map the bridge port to the ifIndex, OID .1.3.6.1.2.1.2.2.1.1:

    This command queries the dot1dBasePortIfIndex, which has OID .1.3.6.1.2.1.17.1.4.1.2.

  5. Use the walk command with ifName in order to correlate the ifIndex value with a correct port name.

    Issue this command:

    Note: The ifName has OID .1.3.6.1.2.1.31.1.1.1.1.

  6. Link a MAC address to the port on which the address was learned.

    • From Step 1, the MAC address is:

    • From Step 2, the bridge port tells that the MAC address belongs to bridge port number 13:

    • From Step 3, the bridge port number 13 has ifIndex number 2:

    • From Step 4, the ifIndex 2 corresponds to port Fast Ethernet 0/1:

Conclusion

The MAC address 00 00 0C 07 AC 08 is learned on port Fa0/1.

Compare this conclusion with output from:

  • The show cam dynamic command for CatOS switches

  • The show mac command for Cisco IOS Software switches

Here is the sample output:

Related Information

Learning has never been so easy!

Works for both server and client Mac OS. See Reference articles listed below.

Published: Mar 20, 2009 · Last Updated: Jul 21, 2009

Mac Os Snmp Client

References

  • Apple Support Article TA20884
  • Mac OS X Hints: Start SNMP on non-XServe OS X Server

1 Comment

Snmp Tool For Mac Os

  • Anaheim
    Manish1192 Jan 20, 2015 at 07:04am

    Go through below step.

    Installing SNMP

    To use SNMP for monitoring or data collection, an SNMP agent (snmpd) must be running on the monitored Mac OS X Server host (computer). Mac OS X Server 10.1.5 or later includes a version of SNMP (UCD-SNMP v. 4.2.3 or later).

    If you do not have the file /usr/sbin/snmpd, then SNMP is not installed.

    The following operating systems require that SNMP be built and installed:

    Mac OS X Server 10.1.4 or earlier

    If you have access to a Mac OS X Server 10.1.5 or later Admin CD , the SNMP package on the CD may be used to install UCD-SNMP 4.2.3 on these systems.

    Note: Mac OS X Server 10.1.5 is available only with Xserve computers shipped before the release of Mac OS X Server 10.2.

    If you do not have access to the CD, you may download current SNMP source from the NET-SNMP Project Home Page (http://www.net-snmp.org/).

    Note: Apple only provides technical support for the SNMP tools on the Admin CD when they are used with Mac OS X Server 10.1.5 or later.

    Warnings

    1. Once SNMP is active, anyone with a route to the SNMP host will be able to collect SNMP data from it. To learn more, consult the various SNMP information sources listed below.

    2. The default configuration of snmpd uses privileged port 161. For this reason and others, it must be executed by root or using setuid. You should only use setuid as root if you understand the ramifications. If you do not, seek assistance or additional information. There are flags available for snmpd that will change the uid and gid of the process after it starts. See the snmpd man page for more information.

    Starting snmpd

    Follow these steps for Mac OS X Server 10.1.5 or later:

    1. Open the file: /etc/hostconfig

    2. Locate the line:

    APPLETALK_HOSTNAME

    3. Immediately above, add this new line:

    SNMPSERVER:=-YES-

    4. Save the file.

    Note: For further instruction on editing configuration files, including important precautionary statements, see technical document 106619, 'Mac OS X Server: How to Edit Configuration Files'.

    This change to hostconfig causes snmpd to be executed during system startup, with no options, as dictated by the file /System/Library/StartupItems/SNMP/SNMP.

    As an alternative, the snmp agent (/usr/sbin/snmpd) can be executed at the command line at any time.

    Configuring snmpd

    The configuration (conf) file for snmpd is typically at /usr/share/snmp/ and named 'snmpd.conf' or 'snmpd.local.conf'. If you have an environment variable SNMPCONF, snmpd will read any files named 'snmpd.conf' and 'snmpd.local.conf' in these directories. The snmpd process can be started with a '-c' flag to indicate other conf files. See the snmpd man page for more information on which conf files can be used.

    Configuration files can be created and installed more elegantly using the included script /usr/bin/snmpconf. As root, use this script with the '-i' flag to install the file at /usr/share/snmp/. Otherwise the default location for the file to be written is the user's home directory (~/). Note that only root has write permission for /usr/share/snmp/.

    Since snmpd reads its conf files at startup, changes to the conf files require that the process be stopped and restarted. You may stop snmpd with ProcessViewer or at the command line (kill -HUP ).

    Example of SNMP Configuration

    I. Customize data

    To customize the data provided by snmpd, you may add an snmpd.conf file using /usr/bin/snmpconf. As root or using sudo, execute this command:

    /usr/bin/snmpconf -i

    You will then see a series of text menus. Make these choices in this order:

    1. Select File: 3 (snmpd.conf)
    2. Select section: 5 (System Information Setup)
    3. Select section: 1 (The [typically physical] location of the system.)
    4. The location of the system: type text string here -- such as 'server_room'
    5. Select section: f (finish)
    6. Select section: f (finish)
    7. Select File: q (quit)

    Notice you have created an snmpd.conf file with creation date of today: ls -l /usr/share/snmpd.conf

    II. Start snmpd as root

    To start snmpd, execute this as root:

    /usr/sbin/snmpd

    If snmpd is already running, HUP the process instead:

    set x=`ps cax |grep snmpd |awk '{print $1}'` ; kill -HUP $x ;

    Note that the snmpd process is now running:

    ps ax |grep snmpd