Skip to content

Instantly share code, notes, and snippets.

@jeffgeiger
jeffgeiger / gatherlogs.samples.sh
Created May 23, 2013 18:51
Modified version of the stock gatherlogs.samples.sh GPFS script. Switched from RSH to SSH.
#!/bin/ksh
#
# Sample script to gather, merge and sort mmfs.log files
# from nodes listed in file /tmp/gpfs.allnodes
#
# /tmp/gpfs.allnodes has been created by the user of this script
# and contains the host names of the nodes that the
# mmfs.log files are required from. No blank lines.
#
# Output file is called: /tmp/logs.sorted on node script is executes from
@jeffgeiger
jeffgeiger / munin-node.sh
Last active April 7, 2022 20:05
A generic stand-in for munin-node written to run on AIX, may work elsewhere.
#!/bin/ksh
#Connected - echo basic info
echo "# munin node at `hostname`"
#watchdog timestamp
WD_TIME=$(perl -e 'print time')
@jeffgeiger
jeffgeiger / AIX_KRB5LDAP_In_A_Nutshell
Last active May 18, 2017 09:59
Rough outline of how I set up Kerberos and LDAP integration between Active Directory and IBM AIX using the KRB5LDAP load module.
Environment:
Tested with AIX 6.1 TL 8(6100-08-00-0000) and TL 6 (6100-06-01-1043) with Active Directory on 2008R2 domain controllers at the 2003 functional level.
Prerequisites:
DNS: A and PTR records for AIX host in Windows DNS server.
AD: Computer object matching AIX hostname in Active Directory.
AD: A target OU that will contain AIX objects.
AD: At least one “Unix enabled” user in the target OU. (Separate document)
AD: A service account user that will be used for LDAP binds to AD.
AIX: Ensure that the `hostname` command returns the FQDN of the AIX server.