How-To

Jun 192013
 
Update FreeBSD source tree using Subversion (svn)

First you will need Subversion installed on the system, to do this you can install it from the ports or packages.

From ports:

# cd /usr/ports/devel/subversion
# make install

From package:

# pkg_add -r subversion

You can accept default port configuration options. Once installed you can then update the FreeBSD source tree using following command:

# svn co svn://svn.freebsd.org/base/stable/9 /usr/src
MORE
Jun 182013
 
SolarWinds Orion NCM, scripts and prompt

Sometimes you are going through scripts and these guys sometimes go to context where it actually changes prompt and that is causing NCM to stop understand what’s going on and in turn to disconnect from device and script not completing.

To suppress prompt checking use:

${DisablePromptDetection}
and then at the end
${EnablePromptDetection}

It is important to enable checking back as … MORE

May 042013
 
Upgrading Midnight Commander (mc)

Compilation of Midnight Commander (mc) from ports usually goes with no issues. But when it comes to installing port it may actually get stuck on installation of FISH (FIles transferred over SHell protocol). At that point if you are not quick enough it will kill your box or at least make it very difficult to operate further.

To fix it … MORE

Apr 172013
 
SolarWinds Orion WirelessSwitchPortMapping (table)

Below is a SQL query to create WirelessSwitchPortMapping (view) in Orion NPM database:

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[WirelessSwitchPortMapping]
AS
SELECT
ISNULL(wl_con.Controller_Name,'') as [Controller Name],
ISNULL(wl_con.Controller_IPAddress,'') as [Controller Source IP Address],
CASE WHEN wl_con.ID IS NOT NULL THEN CAST(n.[Description] AS NVARCHAR(512)) ELSE ''
END AS [Controller Description], -- description from Nodes table, it can be 
MORE