Open nicolas-tallet opened 4 years ago
xdsh srd01c01-adm --devicetype DDNSFA::ES18K -l user "show cont"
user
is one of long name options for xdsh command, maybe try to setup username on the node definition
chdef srd01c01-adm username=user
then for xdsh
command, remove -l
options
Hi @cxhong , thanks for the tip.
Unfortunately, I dont seem to be able to assign the user
property to the xCAT object as it is missing a nodetype
:
$ chdef srd01c01-adm username=user
Error: [p3mgt01]: Cannot set the attr='username' attribute unless nodetype value is ivm or hmc or ppc or mm or websrv or pdu or switch.
No object definitions have been created or modified.
I don't feel like any of the suggested Node Types could apply to this particular object (DDN SFA storage controller) - except HMC, maybe?
What do you think? Thanks.
maybe should be switch
,
--devicetype
is used for switch nodetype.
Hi @cxhong ,
Tried the suggested setup to solve the "Invalid options: user" warning message issue, but that doesn't seem to improve the situation:
Defined object as Switch (or Management Module, which doesn't make a difference) and defined username as attribute of the object:
# lsdef srd01c01-adm
Object name: srd01c01-adm
groups=srd01ctl,srd01,srdctl,scratchrd
ip=X.X.X.X
nodetype=switch
otherinterfaces=srd01c01-svc:X.X.X.X
postbootscripts=otherpkgs
postscripts=syslog,remoteshell
switch=r806e01-svc
switchport=31
username=user
Specific user is apparently not taken into account when calling xdsh
on the object:
$ xdsh srd01c01-adm --devicetype DDNSFA::ES18K "show cont"
[p3mgt01]: srd01c01-adm: Permission denied (publickey,password).
Am I doing something wrong? Any other idea?
Thanks.
I'd like to define a customized Device Type to query DDN SFA controllers.
With an as-simple-as-possible configuration file definition:
the XDSH basically works but the following two error message keep showing at the beginning / at the end of the output:
user
needs to be specified as no root connection is allowed):Example:
Would you be able to advise on how to proceed to fix those two error messages?
Thanks in advance.
Note: xCAT Version 2.15 on ppc64le Platform: