mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
59 lines
4.7 KiB
ReStructuredText
59 lines
4.7 KiB
ReStructuredText
xcatmn
|
|
======
|
|
|
|
**xcatmn** can be used to check if xcat has been installed correctly and is ready for use.
|
|
|
|
**Note**: For several check items(eg. tftp service, dns service, http service), 'tftp', 'nslookup' and 'wget' are need. If not be installed, will not check that item and give warning message.
|
|
|
|
Command is as below ::
|
|
|
|
xcatprobe xcatmn -i <install_nic> [-V]
|
|
|
|
* **-i**: [Required] Specify the network interface name of provision network on management node.
|
|
* **-V**: Output more information for debug.
|
|
|
|
For example, run command on Management Node ::
|
|
|
|
xcatprobe xcatmn -i eth0
|
|
|
|
**xcatmn** will check xcatd's process, xcat config and xcat service. If the item is ready for xcat use, result label is ``[ OK ]``. If the item is not ready and xcat can not be used, result label is ``[FAIL]``. If the item is not ready but maybe xcat can be used, result label is ``[WARN]``.
|
|
|
|
Output will be like this ::
|
|
|
|
# xcatprobe xcatmn -i eth0
|
|
[MN]: Sub process 'xcatd: SSL listener' is running [ OK ]
|
|
[MN]: Sub process 'xcatd: DB Access' is running [ OK ]
|
|
[MN]: Sub process 'xcatd: UDP listener' is running [ OK ]
|
|
[MN]: Sub process 'xcatd: install monitor' is running [ OK ]
|
|
[MN]: Sub process 'xcatd: Discovery worker' is running [ OK ]
|
|
[MN]: Sub process 'xcatd: Command log writer' is running [ OK ]
|
|
[MN]: xcatd is listening on port 3001 [ OK ]
|
|
[MN]: xcatd is listening on port 3002 [ OK ]
|
|
[MN]: 'lsxcatd -a' works [ OK ]
|
|
[MN]: The value of 'master' in 'site' table is an IP address [ OK ]
|
|
[MN]: NIC enp0s1 exists on current server [ OK ]
|
|
[MN]: Get IP address of NIC eth0 [ OK ]
|
|
[MN]: The IP *.*.*.* of eth0 equals the value of 'master' in 'site' table [ OK ]
|
|
[MN]: IP *.*.*.* of NIC eth0 is a static IP on current server [ OK ]
|
|
[MN]: *.*.*.* belongs to one of networks defined in 'networks' table [ OK ]
|
|
[MN]: There is domain definition in 'site' table [ OK ]
|
|
[MN]: There is a configuration in 'passwd' table for 'system' for node provisioning [ OK ]
|
|
[MN]: There is /install directory on current server [ OK ]
|
|
[MN]: There is /tftpboot directory on current server [ OK ]
|
|
[MN]: The free space of '/' is less than 12 G [ OK ]
|
|
[MN]: SELinux is disabled on current server [ OK ]
|
|
[MN]: Firewall is closed on current server [ OK ]
|
|
[MN]: HTTP service is ready on *.*.*.* [ OK ]
|
|
[MN]: TFTP service is ready on *.*.*.* [ OK ]
|
|
[MN]: DNS server is ready on *.*.*.* [ OK ]
|
|
[MN]: The size of /var/lib/dhcpd/dhcpd.leases is less than 100M [ OK ]
|
|
[MN]: DHCP service is ready on *.*.*.* [ OK ]
|
|
======================do summary=====================
|
|
[MN]: Check on MN PASS. [ OK ]
|
|
|
|
**[MN]** means it's MN's check result. When complete all items' check, will show summary to give a conclusion ``PASS`` or ``FAILED``.
|
|
|
|
For hierarchical clusters, ``xcatmn`` will check Service Node automatically.
|
|
|
|
For Service Nodes, the output will contain ``[SN:nodename]`` to distinguish different Service Nodes.
|