First configure the management address for logging on to 3600 for H3C3600 # enable the SNMPAgent service and set the group name for SNMPv3. & Lt; Sysname & gt; system-view [Sysname] snmp-agent [Sysname] snmp-agentsys-infoversionall [Sysname] snmp-agentcommunityreadpublic [Sysname
First, configure the management address of login 3600 in H3C 3600.
# Enable the SNMP Agent service and set the group name of SNMP V3.
System-view
[Sysname] snmp-agent
[Sysname] snmp-agent sys-info version all
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
# Allow the switch to send Trap packets to the monitoring server 10.1.9.44. The group name used is public.
[Sysname] snmp-agent trap enable standard authentication
[Sysname] snmp-agent trap enable standard coldstart
[Sysname] snmp-agent trap enable standard linkup
[Sysname] snmp-agent trap enable standard linkdown
[Sysname] snmp-agent target-host trap address udp-domain 10.1.9.44 udp-port 5000 params securityname public
Install software on Ubuntu 10.04:
Sudo apt-get install apache2
Sudo apt-get install mrtg
Sudo apt-get install snmpd
Edit snmpd:
Vim/etc/snmp/snmpd. conf
Find a similar row and change it to the following: (modify only to block or release)
# Sec. name source community
# Com2sec paranoid default public # kommentieren
Com2sec readonly default public # <-auskommentieren
# Com2sec readwrite default private
Restart the snmpd service:
/Etc/init. d/snmpd restart
Regenerate the mrtg configuration file:
Login maker public @ localhost>/etc/mrtg. cfg
(Note) use the following command to monitor only one IP Address:
Registrant maker public@10.10.10.254>/etc/mrtg. cfg
10.10.10.254 is the management address of the vswitch www.linuxidc.com
Generate the home page of mrtg:
Indexmaker/etc/mrtg. cfg>/var/www/mrtg/index.html
Access:
Http: // localhost/mrtg/
After five minutes of refreshing, you can see the traffic on each port.