27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

QUERY NIC<br />

►►<br />

Query<br />

Authorization<br />

Purpose<br />

NIC<br />

Oper<strong>and</strong>s<br />

Examples<br />

ALL<br />

vdev<br />

DETails<br />

Privilege Class: G<br />

Use QUERY NIC to display information about a simulated Network Interface Card<br />

(NIC) in your virtual machine configuration. The response for each network adapter<br />

includes:<br />

v Adapter configuration (base device address, number of devices)<br />

v Adapter type for example, HIPER for HiperSockets<br />

v Status of each associated virtual device for example, DETAILS option<br />

ALL<br />

indicates a request for “all” simulated Network Interface Cards (NIC) in the<br />

invoker’s virtual machine configuration.<br />

vdev<br />

specifies the virtual device number (hex) of the adapter to be examined. You<br />

may specify the virtual device number of any virtual device that is attached to<br />

the adapter. However, <strong>CP</strong> responses will refer to each virtual adapter by its<br />

base device address; this is the first device in the range.<br />

DETails<br />

indicates a request for full details about the selected adapters. The response<br />

includes the following information for each adapter:<br />

v the role (CTL-READ, CTL-WRITE, or DATA) assigned to this device<br />

v the IP Addresses registered to this device<br />

1. QUERY NIC:<br />

Display a list of simulated Network Interface Cards belonging to this virtual<br />

machine:<br />

cp query nic<br />

Adapter 0500 Type: QDIO Name: TEST Devices: 8<br />

Port 0 MAC: 02-00-00-00-00-02 LAN: SYSTEM INEWS<br />

Adapter FD00 Type: HIPERS Name: UNASSIGNED Devices: 8<br />

Port 0 MAC: 02-00-00-00-00-03 LAN: * Internal MFS: 16384<br />

This response describes a QDIO adapter at 0500 which is connected to a <strong>VM</strong><br />

LAN, <strong>and</strong> a HiperSockets adapter at FD00 which is using its internal LAN<br />

(indicated by LAN “* Internal”). The adapter name “UNASSIGNED” means your<br />

software has not yet assigned a name to this interface.<br />

2. QUERY NIC DETails:<br />

Display detailed information about a simulated Network Interface Card:<br />

QUERY NIC<br />

►◄<br />

Chapter 2. <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> 893

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!