~Getting Stuck as a Super Power~

There is a fantastic blog that reviews the common ways in which people get stuck.


Reviewing the list with your team will likely quickly identify who is getting stuck where just by the comments!




Siteminder Configuration View Script

Like a lot of Siteminder Admins, I spend a lot of time looking at the WebAgent.conf + SmHost.conf using standard quick UNIX command line commands:

  • ps -ef | grep LL
  • copy the path to the running WebAgent.conf
  • cat /copied/path/to/WebAgent.conf
  • copy the path the the SmHost.conf from WebAgent.conf HostConfigFile line
  • cat /copied/path/to/SmHost.conf

I want to do this using a simple function key–so I need to pipe it all through something reasonable.

so I start with this:

server (user):/home/user>ps -ef | grep LL | grep -v grep
user 8383     1  0  2016 ?        01:00:27 LLAWP /path/to/the/conf/WebAgent.conf -APACHE22

And then I get this:

ps -ef | grep LL | grep -v grep | awk ‘{print $9}’

which gives me the /path/to/the/conf/WebAgent.conf file & adding cat to that is simple:

cat `ps -ef | grep LL | grep -v grep | awk ‘{print $9}’`

and you can feed this to a grep to get the SmHost file location:

cat `ps -ef | grep LL | grep -v grep | awk ‘{print $9}’` | grep Host  HostConfigFile=”/path/to/installed/webagent/config/SmHost.conf”

which is getting fairly complicated

cat `ps -ef | grep LL | grep -v grep | awk ‘{print $9}’` | grep Host  HostConfigFile=”/path/to/installed/webagent/config/SmHost.conf”| grep Host | awk ‘{gsub(“HostConfigFile=”, “”);print}’