1846639 Members
1848 Online
110256 Solutions
New Discussion

mxnodesecurity

 
BLETARD Philippe
Occasional Contributor

mxnodesecurity

Hello,
I've defined some custom commands in HP SIM that must be run as user hpsim, hpsim2 or root...
I've modified the xml definition file for each of them ( field)...
Now my question; these commands will be run via SSH, so for each user, I've an SSH access (running ok), and I've seen that there is the "./mxnodesecurity" that should help me to do what I want...
So, what I've done on the CMS:

I've typed :
./mxnodesecurity -a -p ssh -c hpsim:apasswd -n mymachine
./mxnodesecurity -a -p ssh -c hpsim2:apasswd -n mymachine
./mxnodesecurity -a -p ssh -c root:apasswd -n mymachine

But seems that you can only use this to authorize one user because when I type:
./mxnodesecurity -l -p ssh -n mymachine

I see:

TARGET NODE PROTOCOL NAME PASSWORD
mymachine ssh root ********

So I'm getting a 'SShAuthentication failure' for the commands which should be run as hpsim or hpsim2
I suppose there's an easy way of doing this ?