Differences between revisions 1 and 12 (spanning 11 versions)
Revision 1 as of 2009-12-22 07:50:05
Size: 188
Editor: PieterSmit
Comment:
Revision 12 as of 2013-07-22 10:01:57
Size: 1781
Editor: PieterSmit
Comment: change sections to code for copy and paste.
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
   * ftp://ftp.cisco.com/pub/mibs/v2/CISCO-DOT11-ASSOCIATION-MIB.my
   * ftp://ftp.cisco.com/pub/mibs/v2/IEEE802dot11-MIB.my
   * ftp://ftp.cisco.com/pub/mibs/v2/CISCO-DOT11-IF-MIB.my

 * Cisco
   * Find snmp if index
     # show snmp mib ifmib ifindex
   * OSPF
     * $ snmpwalk -v2c -m all -c public 10.0.0.1 ospf | less
       * OSPF-MIB::ospfNbrIpAddr.xxxx
       * OSPF-MIB::ospfNbrRtrId.10.19.13.249.0
       * OSPF-MIB::ospfNbrState.10.19.13.249.0
       * OSPF-MIB::ospfNbmaNbrStatus.10.19.13.249.0
     * Check if neighbour ospf is up
       * OSPF-MIB::ospfNbrState.10.10.1.10.0 = INTEGER: full(8)
 
 * Linux - snmpwalk examples
      {{{
      export ip=10.x.y.z
      export MIBS=ALL
      snmpwalk -v2c -c public $ip system
      or
      snmpwalk -v 2c -c XIV -m RFC1213-MIB $ip system
      }}}
     * Linux Notes 201307
          {{{
          sudo apt-get install snmp-mibs-downloader
          sudo download-mibs
          }}}
       * Mibs loaded from "$HOME/.snmp/mibs" and "/usr/local/share/snmp/mibs"
         * check with $ net-snmp-config --default-mibdirs

 * MIB links
   * IBM XIV MIB : http://www-01.ibm.com/support/docview.wss?uid=ssg1S4000913
     {{{
         #From: http://aussiestorageblog.wordpress.com/2011/03/17/xiv-and-snmp-lets-walk-the-walk/
         export ip=10.x.y.z
         snmpwalk -v 2c -c XIV -m XIV-MIB $ip xiv
         snmpwalk -v 2c -c XIV -m XIV-MIB $ip xivFailedDisks
         snmpwalk -v 2c -c XIV -m XIV-MIB $ip xivFreeSpaceSoft
     }}}

Line 10: Line 53:
----
CategoryCisco CategoryNetworkManagement

SNMP Simple Network Mangement

  • Wireless devices
  • Cisco
    • Find snmp if index
      • # show snmp mib ifmib ifindex
    • OSPF
      • $ snmpwalk -v2c -m all -c public 10.0.0.1 ospf | less
        • OSPF-MIB::ospfNbrIpAddr.xxxx
        • OSPF-MIB::ospfNbrRtrId.10.19.13.249.0
        • OSPF-MIB::ospfNbrState.10.19.13.249.0
        • OSPF-MIB::ospfNbmaNbrStatus.10.19.13.249.0
      • Check if neighbour ospf is up
        • OSPF-MIB::ospfNbrState.10.10.1.10.0 = INTEGER: full(8)
  • Linux - snmpwalk examples
    •       export ip=10.x.y.z
            export MIBS=ALL
            snmpwalk -v2c -c public $ip system
            or
            snmpwalk -v 2c -c XIV -m RFC1213-MIB $ip system
    • Linux Notes 201307
      •           sudo apt-get install snmp-mibs-downloader
                  sudo download-mibs
      • Mibs loaded from "$HOME/.snmp/mibs" and "/usr/local/share/snmp/mibs"
        • check with $ net-snmp-config --default-mibdirs
  • MIB links
    • IBM XIV MIB : http://www-01.ibm.com/support/docview.wss?uid=ssg1S4000913

      •          #From: http://aussiestorageblog.wordpress.com/2011/03/17/xiv-and-snmp-lets-walk-the-walk/
                 export ip=10.x.y.z 
                 snmpwalk -v 2c -c XIV -m XIV-MIB $ip xiv
                 snmpwalk -v 2c -c XIV -m XIV-MIB $ip xivFailedDisks
                 snmpwalk -v 2c -c XIV -m XIV-MIB $ip xivFreeSpaceSoft

...


CategoryCisco CategoryNetworkManagement

snmp (last edited 2017-11-10 22:46:44 by PieterSmit)