0

Code snippets : MySQL : Change root password after installation

-

By default when I installed mysql on openSUSE, root password for mysql access was blank. First thing then is to change password as this might pose security issue. First of all login to openSUSE using root account and then:

(more…)

0

Simple L2L IPsec VPN on Cisco

-

This is simple Lab environment I built when was working on IPsec VPN tunnel between our internal network environment and 3rd party vendor systems. As we had some issues with establishing IPsec communication, to make sure that everything is fine on my side I start replicating live environment in Lab. To build test environment quick I use GNS3 as platform to run Dynamips hypervisor for IOS. That speeds up whole process of preparation and testing.


(more…)

0

RANCID configuration file in-depth

-

/etc/rancid/rancid.conf

In this article you can find description of parameters in rancid.conf. By changing parameters in this file you can impact the way RANCID will behave, collect and process collected information. You can also define type of version control repository and email notifications as well as many other option.

(more…)

0

How-to : Nagios installation on openSUSE 11.4 “Celadon”

-

Quick installation how-to for Nagios on openSUSE 11.4 “Celadon” platform. Same procedure applies to other versions of opeSUSE platform. I’m using version 11.4 for my LAB purposes.

(more…)

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

Code snippets : CMD : Dump Windows Server DHCP configuration

-

If you need to capture configuration of Windows-based DHCP server for documentation or review purposes, this might be handy:

netsh -r lab-dc-01 dhcp server dump > C:\dhcp-lab-dc-01.txt

NOTE: lab-dc-01 in example command is name of the Windows server which has DHCP installed.

Example DHCP server dump from Windows Server 2008 R2 you can see here. It contains one scope for subnet 172.16.90.0/24, option for DNS and default gateway defined.

0

Config snippets : Cisco : DHCP on Catalyst switches

-

Usually I tend to create DHCP server on Windows Server. However, sometimes there is no server on site. Only what I have are network devices, workstations and voip phones. In those cases I used to create DHCP server on switches. As environment I operate in contains mainly Cisco devices, each location has at least one or more Cisco Catalyst switches (2960 or 3560) it is possible to provide DHCP service using IOS features. Example contains DHCP configuration for network with different VLANs for data, voice and printers.

Below is short description and set of commands demonstrating how to setup:

  • DHCP scopes
  • Exclusions
  • Define DHCP helper on the interface
  • Check status of DHCP assignments

(more…)

0

Code snippets : VBscript : Ping all computers from Active Directory OU

-

Here is quick script which connects to Active Directory, reads all computer accounts from Organization Unit (OU) indicated in script and then pings all computers found in that OU. It might be handy if all server accounts are located in one OU.

(more…)

0

Code snippets : VBscript : Change local admin username and password

-

Script I used as computer statup script pushed via GPO. It renames local Administrator to Admin and sets password for Admin account to one specified in script.
(more…)

0

Config snippets : Cisco : Enable SSH

-

Configuration snippet I use to enable SSH on Cisco 2811 ISR and Catalyst 3560, but it will work on all Cisco IOS devices with appropriate IOS image which allows SSH to be enabled (IOS which has k9 in image name contains crypto compnents which allow to enable SSH).

(more…)