News for October 2009

Perl Broken Pipe

The code was producing “Broken Pipe” errors intermittently. The only workaround I could figure out was to ignore the sigpipe.

$SIG{PIPE} = 'IGNORE';
Posted: October 29th, 2009
Categories: Perl, programming
Tags:
Comments: No Comments.

Removing Whitespace using Perl

$whitespace_beginning_of_string =~ ( s/^\s+// );
$whitespace_ending_of_string  =~ ( s/\s+$// );
Posted: October 26th, 2009
Categories: Perl, programming
Tags:
Comments: No Comments.

Sending Complimentary Test Fax

If you need to send a test fax to your fax machine. Use faxzero.com to send a complimentary fax.

Posted: October 25th, 2009
Categories: Uncategorized
Tags:
Comments: No Comments.

List Process Bound to a Port

lsof -i :
Example:
[root@example ~]# lsof -i :993
COMMAND    PID    USER   FD   TYPE DEVICE SIZE NODE NAME
rpc.statd 1659 rpcuser    7u  IPv4   4691       TCP *:imaps (LISTEN)
Posted: October 25th, 2009
Categories: macosx, os, rhel, solaris
Tags:
Comments: No Comments.

Slingbox PRO-HD Slingplayer Encoding Settings

Slingbox PRO-HD Slingplayer Encoding Settings

Video bit rate:        4800
Video frames:   Full Rate
i-Frame interval:       5
Audio bit rate: 64
Video resolution:       640x480
Video smoothness:       Sharper
Posted: October 24th, 2009
Categories: macosx, os
Tags:
Comments: No Comments.

Useful Netbackup Client Commands

# LIST ALL CLIENTS
/usr/openv/netbackup/bin/admincmd/bpplclients
# LIST WHAT IS BACKED UP ON THE CLIENT
/opt/openv/netbackup/bin/admincmd/bppllist -L -byclient ${1} | grep Include: | awk '{print $2}'
# LIST CLIENT TYPE /opt/openv/netbackup/bin/admincmd/bppllist -L -byclient ${1} | \
| grep "Client/HW/OS/Pri:" | awk '{print $3"\t"$4}' | uniq
# SHOW BACKUP SCHEDULE FOR ALL CLIENTS BY DATE
/opt/openv/netbackup/bin/admincmd/nbpemreq -predict -date MM/DD/YYYY
# SHOW BACKUP SCHEDULE FOR SPECIFIC CLIENT BY DATE
/opt/openv/netbackup/bin/admincmd/nbpemreq -predict -date MM/DD/YYYY -client_filter client-hostname
Note: NDMP displays HW/OS       "NDMP NDMP"
Note: Solaris displays HW/OS    "Solaris Solaris10"
Posted: October 22nd, 2009
Categories: os, solaris
Tags:
Comments: No Comments.

Cisco Terminal Output

Setting the number of lines for either Cisco ASA/PIX or IOS devices can be done as follows.

ASA/PIX:
Set to 23 lines - pager 23 (default)
Disable/Do not stop - no pager
<p>
IOS:
Set to 23 lines - length 23
Disable/Do not stop - length 0
<br />Example for IOS:
ios(config)#line console 0
ios(config-line)#length 0
ios(config-line)#^Z
ios(config)#line vty 0 4
ios(config-line)#length 0
ios(config-line)#^Z
Posted: October 19th, 2009
Categories: asa, cisco, ios, networking, os
Tags: , ,
Comments: No Comments.

NetApp (Toasters) Mailing List

There is a very cool unofficial NetApp Mailing list, its called toasters. Subscribe by sending an email to lists@mathworks.com. Be sure to include “subscribe toasters” in the body of the email.

Posted: October 17th, 2009
Categories: netapp, ontap, os, storage
Tags:
Comments: No Comments.

Generating Self Signed Certificate using genkey

yum install crypto-utils -y
genkey --days 365 mail.example.com
Posted: October 13th, 2009
Categories: certificates, security
Tags:
Comments: No Comments.

Generating Self Signed Certificate

# mkdir selfcert
# cd selfcert
# openssl genrsa -out ca.key 1024
Generating RSA private key, 1024 bit long modulus
.........................++++++
..................++++++
e is 65537 (0x10001)
# openssl req -new -key ca.key -out ca.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.

Posted: October 13th, 2009
Categories: certificates, security
Tags: ,
Comments: No Comments.