CISCO – Test dial-peer on a Cisco Voice Gateway (hidden command)
Documentation of “CSIM START” hidden command!
Please notice that the telephone number is not a valid E.164 number.
CISCO – Connecting a New Switch to the Network
When connecting a new switch to your network you can accidentally change your current VLAN database if the new switch has a higher VLAN Trunking Protocol (VTP) revision number. To avoid this, you must clear the VTP revision number on the new switch. The easiest way is to delete the vlan database in flash memory e reload the switch. This sets the VTP revision number to 0 and you can connect the switch to the network without any problem.
Example:
cisco.switch#show vtp status
VTP Version : 2
Configuration Revision : 17
Maximum VLANs supported locally : 254
Number of existing VLANs : 10
VTP Operating Mode : Server
VTP Domain Name : doamin.com
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0×01 0x1F 0×11 0x2B 0xF4 0×36 0x3E 0×41
Configuration last modified by 10.x.y.z at 5-4-07 08:39:05
cisco.switch#
cisco.switch#dir
Directory of flash:/
17 -rwx 109 Dec 04 2002 13:28:36 info.ver
3 -rwx 94680 Jul 18 2000 03:47:40 c3500XL-diag-mz-120.5.2-XU
4 drwx 704 Dec 04 2002 13:28:36 html
6 -rwx 109 Dec 04 2002 13:26:23 info
112 -rwx 1839 Apr 06 1993 09:14:55 config,text
20 -rwx 6091 Oct 23 2008 18:23:56 config.text
19 -rwx 312 Mar 01 1993 01:02:10 env_vars
7 -rwx 1799001 Dec 04 2002 13:27:30 c3500xl-c3h2s-mz.120-5.WC5a.bin
18 -rwx 876 May 04 2007 10:39:05 vlan.dat
3612672 bytes total (287232 bytes free)
cisco.switch#delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
cisco.switch#reload
Job finished!
LINUX – Setting up AWStats in debian etch
AWStats is a free and powerful log analyzer that works as a CGI or from command line.
AWStats is a free software distributed under the GNU General Public License.
We want to have AWStats working with Apache2 logs on Debian Etch.
0) First let’s check Apache2 Log Configuration in virtual host configuration (by default on /etc/apache2/sites-available/)
A commonly used format string to define log format is this one:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
Add this and definition in your host configuration file and then get it in use with this additional row
CustomLog /var/log/apache2/access.log combined
Save and restart Apache2
# /etc/init.d/apache2 restart
1) Now install AWStats
# apt-get install awstats
2) Configure Apache2 to include AWStats
create a new config file /etc/apache2/awstats.conf with these rows:
Alias /awstats-icon/ “/usr/share/awstats/icon/”
Alias /awstatscss “/usr/share/doc/awstats/examples/css”
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Now that are settings are defined you need that apache2 is aware of these config by adding this row in the end of /etc/apache2/apache2.conf
Include /etc/apache2/awstats.conf
Apply new configs:
# /etc/init.d/apache2 reload
3) Configure AWStats
Now try to call the URL http://www.yoursite.com/awstats/awstats.pl and you will get this error:
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
When calling the URL http://www.mysite.org/awstats/awstats.pl, awstats is looking for the configuration file name after your domain name, namely here /etc/awstats/awstats.www.yoursite.com.conf.
Copy the default awstats configuration file
cp /etc/awstats/awstats.conf /etc/awstats/awstats.www.yoursite.com.conf
And edit it checking these rows:
SiteDomain=“yoursite.com”
/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=www.yoursite.com -update >/dev/null
Categories
- Arduino (2)
- AskoziaPBX (6)
- cisco (1)
- Debian Lenny (6)
- general (1)
- Home server (6)
- Linux (6)
- m0n0wall (1)
- switching (1)
- voice (1)
- Voyage Linux (6)

