Skip to content

Instantly share code, notes, and snippets.

Device is a Hard disk
Enclosure # : 0
Slot # : 0
SAS Address : 5001e4f-2-136e-a685
State : Ready (RDY)
Size (in MB)/(in sectors) : 953869/1953525167
Manufacturer : ATA
Model Number : Hitachi HUA72101
Firmware Revision : A74A
Serial No : GTA000PAGPN47A
@phil21
phil21 / bmc
Created January 16, 2016 20:36
#!/usr/bin/perl
#
# bmc tool - a user friendly front-end to probe, configure, and manage the BMC
#
# Copyright (c) 2012 Dell Inc. All rights reserved.
#
# This tool is part of the PowerEdge C datacenter system management tools
# from http://poweredgec.com
#
# [email protected]
capacity operations bandwidth
pool alloc free read write read write
------------------------ ----- ----- ----- ----- ----- -----
sneakernet 507G 14.0T 0 453 0 55.1M
wwn-0x5000c50087411fae 254G 7.00T 0 228 0 27.7M
wwn-0x5000c50087414b80 254G 7.00T 0 225 0 27.4M
------------------------ ----- ----- ----- ----- ----- -----
#!/usr/bin/perl -w
# Whitelists and administrators admin IP with various settings
use strict;
use Getopt::Long;
# Defaults (0 for unlimited)
my $def_softo = '24h'; # Removes the IP when it has last been seen n hours ago
my $def_hardto = '1y'; # Removes the IP when a specified time period has passed ignoring the soft timeout value (max age)
# The way of the array.. This bitch is raw ready and raring to go. Mathethatically efficiency baby!
my @a = [ 0, #s, seconds (integer is multiplication factor of seconds over an average time period
60, #m, minutes
3600, #h, hours
43200, #d, days ( this one off)
13119200,#m, months (this one is slight off..)
157430400#y, years (this one off)
]
@phil21
phil21 / Dell H200
Created December 18, 2015 08:32
Dell H200 flashed to LSI IT P20
root@cybernet:/usr/local/src/old/Installer_P20_for_Linux/sas2flash_linux_i686_x86-64_rel# ./sas2flash -c 0 -list
LSI Corporation SAS2 Flash Utility
Version 20.00.00.00 (2014.09.18)
Copyright (c) 2008-2014 LSI Corporation. All rights reserved
Adapter Selected is a LSI SAS: SAS2008(B2)
Controller Number : 0
Controller : SAS2008(B2)
PCI Address : 00:05:00:00