You might use
1       vmcp q userid
or
2       cat /proc/sysinfo | grep VM00

The first command lists both the VM guest name and VM name. The second lists 
the guest name as part of the guest properties. /proc/sysinfo contains even 
more information so you might take a look at that.

Example:

nlzlx211:~ # vmcp q userid
NLZLN211 AT VMLXES21
nlzlx211:~ # cat /proc/sysinfo | grep VM00
VM00 Name:            NLZLN211
VM00 Control Program: z/VM    5.4.0
VM00 Adjustment:      500
VM00 CPUs Total:      1
VM00 CPUs Configured: 1
VM00 CPUs Standby:    0
VM00 CPUs Reserved:   0
nlzlx211:~ #

Note that the hostname (nlzlx211) is not the same as the VM name (NLZLN211).

Regards, Berry.

> -----Original Message-----
> From: Linux on 390 Port [mailto:[email protected]] On Behalf Of
> Ben Duncan
> Sent: woensdag 31 oktober 2012 13:52
> To: [email protected]
> Subject: Linux ZVM command help ....
>
> Is there a command on the zlinux (SuSe 11.1) instance to tell you what the
> assigned name in the ZVM file that instance is ?
>
> For example - server called database01.ms.gov in all the local hosts/naming
> file(s) might be referenced as server0009 in the ZVM console list. We want
> to be able to what the server is referenced as from inside the instance. i.e.
>
> database01$> zvmyname
> > server009
> database01$>
>
> As always, thanks ....
>
> Ben Duncan - Business Network Solutions, Inc. 336 Elton Road  Jackson MS,
> 39212 "Never attribute to malice, that which can be adequately explained
> by stupidity"
> - Hanlon's Razor
>
>
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions, send email to
> [email protected] with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit http://wiki.linuxvm.org/






Dit bericht is vertrouwelijk en kan geheime informatie bevatten enkel bestemd 
voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij 
u dit onmiddellijk aan ons te melden en het bericht te vernietigen. Aangezien 
de integriteit van het bericht niet veilig gesteld is middels verzending via 
internet, kan Atos Nederland B.V. niet aansprakelijk worden gehouden voor de 
inhoud daarvan. Hoewel wij ons inspannen een virusvrij netwerk te hanteren, 
geven wij geen enkele garantie dat dit bericht virusvrij is, noch aanvaarden 
wij enige aansprakelijkheid voor de mogelijke aanwezigheid van een virus in dit 
bericht. Op al onze rechtsverhoudingen, aanbiedingen en overeenkomsten 
waaronder Atos Nederland B.V. goederen en/of diensten levert zijn met 
uitsluiting van alle andere voorwaarden de Leveringsvoorwaarden van Atos 
Nederland B.V. van toepassing. Deze worden u op aanvraag direct kosteloos 
toegezonden.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Nederland B.V. group liability cannot be 
triggered for the message content. Although the sender endeavours to maintain a 
computer virus-free network, the sender does not warrant that this transmission 
is virus-free and will not be liable for any damages resulting from any virus 
transmitted. On all offers and agreements under which Atos Nederland B.V. 
supplies goods and/or services of whatever nature, the Terms of Delivery from 
Atos Nederland B.V. exclusively apply. The Terms of Delivery shall be promptly 
submitted to you on your request.

Atos Nederland B.V. / Utrecht
KvK Utrecht 30132762

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to