0% found this document useful (0 votes)
4 views10 pages

Commands

The document outlines various commands and procedures related to managing call traffic, server status, and configurations for Asterisk and network devices. It includes instructions for checking call records, monitoring server performance, and executing specific commands for troubleshooting and maintenance. Additionally, it provides details on managing interfaces, peering logs, and system configurations.

Uploaded by

usama3280
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views10 pages

Commands

The document outlines various commands and procedures related to managing call traffic, server status, and configurations for Asterisk and network devices. It includes instructions for checking call records, monitoring server performance, and executing specific commands for troubleshooting and maintenance. Additionally, it provides details on managing interfaces, peering logs, and system configurations.

Uploaded by

usama3280
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Purpose

Call Traffic (Live)

Call Traffic (Previous Records)

To check Peering
Extensions
to check CDRs
to check asterisk status
To run asterisk
to run ftp
to Check server memory
To check disk space
show wanpipe status
restrat wanpipe

To block, reset & unblock spans

total calls runing


for count
to enter server asterisk
To check E1's Description
To check E1's Status
To check span status (Alternate)
To reload after making changes
To configure SIP
To check trace of a call
to run monitoring on server
to check runing monitoring
server refresh
To check command history
To start all span
To reboot server
To check switch details (uptime,etc)
to check switch time
to check asterisk status
To check IP
show all interfaces
To check interface status
To check interface detail
To check NMS logging IPs
To check BGP summary
For Router Logs
For Router Uptime
For Switch Logs
To generate CDRs manually
To check interface Configuration
To monitor interface usage

To reset switch interface

To check Ping
ping with source
To see Hardware Details
To check temperature
To Check Peering Logs of Specific Server
To check Temperature and Fan Status
To check no of e1s in a bundel
To check data rate in an E1 or bundel
Gateway
To change date
To remove perticular file with pnr in its title.
To go back previous
To check file with time details
to delete history of servers
to see the rourter config
to check codex
To check route in a server
To check switch power
show status
scp -r -P 51269 /etc/asterisk/sip.conf [email protected]:/home/
more /etc/redhat-release
uname -a
hostname
iptables --list
iptables -F
route add default gw 202.123.XX.XX eno1
ls -lh | grep cdr
cd /var/run/
chmod +x /path/to/check_asterisk.sh
cd /usr/src/
vi check_asterisk.sh
crontab -l
cd /etc/hosts.allow
chmod +x check_asterisk.sh
crontab -e
nslookup vault.centos.org
timedatectl set-time 'YYYY-MM-DD HH:MM:SS'
service crond restart
/etc/asterisk/cdr_custom.conf
vi /etc/sysconfig/network-scripts/ifcfg-eth17
/etc/resolv.conf
cd /usr/scripts/
sudo find / -name rtp.h
vi /usr/include/asterisk.h
vi /etc/wanpipe/wanpipe4.conf
module show
vi /etc/sysconfig/network
vi /usr/include/asterisk.h
vi /etc/wanpipe/wanpipe4.conf
module show
chkconfig | grep iptables
chkconfig --level 01233456 iptables off
fsck -y
systemctl stop firewalld
vi /etc/ssh/sshd_config
systemctl restart NetworkManager
cp codec_g729-ast160-gcc4-glibc-x86_64-core2.so
/usr/lib64/asterisk/modules/codec_g729.so

Purpose
Call Traffic (Live)

Call Traffic (Previous Records)

to restart asterisk in pbx


to check asterisk status
to check channels
To check Peering
Extensions
to check CDRs
to check asterisk status
To run asterisk
to run ftp
to Check server memory
To check disk space
show wanpipe status
restrat wanpipe

To block, reset & unblock spans

total calls runing


for count
to enter server asterisk
To check E1's Description
To check E1's Status
To check span status (Alternate)
To reload after making changes
To configure SIP
To check trace of a call
to run monitoring on server
to check runing monitoring
server refresh
To check command history
To start all span
To reboot server
To check switch details (uptime,etc)
to check switch time
to check asterisk status
To check IP
show all interfaces
To check interface status
To check interface detail
To check NMS logging IPs
To check BGP summary
For Router Logs
For Router Uptime
For Switch Logs
To generate CDRs manually
To check interface Configuration
To monitor interface usage

To reset switch interface

To check Ping
ping with source
To see Hardware Details
To check temperature
To Check Peering Logs of Specific Server
To check Temperature and Fan Status
To check no of e1s in a bundel
To check data rate in an E1 or bundel
Gateway
To change date
To remove perticular file with pnr in its title.
To go back previous
To check file with time details
to delete history of servers
to see the rourter config
to check codex
To check route in a server
To check switch power
show status
scp -r -P 51269 /etc/asterisk/sip.conf [email protected]:/home/
more /etc/redhat-release
uname -a
hostname
iptables --list
iptables -F
route add default gw 202.123.XX.XX eno1
ls -lh | grep cdr
cd /var/run/
chmod +x /path/to/check_asterisk.sh
cd /usr/src/
vi check_asterisk.sh
crontab -l
cd /etc/hosts.allow
chmod +x check_asterisk.sh
crontab -e
nslookup vault.centos.org
timedatectl set-time 'YYYY-MM-DD HH:MM:SS'
service crond restart
/etc/asterisk/cdr_custom.conf
vi /etc/sysconfig/network-scripts/ifcfg-eth17
/etc/resolv.conf
cd /usr/scripts/
sudo find / -name rtp.h
vi /usr/include/asterisk.h
vi /etc/wanpipe/wanpipe4.conf
module show
chkconfig | grep iptables
chkconfig --level 01233456 iptables off
fsck -y
dmidecode -t 17 | grep Size
Commands
tail -f /var/log/asterisk/cdr-csv/Master.csv (tail is command, rest is directory)

