Postfix tips

Fast and dirty parsing of /var/log/mail.log.

It shows: date, sender, recipient, mail id, status

 

Daewoo Tacuma ECU

KEMSCO                                                                                                                                                             DAEWOO
1AEK

I have a problem with my Tacuma ECU. Randomly MAP sensor stalls at 115KPa. Triple checking sensor and wires shows that it works and I suspected that ADC in ECU is problematic. The easiest way to repair is to get spare ECU, read flash (AM29F200BB – chip#1) of old one and program it to new ECU.

Tacuma1 Tacuma2 Tacuma3 Tacuma4 Tacuma5 Tacuma5

Qmail abracadabras

Sent emails from: sender@example.com

Sent emails from: 10.11.12.13

Ubuntu 12.04 Stuck at “Stopping Userspace bootsplash”

Virtual machine downloaded from windows azure

bootsplash0

1. Edit /etc/default/grub

2. Remove bloatware

If you are unable to enter rescue mode – use SystemRescueCd
bootsplash1

 

Pure-FTP config on Windows Azure host

Command:      MLSD
Error:               Connection timed out
Error:               Failed to retrieve directory listing

1. Add ftp endpoints
azure-endpoint

2.  Configure Pure-Ftp

 

EMC VNX SMI installation

C:\Program Files\EMC\SYMCLI\bin>

C:\Program Files\EMC\SYMCLI\bin>cd “C:\Program Files\EMC\ECIM\ECOM\bin”

C:\Program Files\EMC\ECIM\ECOM\bin>TestSmiProvider.exe

Connection Type (ssl,no_ssl,native) [no_ssl]:

Host [localhost]:

Port [5988]:

Username [admin]:

Password [#1Password]:

Log output to console [y|n (default y)]:

Log output to file [y|n (default y)]:

Logfile path [Testsmiprovider.log]:

Connecting to localhost:5988

Using user account ‘admin’ with password ‘#1Password’

########################################################################

##                                                                    ##

##                  EMC SMI Provider Tester                           ##

##   This program is intended for use by EMC Support personnel only.  ##

##   At any time and without warning this program may be revised      ##

##   without regard to backwards compatibility or be                  ##

##   removed entirely from the kit.                                   ##

########################################################################

slp    – slp urls                     slpv    – slp attributes

cn     – Connect                      dc      – Disconnect

disco  – EMC Discover                 rc      – RepeatCount

addsys – EMC AddSystem                remsys  – EMC RemoveSystem

refsys – EMC RefreshSystem

ec     – EnumerateClasses             ecn     – EnumerateClassNames

ei     – EnumerateInstances           ein     – EnumerateInstanceNames

ens    – EnumerateNamespaces          miner   – Mine classes

a      – Associators                  an      – AssociatorNames

r      – References                   rn      – ReferenceNames

gi     – GetInstance                  gc      – GetClass

ci     – CreateInstance               di      – DeleteInstance

mi     – ModifyInstance               eq      – ExecQuery

gp     – GetProperty                  sp      – SetProperty

tms    – TotalManagedSpace            tp      – Test pools

ecap   – Extent Capacity              pd      – Profile Discovery

im     – InvokeMethod                 active  – ActiveControls

ind    – Indications menu             tv      – Test views

st     – Set timeout value            lc      – Log control

sl     – Start listener               dv      – Display version info

ns     – NameSpace                    vtl     – VTL menu

chp    – consolidated host provider menu

q      – Quit                         h       – Help

########################################################################

Built with EMC SMI-S Provider: V4.6.2

Namespace: root/emc

repeat count: 1

(localhost:5988) ? addsys

Add System {y|n} [n]: y

ArrayType (1=Clar, 2=Symm) [1]:

One or more IP address or Hostname or Array ID

Elements for Addresses

IP address or hostname or array id 0 (blank to quit): 10.xx.xx.ab

IP address or hostname or array id 1 (blank to quit): 10.xx.xx.cd

IP address or hostname or array id 2 (blank to quit):

Address types corresponding to addresses specified above.

(1=URL, 2=IP/Nodename, 3=Array ID)

Address Type (0) [default=2]:

Address Type (1) [default=2]:

User [null]: admin

Password [null]: xxxxxxxxx

++++ EMCAddSystem ++++

OUTPUT : 0

Legend:0=Success, 1=Not Supported, 2=Unknown, 3=Timeout, 4=Failed

5=Invalid Parameter

4096=Job Queued, 4097=Size Not Supported

Note: Not all above values apply to all methods – see MOF for the method.

System : //10.xx.ab.ef/root/emc:Clar_StorageSystem.CreationClassName=”Clar_Stora

geSystem”,Name=”CLARiiON+CKM00133801649″

In 12.599952 Seconds

Please press enter key to continue…

OpenVPN on OpenWRT router

Note underscore! Seems that OpenWrt does not like hyphen

config openvpn ‘lan’
option script_security ‘2’
option enable ‘1’
option remote ‘212.x.y.z’
option port ‘1194’
option proto ‘udp’
option dev ‘tap0’
#
option persist_key ‘1’
option persist_tun ‘1’
option keepalive “10 120”
#
option comp-lzo “yes”
#
option secret “/etc/config/static.key”
#
option user ‘nobody’
option group ‘nogroup’
option status ‘/tmp/openvpn-status.log’
option verb ‘3’
#

Or