0

How-to : Create Zend Framework 1.x based project with home.pl as hosting platform

-

I’m using home.pl to host some of my projects. Also, this is test platform for some of the application I work on. At some point I started using Zend Framework and when tried to use home.pl to host Zend Framework-based project went into bit of trouble. By default there is no shell access, so no way to manipulate httpd settings.

After few emails with Technical Support from home.pl I received step-by-step instructions from them on how to create Zend Framework-based project and make it run correctly, so I thought it is worth to share.

(more…)

0

Tips & Tricks : Burnflash on ShoreTel ShoreGear switches

-

Sometimes when ShoreTel ShoreGear switches connected to infrastructure might have old version of the firmware. In theory ShoreTel HQ Director should upgrade firmware on devices to bring it to current version across the infrastructure. However sometimes that fails and there is a need to enforce apropriate firmware on device.

In order to enforce firmware on ShoreTel switch best is to logon to ShoreTel HQ Director server and issue burnflash command as shown below:

C:\Program Files\Shoreline Communications\ShoreWare Server>burnflash -switch 192.168.20.31
Shoreline Communications BurnFlash Utility (Version 14.21.4905.0)
  Burning flash for switch "192.168.20.31" (192.168.20.31).
  Current switch info:
      Internet Address: 192.168.20.31
      Ethernet Address: 00-10-49-00-00-00
Product Code: IPBX-SG4_T1
Firmware Version: 12.5.8107.0
           Patch Level: 0
       BootRom Version: 1.1.3.17
               Up Time: 0 days 00:28:21 (booted from Flash)
          POST Version: 3
TMS 5460: NccBurnFlash(...,0,192.168.20.31): Start
TMS 5460:                       : FileA Type=2,Unit=0,Language=
TMS 5460:                       : FileB Type=2,Unit=2,Language=en-US
TMS 5460: NccBurnFlashWorker2[192.168.20.31]: WSASocket() --> 1616 (Error: 0)
   12.50 MBytes (100%) transferred to flash unit 0.
TMS 5460: NccBurnFlashWorker2[192.168.20.31]: WSASocket() --> 1616 (Error: 0)
    1.13 MBytes (100%) transferred to flash unit 2.
  Rebooting switch.
TMS 5460: NccBurnFlash[192.168.20.31]: End. hr = 0x0
  Waiting up to 180 seconds for switch to start.
  Waited 103.4 seconds ... connected.
  Current switch info:
      Internet Address: 192.168.20.31
      Ethernet Address: 00-10-49-00-00-00
          Product Code: IPBX-SG4_T1
      Firmware Version: 14.21.4905.0
           Patch Level: 0
       BootRom Version: 1.1.3.17
               Up Time: 0 days 00:00:00 (booted from Flash)
          POST Version: 3

IP address used in burnflash command is just an example and should be replaced with appropriate devide IP

Sometimes burnflash process has to be repeated twice to upgrade firmware correctly.
After burnflash power off device for 20 seconds and power back on.

0

Config snippets : Cisco : Configuring SNMPv3

-

Create Read Only SNMPv3 user – IOS

snmp-server group viewers v3 auth
snmp-server user snmpView viewers v3 auth md5 uHNKmuLP0lXOp8ODFkmJ
snmp-server group viewers v3 auth read viewConfig
snmp-server view viewConfig system included
snmp-server view viewConfig internet included
snmp-server view viewConfig mib-2 included
snmp-server view viewConfig cisco included
snmp-server view viewConfig ciscoConfig included
snmp-server view viewConfig ciscoImageMIB included
snmp-server view viewConfig snmpMIB included

Create Read Write SNMPv3 user – IOS

snmp-server group writers v3 auth
snmp-server user snmpWrite writers v3 auth md5 jB7HCiNBoGsk5qgfasHQ
snmp-server group writers v3 auth write writeConfig
snmp-server view writeConfig system included
snmp-server view writeConfig internet included
snmp-server view writeConfig mib-2 included
snmp-server view writeConfig cisco included
snmp-server view writeConfig ciscoConfig included
snmp-server view writeConfig ciscoImageMIB included
snmp-server view writeConfig snmpMIB included

