IBM Support

WASX7015E error when running AdminTask command from wsadmin CLI

Troubleshooting


Problem

wsadmin>print AdminTask.tklmKeyList ('[-attributes "{state active}" -v y]') WASX7015E: Exception running command: "print AdminTask.tklmKeyList ('[-attributes "{state active}" -v y]')";

Symptom

Unable to execute CLI commands. Error refers to AdminTask problem. Doing equivalent actions in the Tivoli Key Lifecycle Manager GUI work fine.

Resolving The Problem



Full error seen when trying to run CLI command will be something like the following:

wsadmin>print AdminTask.tklmKeyList ('[-attributes "{state active}" -v y]')
WASX7015E: Exception running command: "print AdminTask.tklmKeyList ('[-attributes "{state active}" -v y]')";


exception information:
com.ibm.bsf.BSFException: exception from Jython: Traceback (innermost last):
File "<input>", line 1, in ?
NameError: AdminTask


This error is most likely caused by not logging into the wsadmin environment with a valid user. When you get authenticated, you still end up in the wsadmin shell. But you should see error messages that indicate that AdminTask will not be available, like in the screenshot below. Make sure you log into the wsadmin shell using a proper userid and password and AdminTask commands will be able to be executed.

[{"Product":{"code":"SSWPVP","label":"IBM Security Key Lifecycle Manager"},"Business Unit":{"code":"BU008","label":"Security"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"1.0","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Product Synonym

TKLM

Document Information

Modified date:
16 June 2018

UID

swg21391323