Skip to main content

Posts

Showing posts from June, 2021

Exim cheatsheet

Show summary mail in queue: exim -bpc show sender in mail queue: exim -bp | grep "emailname" show count mail with spesific sender: exim -bp | grep "emailname" wc -l  delete mail in queue with spesific sender:  exim -bp|grep mailname |awk '{print $3}' |xargs exim -Mrm Basic information Print a count of the messages in the queue: root@localhost# exim -bpc Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient): root@localhost# exim -bp Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals): root@localhost# exim -bp | exiqsumm Print what Exim is doing right now: root@localhost# exiwhat Test how exim will route a given address: root@localhost# exim -bt alias@localdomain.com user@thishost.com <-- alias@localdomain.com router = localuser, transport = local_delivery root@localhost# exim -bt user@thishost.com user@thishost.com router = localuser, transp...

Konfigurasi IP Address Static Centos 7/8

  # static IP address on CentOS 7 or RHEL 7# HWADDR=00:08:A2:0A:BA:B8 TYPE=Ethernet BOOTPROTO=none # Server IP # IPADDR=192.168.2.203 # Subnet # PREFIX=24 # Set default gateway IP # GATEWAY=192.168.2.254 # Set dns servers # DNS1=192.168.2.254 DNS2=8.8.8.8 DNS3=8.8.4.4 DEFROUTE=yes IPV4_FAILURE_FATAL=no # Disable ipv6 # IPV6INIT=no NAME=eth0 # This is system specific and can be created using 'uuidgen eth0' command # UUID=41171a6f-bce1-44de-8a6e-cf5e782f8bd6 DEVICE=eth0 ONBOOT=yes

Konfigurasi Tacac-Plus.conf Menggunakan Database /etc/passwd

edit in tac_plus.conf (related with that). key = "secret" accounting file = /var/log/tac_accounting.log # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # *                     USERS ADMIN                                  * # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * user = admin1{         login = file /etc/passwd         member = admin         enable = file /etc/passwd } group = admin {         default service = permit         service = exec {                 priv-lvl = 15  ...

Command Reference Raisecom OLT

Check onu status: show epon-onu information Check mac interface vlan: show pon mac-address-table l2-address interface epon-onu 1/1/14 Mac Address     Port                      VLAN  Flag ---------------------------------------------------- 9800.7457.ccd4  onu1/1/14                 713   Hit 9800.7457.ccd3  onu1/1/14                 46    Hit   Check illegal onu: show interface epon-olt illegal-onu