Create Read Only SNMPv3 user – ASA

snmp-server group viewers v3 auth
snmp-server user snmpView viewers v3 auth md5 uHNKmuLP0lXOp8ODFkmJ
snmp-server host inside 0.0.0.0 version 3 snmpView

NOTE: Please keep in mind that certain ACLs might require modification in order to allow SNMP protocol access.

0

Tips & Tricks : Add Sublime Text to right-click menu in Windows

-

To make using Sublime Text 3 more convenient, you can add this to right-click context menu.

It will simplify ability to open any file and/or folder with Sublime Text right from Windows Explorer.

@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe

rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f

rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
pause
0

Config snippets : Cisco : Testing RADIUS authentication on IOS

-

Recently was migrating RADIUS server on Windows from one machien to another. Once new serer was ready had to reconfigure Cisco router to authenticate remote users against new RADIUS. After pointing Cisco to new RADIUS machine made a quick test to check if router can authenticate without any issues. Here is how ot do it quickly:

(more…)

16

Tips & Tricks : Enabling Wireless Network in Windows Server 2012 Datacenter edition

-

If you want to use Windows Server 2012 Datacenter on workstation/laptop (sometimes it is handy to have mobile workstation with server operating system) you might experience issues with wireless networking. Even if driver for wireless network adapter is installed you might not be able to connect to any wi-fi network.

In order to use wireless in Windows Server 2012 Datacenter additional feature has to be installed: Wireless LAN Service. This can be installed from PowerShell prompt using add-windowsfeature wireless-networking command, as shown on screenshot below:
win2012-wireless-01

Once installed and server rebooted make sure that WLAN AutoConfig service is started, as shown on screenshot below:

(more…)

0

Code snippets : Passing credentials to Get-WmiObject in PowerShell

-

If there is a need to pass specific credentials to Get-WmiObject in order to gather information from remote machine, here is how you can do it:

$LAdmin = "DOMAIN\Administrator"
$LPassword = ConvertTo-SecureString "Password!" -AsPlainText -Force
$Credentials = New-Object -Typename System.Management.Automation.PSCredential -ArgumentList $LAdmin, $LPassword

Once $Credentials object is created you can easily use it to gather information from remote PC:

Get-WmiObject -ComputerName $computername -Class Win32_VideoController -Namespace "root\cimv2" -Credential $Credentials
0

Games : Codes : Skyrim – Room with all items

-

In Skyrim there is room created by Developers which contains all possible items you can find in the game 🙂

To teleport your character to that room use command:

  • coc qasmoke from game console

Once you want to leave that place use command:

  • coc whiterun from game console

That will teleport you to Whiterun and you can continue game 🙂

0

How-To : openSUSE & keepalived for Firewall HA

-

Current expectations from all type of systems and services is to be available without any disruption. One of mission critical systems is gateway/firewall. Of course you can use multiple products available on the market. One of them is openSUSE, which is perfect to act as gateway/firewall between Internet and production systems. So, how to provide redundancy for openSUSE and same time be able to keep it up-to-date without any disruption for production systems?

openSUSE 13.2 with keepalived provides all technology required to make your firewall high-available.

Here is diagram of Lab created to configure and test openSUSE with keepalived:

(more…)

0

Cryptocurrency : ArcticCoin (ARC) MasterNode Setup

-

If you interested in cryptocurrency and want to support certain coin and community as well as earn some money, you might be interested in running MasterNode for chosen coins.

In this article I put together some quick guide how to setup ArcticCoin MasterNode. I have this MasterNode setup and running on dedicated VPS with Ubuntu Linux 14.04 64-bit.

So, once you identified hosting provider of your choice, check if you can deploy VPS with that operating system.

Once you have server deployed you can SSH to it as root and follow commands below…

(more…)

Page 1 of 1712345...10...Last »