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}’

 

 

 

Advertisements

Leave a comment

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s