-
You are most welcome, one of the installation we have on 2621xm and 256 leased, it's 90% loaded traffic but CPU load is always 2 . 5%
1721 also loaded with 256 leased and the load is 25% max because of the logs.
Don't worry about the CPU if less than 60% load.
-
[right]با سلام [/right]
من ام ار تی جی را از روی
نصب کردم تا guid .html
configuration
[right][size=3][color=#ff8c00]ا[color=black]ز اونجا به بدشو نميفهمم[/color][/color][/size][color=black] بايد چکا ر بکنم[/color][/right]
[b][size=4]CONFIGURING MRTG[/size][/b]
Now it is time to create a configuration for mrtg. But before we begin you need to know a few things. Take an opportunity to gather the following information:
[list][*]The IP address or hostname and the snmp port number, (if non standard), of the device you want to monitor.[*]If you want to monitor something other than bytes in and out, you must also know the SNMPOID of what you want to monitor.[*]Finally you need to know the read-only SNMP community string for your device. If you don't know it, try [b]public[/b], that is the default.[/list]For the rest of this document we will be using device [b][color=darkorange]10.10.10.1[/color][/b] ( a CISCO Catalyst 5000) with Community string [b]public[/b]. We are interested in monitoring traffic, and the CPU load. Let's begin.
The first thing we do in setting up mrtg is making a default config file. Get to a cmd prompt and change to the [i]c:\mrtg-2.10.11\bin[/i] directory. Type the following command:
[size=3][color=darkorange]perl cfgmaker public@10.10.10.1 --global "WorkDir: c:\www\mrtg" --output mrtg.cfg[/color][/size]
This creates an initial MRTG config file for you. Note that in this file all interfaces of your router will be stored by number. Unfortunately, these numbers are likely to change whenever you reconfigure your router. In order to work around this you can get [i]cfgmaker[/i] to produce a configuration which is based on Ip numbers, or even Interface Descriptions. Check [url="http://people.ee.ethz.ch/~oetiker/webtools/mrtg/cfgmaker.html"][u][color=#800080]the cfgmaker manpage[/color][/u][/url]
If you get an error message complaining about [b]no such name[/b] or [b]no response[/b], your community name is probably wrong.
Now, let's take a look at the mrtg.cfg file that was created.
In Perl, a # is a comment, synonymous with REM in DOS.
Add the following to the top of the mrtg.cfg file:
[size=3][color=darkorange]WorkDir: D:\InetPub\wwwroot\MRTG[/color][/size]
This is where the web pages are created, usually a web root.
################################################## ####################[size=3][color=darkorange] [/color][/size]
[size=3][color=darkorange]# Description: LCP SUWGB[/color][/size]
[size=3][color=darkorange] # Contact: Administrator [/color][/size]
[size=3][color=darkorange]# System Name: LC-Bridge [/color][/size]
[size=3][color=darkorange]# Location: Here #................................................. ....................[/color][/size]
TargetDevice's IP Address:Interface Number:Community:IP Address
[size=3][color=darkorange]Target[10.10.10.1.1]: 1:p[email="ublic@10.10.10.1"]ublic@10.10.10.1[/email][/color][/size]
[size=3]This is the interface speed (Default is 10 megabits; for 100Mbit devices use 12500000 and so on...)[/size]
[size=3][color=darkorange]MaxBytes[10.10.10.1.1]: 1250000[/color][/size][color=darkorange][size=3] Title[10.10.10.1.1]: LC-Bridge (sample.device): ether0[/size] [/color]This section determines how the web page headers will look
PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
[size=3][color=darkorange]<TABLE> <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR> <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR> <TR><TD>Interface:</TD><TD>ether0(1)</TD></TR> <TR><TD>IP:</TD><TD>sample.device(10.10.10.1)</TD></TR> <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR> </TABLE>[/color][/size][size=3][color=darkorange] Target[10.10.10.1.2]: 2:public@10.10.10.1 MaxBytes[10.10.10.1.2]: 1250000 Title[10.10.10.1.2]: LC-Bridge (): ulink0 PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1> <TABLE> <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR> <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR> <TR><TD>Interface:</TD><TD>ulink0(2)</TD></TR> <TR><TD>IP:</TD><TD>()</TD></TR> <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR> </TABLE>[/color][/size]
[right][/right]
چيزها يی که به رنگ قرمز نشان داده شده همان
اشکا لات بنده است. نميفهمم چگو نه بايد از آنها استفاده کرد
با تشکر
اميدوارم سؤالم واضح بوده باشد
-
سلام آقایون
من تازه در این فرم عضو شدم ، و یک سوال داشتم : می خواستم برای امنیت بیشتر SNMP PUBLIC رو در Run Config عوض کنم و بعد به مشکل بر خوردم .
اگه می شه Command های تعویض SNMP رو بگین ممنون می شم
در ضمن من از NTTAC استفاده می کنم .
[QUOTE=aryagohar]آقا اصلا snmp با community public تعريف نكن.[/QUOTE]
-
[QUOTE=k.std]سلام آقایون
من تازه در این فرم عضو شدم ، و یک سوال داشتم : می خواستم برای امنیت بیشتر SNMP PUBLIC رو در Run Config عوض کنم و بعد به مشکل بر خوردم .
اگه می شه Command های تعویض SNMP رو بگین ممنون می شم
در ضمن من از NTTAC استفاده می کنم .[/QUOTE]
با اجازه اساتید محترم :
اول باید با دستور زیر SNMP قبای رو غیر فعال کنی
no snmp-server community public RW 15
بعد باید همون دستور قبلی رو بدون no اجرا کرده و بجای public کلمه مورد نظر خود رو بنویسی مانند مثال زیر :
snmp-server community (select snmp ) RW 15