How To
Summary
A cunning trick in the VIOS.
Objective
Environment
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
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
03 May 2021
UID
ibm11116999