How to figure out an Environment Entry from Websphere via Unix shell -


i develop using websphere 8.5 in windows machine tests , prod websphere 8.5 on mainframe. application myapp depends on system environment named myapp_env. basicaly, system environment tells environment running (dev, test, prod). in windows, set system environment. when application goes mainframe users tests, in websphere 8.5 running on mainframe, such variable set in application servers > myserver > process definition > servant > environment entries. have access test websphere admin console can see it. local reasons, don't have access prod websphere admin console , want see variable value. have access ishell tried 4 alternatives, (1) echo $myapp_env, (2) set myapp_env, (3) env myapp_env, (4) printenv myapp_env. tried find looking 1 one after simple printenv , env no success. so, question how can discovery value of myapp_env via unix shell? sure variable there 1 of websphere servant.environment entries how print it? guess can't see variables because doesn`t belong environment variables of shell running terminal. but, certainly, there must exist way see environment variables available other process different terminal opened.

although don't have access admin console of prod machine, i'm assuming have ability run wsadmin on unix shell. if so, use text editor create script file named myscript similar following , run using: wsadmin -f /pathtoscript/myscript.jacl

#get config id of server, change cell, node , server values env set server1 [$adminconfig getid /cell:mycell/node:mynode/server:myserver] # assume there 1 process definition, if there more, need loop on them set proc [$adminconfig list javaprocessdef $server1] # list of environment entries process definition set envs [lindex [$adminconfig showattribute $proc environment] 0] # loop on them , display name , value of each foreach propentry $envs {   puts [$adminconfig showattribute $propentry name]   puts [$adminconfig showattribute $propentry value] } 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -