Debug VIOS padmin的命令

众所周知VIOS的命令基本上还是调用AIX的基本命令实现的,但是这些命令到底调用了哪些命令却不得而知。有时候运行条命令报错了,看着报错也是一头的雾水,不知道哪里出了问题。

例如在运行lsmap -l的命令时你有可能碰到过这样的报错:

Command did not complete.
“Determine if backing device is a PV or LV or optical.” was last subcommand run.
Command did not complete.
Determining device type failed. Command did not complete.
“Determine if backing device is a PV or LV or optical.” was last subcommand run.
Command did not complete.
Determining device type failed. Command did not complete.
“Determine if backing device is a PV or LV or optical.” was last subcommand run.
Command did not complete.

看到以上的报错相信大家跟我一样不知道是什么情况。不过没关系,当我们在padmin的命令提示符下输入以下命令:

export CLI_=33

不要问我为什么,我只能说It’s a magic.

好现在我们再运行一下命令lsmap -all看看,你会发现命令的输入会多出了类似以下的内容:

AIX: "lsdev -C -l vhost5 -F "physloc""
AIX: "lsdev -p vhost5 -F "name" | wc -l -c"
AIX: "lsdev -p vhost5 -F "name""

看到了么,这就是lsmap调用的AIX命令,根据这些命令相信大家应该很容易找到问题的所在了:)



Tags: ,

No comments yet.

Leave a Reply

无觅相关文章插件,快速提升流量