IBM Support

Which AIX command(s) get run if I run this command in a VIOS

How To


Summary

A cunning trick in the VIOS.

Objective

Banner_AIX_i_Linux
The objective is to see what AIX does, under the covers, when you run a command on the VIOS.

Environment

The environment here is the VIOS command line.

Steps

You may run a command on one of your VIOS partitions, and wonder which AIX commands were run "under the covers"

Well, here is a way to find out. You set the value of the shell variable CLI_DEBUG to be 33.

Thanks to Alex Abderrazag for passing this tip on to me.

Here I run a command to show me the mapping or the virtual adapter ent1

$ lsmap -vadapter ent1 -net
SVEA   Physloc
------ --------------------------------------------
ent1   U8233.E8B.100272P-V15-C62-T1

SEA                   ent3
Backing device        ent0
Status                Available
Physloc               U78A0.001.DNWHG1A-P1-C6-T1

$

Then I set the variable and run the command again.


$ export CLI_DEBUG=33


$ lsmap -vadapter ent1 -net
AIX: "lsdev -c adapter -t IBM,l-lan -s vdevice -F "name" | wc -l -c"
AIX: "lsdev -c adapter -t IBM,l-lan -s vdevice -F "name""
AIX: "lsdev -C -l ent1 -F "physloc""
AIX: "lsdev -C -c adapter -s pseudo -t sea -F "name" | wc -l -c"
AIX: "lsdev -C -c adapter -s pseudo -t sea -F "name""
AIX: "lsattr -E -l ent3 -a real_adapter -F "value""

SVEA   Physloc
------ --------------------------------------------
ent1   U8233.E8B.100272P-V15-C62-T1

SEA                   ent3
Backing device        ent0
Status                Available
Physloc               U78A0.001.DNWHG1A-P1-C6-T1

$

You can see that the output is just the same but that we can also see the AIX commands which were run, I have shown them in green.

If you want to turn the feature off you can run:

unset CLI_DEBUG

Additional Information

You can contact me: 

Document Location

Worldwide

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"HW1A1","label":"IBM Power Systems"},"Component":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF050","label":"BMC"},{"code":"PF041","label":"HMC"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
03 May 2021

UID

ibm11116999