Translated from: Example
Key words: SNMP, MIB, OID, agent, NMs
Abstract: With the rapid development of network technology, the number of network devices is increasing, and the types of devices are also diverse. How can we effectively manage these devices? We can achieve this through the SNMP function. This article focuses on the basic concepts, working principles, and main applications of SNMP.
Abbreviations:
Abbreviations
Full English nam
SNMP protocol Overview
SNMP (Simple Network Management Protocol) is a Simple Network Management Protocol, which provides a framework for the network management system to manage the underlying network. The SNMP protocol is widely used in many types of network devices, software, and systems, mainly because it has the following features:
First, SNMP is easy to implement compared with other types of network management systems or management protocols. SNMP management protocols,
hdOutBlocks
Add the above content to the configuration file, save and exit.
Restart the snmpd service
Server snmpd restart
3. Test on cacti monitoring host
[Root @ backup ~] # Snmpwalk-v 2c-c public 192.168.5.44. 1.3.6.1.4.1.2021.58
UCD-SNMP-MIB: ucdavis.58.1.1 = INTEGER: 1
UCD-SNMP-MIB: ucdavis.58.2.1 = STRING: "hdOutBlocks"
UCD-SNMP-MIB: ucdavis.58.3.1 = STR
/bin/snmpdiskio hdNum
Exec. 1.3.6.1.4.1.2021.55 hdIndex/usr/local/bin/snmpdiskio hdIndex
Exec. 1.3.6.1.4.1.2021.56 hdDescr/usr/local/bin/snmpdiskio hdDescr
Exec. 1.3.6.1.4.1.2021.57 hdInBlocks/usr/local/bin/snmpdiskio hdInBlocks
Exec. 1.3.6.1.4.1.2021.58 hdOutBlocks/usr/local/bin/snmpdiskio hdOutBlocks
Add the above content to the configuration file, save and exit.
Restart the snmpd service
Server snmpd restart
3. test on cacti monitoring host
[Root @ backup ~] # Snmpwalk-v 2c-c public 192.168
MIBs extension of Net-snmp
MIBs extension of Net-snmp
1 Compiling and installing NET-SNMP
2 Writing MIB files
MIB File description
A simple example
3 Making a custom MIB file effective
4 Implementing Agent Agents
Use the MIB2C program to generate. C and. h files.
Read-only
Policy Group 1
ISAKMP Policy Lifetime 3600
ISAKMP key 12345678 address 0.0.0.0 netmask 0.0.0.0
ISAKMP enable outside
!configure DHCP server address
DHCPD address 172.17.1.100-172.17.1.109
DHCPD DNS 192.168.0.20
DHCPD wins 192.168.0.10
DHCPD Lease 3000
DHCPD domain example.com
! Enable DHCP server on Inside interface
DHCPD Enable
! Use outside interface IP as PAT global address
Nat (inside) 1 0 0
Global (outside) 1 interface
Iv. use SNMP (using SNMP)
The Snmp_server command enables the PIX firew
Ubuntu 12.04 didn't install the MIB files. even if you install the SNMP applications. just check the preamble of/etc/snmp. conf # As the snmp packages come without MIB files due to license reasons, loading # of MIBs is disabled by default. if you added the MIBs you can reenable # loaging them by commenting out of the following line. mibs: Sure, but how can I install them? Fortunately there is a package to d
is a example for the operations supported in this community:test#./snmpget-c private Q:What is the procedure to load a Management Base information (MIB) file to the SNMP Manager on a NetScaler appliance ?A: The procedure to load an MIB file to the SNMP manager depends on the type of the SNMP manager. Use any of the following procedures to load a MIB file to the
Original post: http://iphonesdkdev.blogspot.com/2009/01/source-code-get-hardware-info-of-iphone.html
This is a collection of open source codes to print out the hardware info of iPhone. If you know more, please post link here in comment and I will update it.
Battery info source (requires iokit header files from simulatorsdk)Http://forums.macrumors.com/showthread.php? T = 474628
Memory CPUHttp://furbo.org/2007/08/21/what-the-iphone-specs-dont-tell-you/
ProcessLandon Fuller, iphonesdk@googlegroups
--time=60--report-interval=10-- FILE-TEST-MODE=RNDRW FileIO Run Sysbench 1.1.0 (using bundled Luajit 2.1.0-beta3) Running the test with following options : Number of Threads:4 report intermediate results every second (s) Initializing random number generator from current TI Me Extra File Open flags: (none) files, 16MiB each 2GiB total file size Block size 16KiB number of IO requests:0 Rea
D/write ratio for combined random IO test:1.50 periodic FSYNC enabled, calling FSYNC () requests.
Calling Fsy
378257 378257.0 10.0 Test2 () 1 2 2.0 0.0 return Total
The places where hits (execution times) and time values are high are places where there is more room for optimization.
Memoryprofiler
Similar to "Lineprofiler" for modules based on the row parser memory usage. GitHub Address: https://github.com/fabianp/me .... PS: Install Psutil, will analyze faster.
Same as the code in "Lineprofiler" above, run the python-m memory_profiler profile.py command produces the following results:
➜python-m Memor
t4 = sum_num(400000) 20 1 155261 155261.0 4.1 t5 = sum_num(500000) 21 1 378257 378257.0 10.0 test2() 22 23 1 2 2.0 0.0 return total
There is a lot of room for optimization when the values of hits (execution times) and time (time consumed) are high.
Memoryprofiler
Similar to the "lineprofiler" module for row-based analytics program memory usage. Github: https://github.com/fabianp/me .... Ps: install
Linux storage experiment 2: LVM operations Linux storage experiment 2: RAID operations http://www.2cto.com/os/201303/195811.html (1) step 1 of LVM creation: create another five 10 mbscsi hard disks. This step is the same as the raid creation operation in the previous step... linux storage experiment 2: LVM operations Linux storage experiment 2: RAID operations http://www.2cto.com/os/201303/195811.html (1) step 1 of LVM creation: create another 5 10 mb scsi hard disks. This step is the same as cr
/dev/sdb2 # Add the physical volume of sdb2 to the vgname volume group # pvdisplay # view the PV information again after the physical volume is added.
3. Extract and delete PV
Solution 1:
1. View pv usage
# Pvdisplay # view existing PVS --- Physical volume --- PV Name/dev/sda1 VG Name vgname PV Size 1019.72 MiB/not usable 3.72 MiB Allocatable yes PE Size 4.00 MiB
some OID information about the device, and note that the Windows system is now available, not the Linux system.Note: We also use the MIB ireasoning MIB browser to explore the software to match our experiments.5.1 gets the number of Windows system processesSnmpwalk-v 1-c public 192.168.1.200.1.3.6.1.2.1.25.1.6This command means: Use the V1 version, the community is public, to the 192.168.1.200.1.3.6.1.2.1.2
Linux storage experiment 2: LVM operation Linux storage experiment 2: RAID operation http://www.bkjia.com/ OS /201303/195811.html (1) Create LVM Step 1: create another 5 10 mb scsi hard disks. This step is the same as creating a raid in the previous step. For more information, see Step 2 in the previous step: use four hard disks for raid 5 + 1 hostspare mdadm -- create -- auto = yes/dev/md1 -- level = 5 -- raid-devices = 4 -- spare-device = 1/dev/sdc {5, 6, 7, 8, 9} Note: This time we create rai
My problems:
Recently, cacti is used to monitor a Huawei s5720 switch. The monitoring module is a template of a lower version, so a switch of a higher version cannot obtain data.
Find the cause based on the principle:
Because SNMP-based monitoring is used, the oId (Object descriptor) must be obtained for obtaining data using SNMP ). The most accurate way to obtain the oId is to contact the device manufacturer. The s5720 oid is obtained by I contact the vendor for your reference.
Catego
Send Cisco commands via SNMPAn article by Fabio Semperboni Tutorial inShare136 Tweet
In the article "How to save configurations using SNMP", I has explained how to get the Cisco configuration using SNMP. Now, I explain how to send commands via SNMP using the "Ciscoconfigcopymib" MIB; With this MIB, you can replace Running/startup configuration, send commands, save The "show" Output or reload the devic
Zabbix monitoring firewalls and switches are transmitted through the SNMP protocol for data and data analysis, which I will explain below with the Dell Firewall SonicWALL 3400 series and switch N4032. Since the Zabbix server is already installed, it is now only possible to install the SNMP protocol on the fire switch on the firewall and send the data as a client.(i) Monitoring firewallsFirst, log in to the firewall and locate the firewall's monitoring port. The port steps for this series are: Ne
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.