Tag: script

raspberry pi – dnsutils

Rasbian wheezy is not providing DNS check mechanisms per default. To get dig and nslookup on the system the following packet need to be installed: sudo apt-get install dnsutils

Obtain information from Cisco via powershell and SSH

Just to see how many concurrent VPN sessions are open an a Cisco router the following OIDs should help: cikeGlobalActiveTunnels – .1.3.6.1.4.1.9.9.171.1.2.1.1.0 cipSecGlobalActiveTunnels – .1.3.6.1.4.1.9.9.171.1.3.1.1.0 If it still doesn’t work, try to walk the following object: .1.3.6.1.4.1.9.9.171 Ttaken from https://supportforums.cisco.com/thread/180508…

dyndns update via bash

Sometimes it comes handy to update your dynamic IP onĀ  DynDNS or namecheap via bash file. This is a simple solution on how to do that: A improved script: #!/bin/bash # # DynDNS for Namecheap # including check between externel…

up count with fix character length

Sometimes it is quite important to have all the time the same length of characters. A small bash script can help and with “printf” the beginning indicated has always the same length. #!/bin/bash count=0 #counter equals zero # star loop…

Ping – Host Check

A short script to perform a continuous ping to check the availability of a certain server / host. execute: ./pingscript.sh <ping count> <target> <additional delay> ./pingscript 5 192.168.0.1 25   #!/bin/bash # set varables COUNT=$1 TARGET=$2 DELAY=$3 COUNT=0 LOGFILE=”./host_check.log” #…

static dns entries via script

Sometimes you have do add static DNS names to IP addresses. For Example all your network equipment, switches routers … are mostly not able to register themselves into Windows DNS. I had a similar problem. I hat a lot of…

tar via SSH

How to backup files over ssh ? A nice way of backuping files from one machine to an other is a zipped tar file transferred via ssh. # tar zcvf – /var/www | ssh root@backupserver “cat /backup/www-backup.tar.gz” Your output will…