Cisco Systems Dial NMS manual crontab from any directory

Models: Dial NMS

1 132
Download 132 pages 47.44 Kb
Page 63
Image 63
crontab from any directory.

Task 3—Using MRTG to Monitor and Graph Traffic Loads

How to Inspect and Interpret Data

MaxBytes2[travis-nas-01_vpdn_tunnelanddenied]: 200

Title[travis-nas-01_vpdn_tunnelanddenied]: cvpdnTunnelTotal and cvpdnDeniedUsersTotal

PageTop[travis-nas-01_vpdn_tunnelanddenied]: <H2>cvpdnTunnelTotal and cvpdnDeniedUsersTotal</H2>

<TABLE> <TR><TD>Device:</TD><TD>travis-nas-01</TD></TR> <TR><TD><a href="/mrtg/mrtg.html">HOME</a></TD></TR>

</TABLE> Options[travis-nas-01_vpdn_tunnelanddenied]: gauge

#----------------------------------------------------------------------------------------

------

# purpose: activeDS0s and cvpdnSessionTotal

#----------------------------------------------------------------------------------------

------

Target[travis-nas-01_activeDS0vpdnSession]: 1.3.6.1.4.1.9.10.19.1.1.4.0&1.3.6.1.4.1.9.10.24.1.1.2.0:5urf5h0p@travis-nas-01 MaxBytes1[travis-nas-01_activeDS0vpdnSession]: 200 MaxBytes2[travis-nas-01_activeDS0vpdnSession]: 200 Title[travis-nas-01_activeDS0vpdnSession]: activeDS0s and cvpdnSessionTotal PageTop[travis-nas-01_activeDS0vpdnSession]: <H2>activeDS0s and cvpdnSessionTotal</H2>

<TABLE> <TR><TD>Device:</TD><TD>travis-nas-01</TD></TR> <TR><TD><a href="/mrtg/mrtg.html">HOME</a></TD></TR>

</TABLE> Options[travis-nas-01_activeDS0vpdnSession]: gauge

Step 5

Open the crontab file in your system by entering crontab -e. The -eenables edit mode. You can run

 

crontab from any directory.

 

 

 

 

igloo:/ ->crontab-e

 

 

 

 

"/tmp/crontabmMaqZd" 14 lines, 610 characters

 

 

#ident "@(#)root

1.19

98/07/06 SMI" /* SVr4.0 1.1.3.1

*/

 

#

 

 

 

#The root crontab should be used to perform accounting data collection.

#The rtc command is run to adjust the real time clock if and when

#daylight savings time changes.

#

10 3 * * 0,4 /etc/cron.d/logchecker

10 3 * * 0 /usr/lib/newsyslog

15 3 * * 0 /usr/lib/fs/nfs/nfsfind

1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1

30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean

Caution Although the crontab file is a flat text file, do not manually edit it by using vi crontab.

vican corrupt the crontab, which causes all cron jobs to stop working. You must use the crontab -ecommand, which synchronizes and updates all the crontab daemons accordingly.

Step 6 Insert the directory path for the MRTG configuration file (.cfg) you created. At the bottom of the file, enter a line similar to this one:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/mrtg/run/mrtg

/opt/mrtg/run/conf/travis-nas-01.cfg

Note Do not forget to include a space between /mrtg and /opt

Basic Dial NMS Implementation Guide

$!

Page 63
Image 63
Cisco Systems Dial NMS manual crontab from any directory