system
June 19, 2014, 7:27pm
1
(imported topic written by xdaxdb)
Is there anything wrong with the relevance substitution in this action? I can’t figure out why I keep getting the error:
Command succeeded action parameter query “user” with description “User ID you wish to modify” (action:261)
Command succeeded action parameter query “password” with description “password of User ID you wish to modify” (action:261)
Command failed (Relevance substitution failed) wait echo -e “{parameter “secret” of action}\n{parameter “secret” of action}” | (passwd --stdin {parameter “user” of action}) (action:261)
I suspect the quotes but I can’t figure out how to make them work.
wait echo -e "{parameter "secret" of action}\n{parameter "secret" of action}" | (passwd --stdin {parameter "user" of action})
greenb
June 20, 2014, 6:51am
2
(imported comment written by BrianPGreen)
Is parameter “secret” every queried as part of the action too?
system
June 20, 2014, 6:43pm
3
(imported comment written by xdaxdb)
I still don’t know why I was getting that specific error. But my REAL problem was that the line start with /bin/bash -c, like this:
wait /bin/bash -c "echo -e "{parameter "secret" of action}\n{parameter "secret" of action}" | (passwd --stdin {parameter "user" of action})"
And ultimately, the command that worked correctly for me on RHEL 5 & 6 servers was:
wait /bin/bash -c "echo "{parameter "secret" of action}" | passwd --stdin {parameter "user" of action}"
I this is based on something I saw in this thread:
https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014748508&ps=25
jgstew
July 27, 2014, 2:42am
4
(imported comment written by jgstew)
Try this:
http://bigfix.me/fixlet/details/3673
You must download the file from bigfix.me and either import it into the console, or look at the XML. There is some javascript magic happening to make the “secret” work. Also, the “secret” parameter is a “secure parameter” which requires IEM 9.x