Bootable FreeDOS Live image for BIOS upgrade

Download Link: http://pingtool.org/downloads/fd11src_live.iso

I was struggling with BIOS upgrades for our new Dell servers, as Dell didn’t provide bootable ISO image for BIOS upgrades.
After searching for DOS bootable images I have found FreeDOS project.

Unfortunately FreeDOS 1.1 LiveCD mode is not supported out of the box.

Using modified iso image from this page you can boot directly to DOS without need to install anything:

To add your own files to the iso, just use trial version of Magic ISO Maker (300MB maximum), or some similar program.
Just put your custom files in FREEDOS folder and after booting you will be able to run them in DOS environment.

After boot process is complete run dir command to see what files are in current directory.

[code]E:\FREEDOS> dir[/code]

On the following picture you can see that Dell BIOS update utility – M620-0~0.EXE is present in the directory.

The only thing left is to execute it:

[code]E:\FREEDOS> M620-0~0.EXE[/code]

This Bootable DOS ISO was tested on HP, DELL, Supermicro iKVMs and on VmWare.

Download Link: http://pingtool.org/downloads/fd11src_live.iso

Generate lines in vi editor

When you need to add multiple similar records to a configuration file (IP addresses for example), you may use vi editor to do it directly:

[code] :r! for i in $(seq 1 5); do echo “This is line \#${i}”; done[/code]

This command wil generate 5 lines:
[code]
This is line #1
This is line #2
This is line #3
This is line #4
This is line #5
[/code]

Similar command used to generate Reverse DNS entries in BIND:

[code] :r! for i in $(seq 1 5); do echo “$i PTR host${i}.domain.com”; done[/code]
[code]
1 PTR host1.domain.com
2 PTR host2.domain.com
3 PTR host3.domain.com
4 PTR host4.domain.com
5 PTR host5.domain.com
[/code]

Line numbers can be changed, modifyng the $(seq 1 5); part.

CheckPoint SPLAT to Gaia migration script

CheckPont Gaia firewalls have new text-based configuration format.
Here you can download a script, that converts most of configuration on SPLAT system to new Gaia CLI commands, that can be pasted on to new system.

Script converts following data:

Interfaces (including bonding and vlans)
Routing
DNS
NTP

Bonding parameters and timezone data have to be preconfigured.

Script does not modify anything on the system, so it can be safely run on production systems.

Donwload:
splat2gaia.sh

Zabbix SNMP – Error building asn.1 representation

When installing Zabbix on Debian 6, you may enconter an error with SNMP checks.

Error building asn.1 representation

First try to retrieve the most basic uptime value with snmpget

[code]
snmpget -v2c -c public 123.45.67.89 SNMPv2-MIB::sysUpTime.0
Cannot find module (SNMPv2-MIB): At line 0 in (none)
[/code]

If you get similar output as above you are missing package snmp-mibs-downloader.

You can install this package via apt:

[code]
apt-get install snmp-mibs-downloader
[/code]

After installation restart zabbix-server

CheckPoint Gaia SNMP configuration

Here is an example of SNMPv3 configuration in CheckPoint Gaia Appliace:

[code]
set snmp agent on
set snmp contact “zzzz@domain.com”
set snmp location “Middle of nowhere”
add snmp address 123.34.56.78
set snmp agent-version v3-Only
add snmp usm user snmpv3user security-level authPriv auth-pass-phrase 111222333 privacy-pass-phrase 555666777
[/code]

To use less secure version of SNMP v1/v2 use following commands:

[code]
set snmp agent on
set snmp contact “zzzz@domain.com”
set snmp location “Middle of nowhere”
add snmp address 123.34.56.78
set snmp agent-version any
set snmp community snmpv2community read-only
[/code]

Replace 123.34.56.78 with Firewall’s interface IP which is going to answer the SNMP requests. This command may be omitted – then SNMP will listen on all interfaces.

If you want to enable SNMPv3 only you might want to remove the default “public” community from configuration file, but after changing the agent-version to v3-Only the firewall will reject your command:

[code]
delete snmp community public read-only
NMSSNM0075 SNMP v3-Only does not accept community strings.
[/code]

To work around this issue, just execute:

[code]
set snmp agent-version any
delete snmp community public read-only
set snmp agent-version v3-Only
[/code]