tail -1000 /var/log/asterisk/cdr-csv/Master.csv (tail is command, rest is directory)

asterisk -rx "sip show peers"


vim extensions.conf
ls -l /var/log/asterisk/cdr-custom
ps -aux | grep asterisk
asterisk -g
/usr/sbin/vsftpd
top
df -h
wanrouter status
wanrouter stop & wanrouter start

(/ss7box/sangoma_isup_cli --ckt-block --chan all --span 4 ) (/ss7box/sangoma_isup_cli --


ckt-reset --chan all --span 4) (/ss7box/sangoma_isup_cli --ckt-unblock --chan all --span 4)

asterisk -rx "core show channels"


wc -l
cd /etc/asterisk/
wandata
wanhis & (cat /var/log/messages | grep wanpipe | grep connected )
ckt & ( /ss7box/sangoma_isup_cli --ckt-report --chan all --span all | more)
asterisk -rx"reload"
vim sip.conf
asterisk -rvvv
monit start all
monit status
echo 3 > /proc/sys/vm/drop_caches
history
/smg/smg_ctrl start
init 6
show version
show clock
./xps
ifconfig
show interfaces description
show interfaces terse | match
show interfaces Gi6/0/19
who | more
Show BGP Summary
Show Log Messages
Show System Uptime
Show logging
./gencdr
show configuration interfaces ge-0/2/0 - (ge-0/2/0) is interface name
monit interfaces {interface name}
1. conf terminal
2. interface Gi1/0/32 - (Gi1/0/32) is interface name
3. shut
4. no shut
5. exit
ping 202.123.240.8
ping 119.63.129.173 rapid count 1000 source 119.63.129.174
show chassis hardware
show chassis routing-engine
tail -10000 /var/log/asterisk/messages | grep -i reach | grep ESG
show chassis environment
show configuration interfaces lsq-0/0/0.1
Monitor Int e1/0/0/0
202.123.253.129 FSB
date -s 18:53:36
rm -rf *pnr*
cd ..
ls -l | more
history -c
show conf
asterisk -rx "core show translation"
route -n
sh int transceiver
to check switch status
To copy file from one server to another
To check centos vesion
to check server's RAM
to change host name of the server
to check lisy of IP table
to stop ip address
to add gateway
in custom folder to find cdr file
crond.pid
to open auto asterisk email
to go to crontab

To check the crontab to run files automatically


To allow host in the destination server
to reload
to open crontab

to change clock of the server


to restart crontab
To check the cdr custom file for bill sec

To Change Normal to Master in WANPIPE


In asterisk CLI
to change hotname

To Change Normal to Master in WANPIPE


In asterisk CLI

checks and interactively repairs inconsistent file systems


to stop ip address
To adjust port in a server

Commands
tail -f /var/log/asterisk/cdr-csv/Master.csv (tail is command, rest is directory)

tail -1000 /var/log/asterisk/cdr-csv/Master.csv (tail is command, rest is directory)

asterisk -rx "core restart now"


asterisk -r
asterisk -rx "sip show channels"
asterisk -rx "sip show peers"
vim extensions.conf
ls -l /var/log/asterisk/cdr-custom
ps -aux | grep asterisk
asterisk -g
/usr/sbin/vsftpd
top
df -h
wanrouter status
wanrouter stop & wanrouter start

(/ss7box/sangoma_isup_cli --ckt-block --chan all --span 4 ) (/ss7box/sangoma_isup_cli --


ckt-reset --chan all --span 4) (/ss7box/sangoma_isup_cli --ckt-unblock --chan all --span 4)

asterisk -rx "core show channels"


wc -L
cd /etc/asterisk/
wandata
wanhis & (cat /var/log/messages | grep wanpipe | grep connected )
ckt & ( /ss7box/sangoma_isup_cli --ckt-report --chan all --span all | more)
asterisk -rx"reload"
vim sip.conf
asterisk -rvvv
monit start all
monit status
echo 3 > /proc/sys/vm/drop_caches
history
/smg/smg_ctrl start
init 6
show version
show clock
./xps
ifconfig
show interfaces description
show interfaces terse | match
show interfaces Gi6/0/19
who | more
Show BGP Summary
Show Log Messages
Show System Uptime
Show logging
./gencdr
show configuration interfaces ge-0/2/0 - (ge-0/2/0) is interface name
monit interfaces {interface name}
1. conf terminal
2. interface Gi1/0/32 - (Gi1/0/32) is interface name
3. shut
4. no shut
5. exit
ping 202.123.240.8
ping 119.63.129.173 rapid count 1000 source 119.63.129.174
show chassis hardware
show chassis routing-engine
tail -10000 /var/log/asterisk/messages | grep -i reach | grep ESG
show chassis environment
show configuration interfaces lsq-0/0/0.1
Monitor Int e1/0/0/0
202.123.253.129 FSB
date -s 18:53:36
rm -rf *pnr*
cd ..
ls -l | more
history -c
show conf
asterisk -rx "core show translation"
route -n
sh int transceiver
to check switch status
To copy file from one server to another
To check centos vesion
to check server's RAM
to change host name of the server
to check lisy of IP table
to stop ip address
to add gateway
in custom folder to find cdr file
crond.pid
to open auto asterisk email
to go to crontab

To check the crontab to run files automatically


To allow host in the destination server
to reload
to open crontab

to change clock of the server


to restart crontab
To check the cdr custom file for bill sec

To Change Normal to Master in WANPIPE


In asterisk CLI

checks and interactively repairs inconsistent file systems


to check RAM

You might also like