How to configure Cisco Router T1 for MGCP

How to configure Cisco Router T1  for MGCP

Below steps checked on  Cisco 2811 and 2911 Routers

1- Check the  VVIC  location

R1#sh inventory
NAME: “2811 chassis”, DESCR: “2811 chassis”
PID: CISCO2811 , VID: V05 , 

NAME: “VWIC2-1MFT-T1/E1 – 1-Port RJ-48 Multiflex Trunk – T1/E1 on Slot 0 SubSlot 0“, DESCR: “VWIC2-1MFT-T1/E1 – 1-Port RJ-48 Multiflex Trunk – T1/E1”

 

Show inventory command shows you the location installed VVIC card in our case it is installed on Cisco Router Slot 0.

Read more

How to read config files in Cisco Router or Switch

How to read config files in Cisco Router or Switch

Check the name of the file and location.

R1#dir
Directory of flash:/

1 -rw- 67929600 Dec 12 2016 02:58:20 +00:00 c2800nm-adventerprisek9-mz.151-4.M12a.bin
2 -rw- 1622 May 26 2017 16:54:46 +00:00 Default
3 -rw- 2711 Sep 24 2017 17:45:02 +00:00 working24sept

255852544 bytes total (187912192 bytes free)

 

To read the content of file use command  “more”

Read more

Protect your Asterisk PBX server from Black listed IP address

Protect your Asterisk PBX server from Black listed IP address

VoIPBL is a distributed VoIP blacklist that is aimed to protects against VoIP Fraud and minimizing abuse for network that have publicly accessible PBX’s.

For more details http://www.voipbl.org/

For Asterisk PBX  you  need to install Fail2ban. This is the only required dependency needed to run VoIP Blacklist on your server.

Read more

How configure crontab in ESXi to schedule a job every 5 min

How configure crontab in ESXi to schedule a job every 5 min

For scheduling a command or script every 5 min in ESXi we need to edit following file

/var/spool/cron/crontabs/root

vi /var/spool/cron/crontabs/root

#min hour day mon dow command
1    1    *   *   *   /sbin/tmpwatch.py
1    *    *   *   *   /sbin/auto-backup.sh
0    *    *   *   *   /usr/lib/vmware/vmksummary/log-heartbeat.py
*/5  *    *   *   *   /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe
00   1    *   *   *   localcli storage core device purge
*/2 * * * * /usr/lib/vmware/vsan/bin/vsanObserver.sh

Read more

VMware ESXi Datastores refresh issue incorrect free space

VMware ESXi Datastores refresh issue incorrect free space

We do manual datastore scan or HBA  scan to show the correct free space .

We can change the refresh interval manually to edit config.xml file in esxi host.

To change the refresh interval, edit the configuration file and change the refreshInterval value to the desired interval.

To change the refreshInterval value:

  1. Using a text editor, open the /etc/vmware/hostd/config.xml file on the host.
  2. Locate the <datastore> element. This element in the default file is similar to:<datastore>
    <!-- default datastore inventory-->
    <!-- <inventory>/etc/vmware/hostd/datastores.xml</inventory> -->
    <!-- default datastore refresh interval in minutes -->
    <!-- use 0 to disable the auto refresh -->
    <!-- <refreshInterval>0</refreshInterval> -->
    <!-- default datastore list refetch interval, after getting a VMFS event, in seconds-->
    <!-- <refetchVMFSDatastoreListInterval>30</refetchVMFSDatastoreListInterval> -->
    </datastore>
  3. Remove the comment indicators and replace the 0 (zero) in the <refreshInterval> element with the desired number of minutes. For example, to set the refresh interval to one hour, change this line:<!-- <refreshInterval>0</refreshInterval> -->

    to:

    <refreshInterval>60</refreshInterval>

  4. Save and close the file.
  5. Restart the hostd service for the changes to take effect.
  6. /etc/init.d/hostd restart

Read more