Forum Discussion
iApp obtain username
Meanwhile I found the solution. Following command in the implementation section will set my variable vuserid. Scan the audit log for the last user that did logon in the GUI:
set vuserid [exec cat /var/log/audit | grep "httpd(mod_auth_pam)" | grep "Administrator" | awk "{print \$11}" | tail -1]
Since normally there is only one updating the F5 environment, this command should give us the name of the user executing the iApp.
Note: the who am I command will give you your name when executing in tmsh shell, NOT in the GUI.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
