Re: OMi Tools - Find out who is running a specific tool on BSM/OMi (260 Views)
Reply
Advisor
nguyenthaihung
Posts: 18
Registered: ‎09-15-2011
Message 1 of 8 (295 Views)
Accepted Solution

OMi Tools - Find out who is running a specific tool on BSM/OMi

[ Edited ]

hi all,

in case that an user is running a tool which use a specific script , how can I  figure out which user is running the tool on that script.

 

Thank in advance.

 

 

Please use plain text.
Advisor
nguyenthaihung
Posts: 18
Registered: ‎09-15-2011
Message 2 of 8 (260 Views)

Re: OMi Tools - Find out who is running a specific tool on BSM/OMi

Does anyone can help me this?

Please use plain text.
Honored Contributor
Ram_21
Posts: 3,630
Registered: ‎04-30-2003
Message 3 of 8 (252 Views)

Re: OMi Tools - Find out who is running a specific tool on BSM/OMi

Hello

 

I believe that when you launch the tool from the BSM Console you will see the details of the user who is going to run the tool in the "Preview Tool Execution" screen. It will be listed as "As User".

 

You can also find the details of the user that the tool is set to run in the actual tool definition itself in the

Admin -> Operations Management -> Operations Console -> Tools

To view this I believe you will need proper user rights in BSM/OMi server.

 

Hope this helps.

Regards

Ram

Please use plain text.
Advisor
nguyenthaihung
Posts: 18
Registered: ‎09-15-2011
Message 4 of 8 (242 Views)

Re: OMi Tools - Find out who is running a specific tool on BSM/OMi

thanks Ram_21!

 

Specifically, I have an example: user X is running tool A that triggers a script named S.bat, how do I retrieve the username of user X ( listed as "As User")  on S.bat script.

 

Regards.

Please use plain text.
Honored Contributor
Ram_21
Posts: 3,630
Registered: ‎04-30-2003
Message 5 of 8 (233 Views)

Re: OMi Tools - Find out who is running a specific tool on BSM/OMi

[ Edited ]

Hello

 

This is what I was referring in my last post. The user who is running the batch file will get listed in the preview screen.

 

 

Untitled.png

Hope this helps.

Regards

Ram

Please use plain text.
Advisor
nguyenthaihung
Posts: 18
Registered: ‎09-15-2011
Message 6 of 8 (222 Views)

Re: OMi Tools - Find out who is running a specific tool on BSM/OMi

[ Edited ]

hi Ram_21,

 

I'm sorry for making you misunderstand my question and wasting ur time.

 

Actually, 

My example below, when user "ndduc" (showed in As User:) run Test tool which will call Test.pl script. Then when Test.pl script execute how can I get user ndduc in script at runtime, for example, have a script like this:

 

Test.pl

-----------------------------------

........

print $operatorName; # will print "ndduc"

.....

-----------------------------------

 

test.png

 

 

 

 

Please use plain text.
Honored Contributor
Ram_21
Posts: 3,630
Registered: ‎04-30-2003
Message 7 of 8 (211 Views)

Re: OMi Tools - Find out who is running a specific tool on BSM/OMi

Hello

 

Ah as you can see I obviously misunderstood your question. Check this link to see if it helps.

 

http://www.techrepublic.com/article/obtain-user-group-and-process-information-in-perl/5974002

 

It looks like the getlogin() may do this for you. I have not done much perl scripting and so you will have to test this to see if it works for you.

 

Hope this helps or you get a better answer :)

Regards

Ram

Please use plain text.
Advisor
nguyenthaihung
Posts: 18
Registered: ‎09-15-2011
Message 8 of 8 (202 Views)

Re: OMi Tools - Find out who is running a specific tool on BSM/OMi

[ Edited ]

hi RAM_21,

 

It works! Thanhk you very much for your answer.

  

By the way, I have one more question

Does BSM/OMi have any log specifying the date/time, which tool.... the user executed.

 

Thanks again.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation