Quantcast
Channel: Syed Jahanzaib – Personal Blog to Share Knowledge !
Browsing all 409 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Backup your Backup on CLOUD !

If you are using command base server operating system with text support only, example ‘Ubuntu Server Edition‘, && if its hosting important application like radius billing, then its best...

View Article


Image may be NSFW.
Clik here to view.

Radius Manager

After upgrade radius manager, you may see following error when you click on Home / Settings Unknown column 'pm_sagepay' in 'field list' It is caused by in-correct table name pm_netcash where as RM...

View Article


Image may be NSFW.
Clik here to view.

Sending ‘Password Change’ Alert to users via SMS/Email through KANNEL SMS...

Following is a quick dirty method on how you can generate SMS / EMAIL alert when admin changes any user password [as requested by an OP]. and I think its a good idea so that users must be informed...

View Article

Image may be NSFW.
Clik here to view.

An Example of Sending SMS Alert for Daily Quota Users

    Scenario: We have daily quota users as described here. https://aacable.wordpress.com/2012/11/20/mikrotik-radius-manager-quota-base-service/ OP want to send alert when daily quota users crosses 70%...

View Article

Image may be NSFW.
Clik here to view.

Mikrotik: Using Firewall Filters to Acquire Wan Data Usage via Email

Requirements: An Operator [from Amsterdam] wanted to receive email on daily basis for the Daily usage of WAN link on the Mikrotik. Something like Mikrotik should send simple reporting email on daily...

View Article


Image may be NSFW.
Clik here to view.

Disconnect deleted user from the NAS ACTIVE list using RADCLIENT

SCENARIO: Problem: [As required by an specific OP] When the OP deleted any user account from the Radius Billing system (example Radius manager) AND if his session is ACTIVE on the NAS , he will not...

View Article

Image may be NSFW.
Clik here to view.

Sending SMS/Email Alert upon manager login

  Reference Note: As per requested by OP, following script will send email and SMS alert to manager whose account is logged in successfully in last 5 minutes at admin panel (ACP). In this example we...

View Article

Image may be NSFW.
Clik here to view.

Cisco Switch / Shot notes

  Disclaimer: This post is for my personal reference purpose only. It’s not aimed for professionals. 1# Howto to reset Cisco 3750 Switch to Factory Default To reset the switch: Press and hold the Mode...

View Article


Image may be NSFW.
Clik here to view.

Getting ‘Out of the Box’ solution with Mikrotik , BASH & mySQL

DISCLAIMER: JUST AN EXAMPLE SAMPLE ! Following post is an example of fun coding. Just to learn and explore new ways of howto get ‘out of the box’ solution. In this example I have used Mikrotik Script,...

View Article


Image may be NSFW.
Clik here to view.

Mikrotik: Script to re-connect wan pppoe-outx after X hours

Example of Mikrotik Script to execute customized function IF condition matches ! Requirements: Mikrotik should disconnect wan client pppoe-out1 , only if its uptime is above 8 hours for that single...

View Article

Image may be NSFW.
Clik here to view.

BASH Script to check modem status and alert by email/sms accordingly

  Disclaimer: This is a neat hack to query modem status and alert admin if found Down. This is no way a standard method to perform this task but I used it as it worked fine for some specific...

View Article

Image may be NSFW.
Clik here to view.

KANNEL not responding problem occasionally or after modem reset

Scenario: We have Ubuntu 12.x installed and serial modem is attached (Teltonika G10). Kannel is installed and serving as SMS gateway. Problem: Sometimes modem stops responding and when we restart the...

View Article

Image may be NSFW.
Clik here to view.

Sending Email/SMS Alert to User for Service Change Event

Reference Notes: Requirements: We want to send email/sms alert to user about his service package change with old/new package name details. Although this function is builtin in RM , but with customized...

View Article


Image may be NSFW.
Clik here to view.

CRON examples ! Focus and save yourself from embarrassment !

  To add scheduled job in linux/ubuntu, use crontab -e To view installed cron crontab -l Examples: Run Script at Every 1st day of Month. @monthly /temp/script.sh Run Script Daily at 00:00 hours...

View Article

Image may be NSFW.
Clik here to view.

MRTG graph 120M Limitation

If you are using MRTG and have gigabit network, you may notice that mrtg graphs will not show you traffic above then 120mb.  This is a common problem caused by 16-bit counter rollover. By default MRTG...

View Article


Image may be NSFW.
Clik here to view.

Routing & Natting with Failover ! Brothers in Arms

~ Mikrotik CCR.1036 Performance Statistics ~   Reference Notes: Mikrotik is a very powerful router that can perform variety of functions in one box. Sometimes It’s fun to do complex configuration with...

View Article

Image may be NSFW.
Clik here to view.

Bash script to update ‘simultaneous-use’ attribute value in BULK

Use following script if you want to change ‘Simultanous-Use‘ attribute value for *ALL* users. I made it for a specific situation and was very successfull. It will check for mysql service running...

View Article


Image may be NSFW.
Clik here to view.

Retrieve User Old/Original Password in RM

Please beware that this post is just for Example purpose Only. In real production environment you must be very careful for providing such option. Make it tightly secure, add captcha code & provide...

View Article

Image may be NSFW.
Clik here to view.

RM: Auto Renew User if Deposit available

Revision History: 24-Jun-2015 / Added Base Script 29-Jun-2016 / Added Invoice function / Fixed bug if user quote is under 1 GB limit / few minor tweaks As requested by an Valenzuela client. In radius...

View Article

Image may be NSFW.
Clik here to view.

Postfix as GMAIL relay to send email

This post was made to illustrate howto send emails via postfix mail server using Gmail. Previously I was using sendmail with gmail in combination but few times sendmail made troubles in new...

View Article
Browsing all 409 articles
Browse latest View live