Thursday, January 8, 2015

playing with esxi server


~ # vifp --help
-sh: vifp: not found
~ # vi
vi       vim-cmd
~ # vi --help
BusyBox v1.20.2 (2012-12-11 11:54:28 PST) multi-call binary.

Usage: vi [OPTIONS] [FILE]...

Edit FILE

        -c      Initial command to run ($EXINIT also available)
        -R      Read-only
        -H      Short help regarding available features

~ # vim-cmd --help
Invalid option specified '--help'.  Only single options are supported.
Usage: vim-cmd [options]... command [cmd_arg1] [cmd_arg2] ...
Options:
   -h                Display this help message and exit
   -v                Display version information and exit
   -H <host>         Host name to connect
   -O <port>         Port number to connect
   -t <thumbprint>   Expected thumbprint of the specified host
   -U <user>         User name to use for login
   -P <pass>         Password to use for login
   -d <level>        Show verbose debug output. (info, verbose, trivia)

Use the help command to get information on the commands available.

   vim-cmd help [command]
~ # vim-cmd -help
Invalid option specified '-help'.  Only single options are supported.
Usage: vim-cmd [options]... command [cmd_arg1] [cmd_arg2] ...
Options:
   -h                Display this help message and exit
   -v                Display version information and exit
   -H <host>         Host name to connect
   -O <port>         Port number to connect
   -t <thumbprint>   Expected thumbprint of the specified host
   -U <user>         User name to use for login
   -P <pass>         Password to use for login
   -d <level>        Show verbose debug output. (info, verbose, trivia)

Use the help command to get information on the commands available.

   vim-cmd help [command]
~ # vi -h
BusyBox v1.20.2 (2012-12-11 11:54:28 PST) multi-call binary.

Usage: vi [OPTIONS] [FILE]...

Edit FILE

        -c      Initial command to run ($EXINIT also available)
        -R      Read-only
        -H      Short help regarding available features

~ # esxcli
Usage: esxcli [options] {namespace}+ {cmd} [cmd options]

Options:
  --formatter=FORMATTER
                        Override the formatter to use for a given command. Available formatter: xml, csv, keyvalue
  --debug               Enable debug or internal use options
  --version             Display version information for the script
  -?, --help            Display usage information for the script

Available Namespaces:
  device                Device manager commands
  esxcli                Commands that operate on the esxcli system itself allowing users to get additional
                        information.
  fcoe                  VMware FCOE commands.
  graphics              VMware graphics commands.
  hardware              VMKernel hardware properties and commands for configuring hardware.
  iscsi                 VMware iSCSI commands.
  network               Operations that pertain to the maintenance of networking on an ESX host. This includes a
                        wide variety of commands to manipulate virtual networking components (vswitch, portgroup,
                        etc) as well as local host IP, DNS and general host networking settings.
  sched                 VMKernel system properties and commands for configuring scheduling related functionality.
  software              Manage the ESXi software image and packages
  storage               VMware storage commands.
  system                VMKernel system properties and commands for configuring properties of the kernel core
                        system.
  vm                    A small number of operations that allow a user to Control Virtual Machine operations.
  vsan                  VMware VSAN commands.

~ # esxcli network nic list
Name    PCI Device     Driver  Link  Speed  Duplex  MAC Address         MTU  Description                            
------  -------------  ------  ----  -----  ------  -----------------  ----  ---------------------------------------------------------------------------
vmnic0  0000:003:00.0  bnx2    Up      100  Full    00:1c:c4:aa:33:48  1500  Broadcom Corporation NC373i Integrated Multifunction Gigabit Server Adapter
vmnic1  0000:014:01.0  e1000   Down      0  Full    00:04:23:b3:c8:74  1500  Intel Corporation 82546EB Gigabit Ethernet Controller (Copper)
vmnic2  0000:014:01.1  e1000   Down      0  Full    00:04:23:b3:c8:75  1500  Intel Corporation 82546EB Gigabit Ethernet Controller (Copper)
~ # esxcli hardware cpu list
CPU:0
   Id: 0
   Package Id: 0
   Family: 6
   Model: 15
   Type: 0
   Stepping: 11
   Brand: GenuineIntel
   Core Speed: 2000070797
   Bus Speed: 333345078
   APIC ID: 0x0
   Node: 0
   L2 Cache Size: 4194304
   L2 Cache Associativity: 16
   L2 Cache Line Size: 64
   L2 Cache CPU Count: 2
   L3 Cache Size: -1
   L3 Cache Associativity: -1
   L3 Cache Line Size: -1
   L3 Cache CPU Count: 2

CPU:1
   Id: 1
   Package Id: 0
   Family: 6
   Model: 15
   Type: 0
   Stepping: 11
   Brand: GenuineIntel
   Core Speed: 2000070797
   Bus Speed: 333345078
   APIC ID: 0x1
   Node: 0
   L2 Cache Size: 4194304
   L2 Cache Associativity: 16
   L2 Cache Line Size: 64
   L2 Cache CPU Count: 2
   L3 Cache Size: -1
   L3 Cache Associativity: -1
   L3 Cache Line Size: -1
   L3 Cache CPU Count: 2

CPU:2
   Id: 2
   Package Id: 0
   Family: 6
   Model: 15
   Type: 0
   Stepping: 11
   Brand: GenuineIntel
   Core Speed: 2000070797
   Bus Speed: 333345078
   APIC ID: 0x2
   Node: 0
   L2 Cache Size: 4194304
   L2 Cache Associativity: 16
   L2 Cache Line Size: 64
   L2 Cache CPU Count: 2
   L3 Cache Size: -1
   L3 Cache Associativity: -1
   L3 Cache Line Size: -1
   L3 Cache CPU Count: 2

CPU:3
   Id: 3
   Package Id: 0
   Family: 6
   Model: 15
   Type: 0
   Stepping: 11
   Brand: GenuineIntel
   Core Speed: 2000070797
   Bus Speed: 333345078
   APIC ID: 0x3
   Node: 0
   L2 Cache Size: 4194304
   L2 Cache Associativity: 16
   L2 Cache Line Size: 64
   L2 Cache CPU Count: 2
   L3 Cache Size: -1
   L3 Cache Associativity: -1
   L3 Cache Line Size: -1
   L3 Cache CPU Count: 2
~ # esxcli hardware memory get
   Physical Memory: 17177657344 Bytes
   Reliable Memory: 0 Bytes
   NUMA Node Count: 1
~ # esxcli hardware platform get
Platform Information
   UUID: 0x34 0x37 0x30 0x30 0x36 0x34 0x4d 0x58 0x51 0x37 0x34 0x32 0x30 0x30 0x55 0x38
   Product Name: ProLiant ML350 G5
   Vendor Name: HP
   Serial Number: MXQ74200U8
   IPMI Supported: true
~ # esxcli hardware clock get
2008-01-13T19:52:17Z
~ # esxcli system version get
   Product: VMware ESXi
   Version: 5.5.0
   Build: Releasebuild-1623387
   Update: 1
~ # esxcli system boot device get
   Boot Filesystem UUID: e86ae075-6b0df33b-00f3-8b9966c0bf2e
   Boot NIC:
   Stateless Boot NIC:
~ # esxcli vm process list
~ #


No comments:

Post a Comment