Anda di halaman 1dari 3

Every wondered what AIX commands the VIO server executes for you?

Configure new devices (AIX cfgmgr) Configure new devices from a parent device List the devices of type adapter List only virtual devices of type adapter List only virtual devices of type disk List the attributes of a device List the Vital Product Data (VPD) of a device List the range of values for a device attribute List the physical and virtual adapter slots List the parent device List the children devices List NPIV capable Fibre Adapters (HBA) List all the virtual devices connected to all virtual hosts List the virtual devices connected to a virtual host List all the NPIV virtual devices connected to a virtual host List all Shared Ethernet Adapters (SEA) Create a VSCSI mapping from hdisk10 to vhost10 Create an NPIV mapping fcs0 to vfchost10

export CLI_DEBUG=33 cfgdev cfgdev -dev fcs0 lsdev -type adapter lsdev -virtual -type adapter lsdev -virtual -type disk lsdev -dev fcs0 -attr lsdev -dev fcs0 -vpd lsdev -dev hdisk0 -range queue_depth lsdev -slots lsdev -dev hdisk10 -parent lsdev -dev fcs0 -child lsnports lsmap -all | more lsmap -vadapter vhost0 lsmap -all npiv lsmap -all -net -field sea mkvdev -vdev hdisk10 -vadapter vhost10 -dev hdisk10_rootvg vfcmap -vadapter vfchost10 -fcp fcs0

Remove and Delete a VSCSI mapping device rmdev -dev hdisk10_rootvg Remove but leave Defined a VSCSI mapping rmdev -dev hdisk10_rootvg -ucfg device Remove an NPIV mapping for vfchost10 vfcmap -vadapter vfchost0 -fcp

Create an EtherChannel / IEEE 802.3ad Link mkvdev -lnagg ent0 ent1 Aggregation

Create a SEA adapter, with real adapter ent3, mkvdev -sea ent3 -vadapter ent4 -default ent4 virtual adapter ent4 and control channel ent5 defaultid 4010 -attr ha_mode=auto ctl_chan=ent5 Create a VLAN pseudo network adapter for a mkvdev -vlan ent3 -tagid 10 VLAN id 10 on the SEA adapter mktcpip -hostname vios1 -inetaddr 10.10.10.10 interface en6 -start -gateway 10.10.10.1 -netmask 255.255.255.0 -nsrvaddr 10.10.10.100 nsrvdomain my.domain chdev -dev en7 -perm -attr netaddr=20.20.20.20 attr netmask=255.255.255.0 -attr state=up

Setup the initial network adapter and nameserver information

Setup additional network adapters

Show network adapter configuration netstat -state Show network adapter configuration with netstat -state -num numerics only Show the network routing table netstat -routtable Show the network routing table with numerics netstat -routtable -num only Show virtual and physical network adapters lstcpip -adapters Mirror the rootvg - Note: This will reboot the extendvg rootvg hdisk1 VIO server. mirrorios hdisk1 Reboot the VIO Server Show the VIO Server operating system level (AIX oslevel) Show the brief error log Show the full error log Remove error log entries older than 30 days Show timestamped VIO command history Show the attributes of a user Change your password Change the /etc/motd file Run a mksysb backup of the VIO server to a remote directory shutdown -restart -force ioslevel errlog errlog -ls errlog -rm 30 lsgcl lsuser padmin passwd motd "Your login message and warning" backupios -file {BACKUP_DIR}/{HOSTNAME}.mksysb -

Optional flag -nomedialib stops the mksysb backing up any media library images. Backup the volume group structures of an online volume group. Create a Virtual Library in rootvg. Add an iso image to the Virtual Library. Assign the FBO to a vhost. Load the iso image on to the device. Unload the iso image from a device. Oh, and one last one, get root access (if you really need it) This should only be used to install 3rd party (supported) device drivers and software.

mksysb -nomedialib savevgstruct {VG} mkrep -sp rootvg -size 10G mkvopt -name aix71dvd1 -file AIX71_TL0SP1_1.iso mkvdev -fbo -vadapter vhost1 loadopt -disk aix71dvd1 -vtd vtopt0 unloadopt -vtd vtopt0

oem_setup_env

Anda mungkin juga menyukai