designevo

Logo通過DesignEvo設計製作

2010年2月19日 星期五

在Cacti 中MAC Track 手動執行Scan

[root@localhost mactrack]# php poller_mactrack.php -v
Network Mac Tracker Master Process Control Version 1.0, Copyright 2005 - Larry Adams

usage: poller_mactrack.php [-sid=site_id] [-d] [-h] [--help] [-v] [--version]

-sid=site_id - the mac_track_sites site_id to scan
-f - Force the execution of a collection process
-d - Display verbose output during execution
-v --version - Display this help message
-h --help - display this help message
[root@localhost mactrack]# php poller_mactrack.php -f -d
DEBUG: About to enter MacTrack poller processing
DEBUG: Into Processing. Checking to determine if it's time to run.
DEBUG: Checking if user changed the start time
DEBUG: Checking if user changed the maintenance time
DEBUG: The next run time has been determined to be at '2010-02-20 1:00:00'
DEBUG: The next database maintenance run time has been determined to be at '2010-02-20 0:00:00'
DEBUG: Either a scan has been forced, or it's time to check for macs
DEBUG: CMD: /usr/bin/php -q /var/www/html/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: CMD: /usr/bin/php -q /var/www/html/plugins/mactrack/mactrack_scanner.php -id=2 -d
DEBUG: CMD: /usr/bin/php -q /var/www/html/plugins/mactrack/mactrack_scanner.php -id=3 -d
DEBUG: A process cycle launch just completed.
DEBUG: Waiting on 1 to complete prior to exiting.
DEBUG: Waiting on 0 to complete prior to exiting.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: MAC addresses to Vendor MACS association pass complete.
DEBUG: MAC VLAN's in VLAN Table Updated.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
02/19/2010 09:47:18 PM - SYSTEM MACTRACK STATS: Time:6.1289 ConcurrentProcesses:7 Devices:3
[root@localhost mactrack]#

CactiEZ 0.6 Install

I. Install
1. Insert CactiEZ 0.6 CD
2. Boot from CDROM
3. The Boot CD will erase all Partition on Current Harddisk and install new Centos 4.8 and Cacti 0.87.
4. remove CDROM and system will reboot.
5. we already has new Cacti system in this PC.

II. Config
1. Login username root with Password CactiEZ.
2. After Login, Please ASAP Change Password, use Command passwd.
3. change eth0 IP, use Command netconfig eth0.
4. change hostname, use Command vi to edit /etc/hosts.
5. change timezone, use below command:
[root@cactiez etc]# vi /etc/sysconfig/clock
modify clock file to :
ZONE="Asia/Taipei"
UTC=false
ARC=false

[root@cactiez etc]# mv localtime localtime-old
[root@cactiez etc]# ls /usr/share/zoneinfo/Asia/Taipei/usr/share/zoneinfo/Asia/Taipei
[root@cactiez etc]# ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime

6. use command yum update , to update your system.
7. reboot.

III. first time to use your Cacti system
1. use Browser ie. firefox or ie to connect Cacti host ip.
2. logon username admin with password admin.

資料無價

做資訊的都知道 資料備份 很重要,但當資料因不可抗力或人為失誤弄掉了!  到底會想要花多少錢來救資料? 答案常常是越少越好~  最好是 免費 .... 那誰會要去救 .... 買備份設備就跟買保險一樣,有備無患,但重要的是有沒有買對設備,有備份也要有還原測試驗証,而且最好要一段時...