This recipe describes how to use SNMP to determine the traffic offered and drop rate for a QoS policy configured on a Cisco router.
The steps here describe which OIDs to interrogate in the CISCO-CLASS-BASED-QOS-MIB
STEP 1:
Get the SNMP ifIndex for the interface where the QoS policy is attached:
CiscoRouter#sh snmp mib ifmib ifindex | i GigabitEthernet0/1
GigabitEthernet0/1: Ifindex = 22
(or by using SNMP):
root@Linux# snmpwalk -v2c -c communityname 10.0.200.12 1.3.6.1.2.1.2.2 | grep -i GigabitEthernet0/1
RFC1213-MIB::ifDescr.22 = STRING: “GigabitEthernet0/1” Read more…
These are two small Microsoft Windows batch files which will enable administrators to append entry to hosts file on local or remote PC:
First determine the computer name:
C:\Users\dmatthews\Desktop>hostname
L00151267 Read more…
To execute the “ipconfig /all” command on one or more remote machines you can use the psexec utility that is part of pstools, available from Microsoft. The syntax is: pstools \\machine_name command
For example:
C:\Users\dmatthews\Desktop\pstools>psexec \\L00151270 ipconfig /all
To list just the IP version 4 address, pipe the output throught the ‘find’ command:
C:\Users\dmatthews\Desktop\pstools>psexec \\L00151270 ipconfig /all | find “IPv4” Read more…
For SuperMicro motherboards which use IPMI, you can setup monitoring of RPS’s using Nagios and the IPMI plugin.
IPMItool is an open source utility to work with the IPMI management cards in some servers. Depending on your particular Linux distribution, you can probably “apt-get install ipmitool” or “yum install ipmitool” to get it. It is basically a command line tool that can be used instead of the IPMI web interface. Read more…
SNMP v3
Download this capture file: ” snmp_usm ”
OR: view it now via Cloudshark
SNMPv3 provides a secure environment for the management of systems covering the following: Read more…
The challenge was to obtain all user IP addresses in order to locate them on the local LAN (i.e. to locate their switch port by checking arp caches and mac address-table entries in the usual manner). Once located I needed to place them into a different vlan and then have the user reboot to obtain a new IP address. How could I accomplish this remotely and by “stealth”. Read more…
A nice little introduction to network monitoring (provided by my employer – registration required for obtaining the free download). This book does lean slightly towards using Cascade products to provide monitoring, troubleshooting and analytics – BUT I’m happy to say that it does remain a nice little read for anyone who has an interest in network monitoring. Read more…
These failure codes are the original error codes from the Kerberos RFC 1510 Read more…
ngrep is a “network grep” utility that can be used to match regular expressions within network packet payloads. This is a very handy utility as many network analysers (“packet sniffers”) can examine the packet header, but either do not display or cannot filter based on packet payload. Read more…
SNMP monitoring often references interfaces using the “ifindex”, in order to solicit information. Sometimes though, the ifindex can change or be slightly different to the actual interface number, for example: Read more…