host01 Scan the bus for new devices, and add them into EMC PowerPath lspv > /tmp/lspv.1 ; emc_cfgmgr ; lspv > /tmp/lspv.2 powermt config ; lspv > /tmp/lspv.3 host01:~# diff /tmp/lspv.1 /tmp/lspv.3 |grep hdiskpower > hdiskpower15 none None > hdiskpower16 none None > hdiskpower17 none None > hdiskpower18 none None > hdiskpower19 none None >…
Author: a blogger
Finding and fixing a corrupt ODM install
Good day. Recently it was discovered that one of the AIX servers is having an issue with a multitude of powerpath devices. When issuing a lsdev |grep hdiskpower | wc -l I was surprised to see over 3000 finds. Upon looking at what was currently being used with lspv |grep power I noticed there was…
Finding file from specific date and tarballing them
I played around with this one, and what not. In some cases you may have a ton of files in a directory, and for whatever reason you only want specific files from a specific date. This little trick might come in handy. I’ll show via an example. touch –date “2012-01-01” /tmp/start find /var/log/apache2 -type f…