[Form]
/opt/FJSVhanet/usr/sbin/hanet_snap [-s] [save-directory]
[Detail of the function]
This command collects the investigation material necessary for maintaining a Redundant Line Control Function.
In addition, only in the case of super-user authority, this command can be executed.
[Option]
It is possible to specify following options and parameters.
Specify -s to collect the minimum investigation material.
When omitted this option, all the investigation material is collected.
Specify save-directory to store collected materials.
When omitted this parameter, materials are stored in "/tmp".
A list of the collected information is as follows. If the target command or the file does not exist in the system, the execution result of the command or the file is not collected.
[Meaning] Y: Collected N: Not collected
Type | File name when collected | Collected information | Minimum investigation material |
---|---|---|---|
System | arp_n | arp -n | Y |
arptables_list | arptables --list | Y | |
BASP/ | /etc/basp | Y | |
chkconfig | chkconfig --list | Y | |
ctld_pinfo | /proc/XXX/cmdline | N | |
dmidecode_sysinfo | dmidecode -s system-manufacturer | Y | |
etc/ | /etc/fcoe | Y | |
etc/brctl | brctl show | Y | |
etc/bridge_info | bridge fdb show | Y | |
etc/class_net | ls -l /sys/class/net | Y | |
etc/class_net_dev | /sys/class/net/*/carrier | Y | |
etc/firewalld/firewall_cmd_info | firewall-cmd --state | Y | |
etc/firewalld/firewalld.conf | /etc/firewalld/firewalld.conf | Y | |
etc/firewalld/icmptypes/ | /etc/firewalld/icmptypes/*.xml | Y | |
etc/firewalld/services/ | /etc/firewalld/services/*.xml | Y | |
etc/firewalld/zones/ | /etc/firewalld/zones/*.xml | Y | |
etc/frr | /etc/frr/* | Y | |
etc/fstab | /etc/fstab | Y | |
etc/rc_list | ls /etc/rc.d/* | Y | |
etc/routel | routel | Y | |
etc/selinux | /etc/selinux/config | Y | |
/etc/selinux/targeted/contexts/files/file_contexts | N | ||
etc/sysctl.d/ | /etc/sysctl.d/* | Y | |
etc/virsh_dumpxml_<domain> | virsh dumpxml <domain> | Y | |
etc/virsh_list_all | virsh list --all | Y | |
etc/virsh_nodeinfo | virsh nodeinfo | Y | |
etc/virsh_version | virsh version | Y | |
etc/xen_store_ls | xenstore-ls | Y | |
etc/xm_dmesg.log | xm dmesg | N | |
etc/xm_info | xm info | Y | |
etc/xm_list_long | xm list --long | Y | |
etc/NetworkManager/nmcli_info | /usr/bin/nmcli c | Y | |
etc/NetworkManager/nmcli_devices_details | nmcli d show | Y | |
etc/NetworkManager/nmcli_connections_details/<connection_name> | nmcli c show <connection_name> | Y | |
ethdev_info | ethtool ethX | Y | |
free | free -bt | Y | |
iANS/ | /etc/ians | Y | |
ifconfig_a | ifconfig -a | Y | |
ifstat_ae | ifstat -ae | Y | |
include/ | /lib/modules/`uname -r`/build/include/linux/ | Y | |
ipcs_a | ipcs -a | Y | |
ip_info | ip link | Y | |
ip6tables-config | /etc/sysconfig/ip6tables-config | Y | |
iptables-config | /etc/sysconfig/iptables-config | Y | |
iptables_list | iptables --list | Y | |
log/ | /var/log/boot.log* | N | |
log/journal_log | journalctl --all --full | N | |
lsmod | lsmod | Y | |
lspci | lspci | Y | |
netstat | netstat -na | Y | |
nft_list_ruleset | nft list ruleset | Y | |
nftables.conf | /etc/sysconfig/nftables.conf | Y | |
nstat_az | nstat -az | Y | |
proc_dev | /proc/devices | Y | |
proc_net/ (*) | /proc/net/ | N | |
ps_ewfl | ps -ewfl | Y | |
sel_pinfo | /proc/XXX/cmdline | N | |
ss | ss -f inet6 -na | Y | |
sysconfig/ | /etc/sysconfig/hwconf | Y | |
sysconfig/chronyd | /etc/sysconfig/chronyd | Y | |
sysctl_a | sysctl -a | N | |
systemd/systemctl_list | systemctl list-dependencies --full | N | |
systemd/systemctl_fjsvhanet_info | systemctl show fjsvhanet.service --all --full | Y | |
systemd/systemd_analyze_plot.svg | systemd-analyze plot | N | |
sys_info | /proc/cgroups | Y | |
uamlog | /var/opt/FJSVfupde/log/* | N | |
uname_a | uname -a | Y | |
uptime | uptime | Y | |
usr/lib/sysctl.d/ | /usr/lib/sysctl.d/* | Y | |
GLS information: | config/ | /etc/opt/FJSVhanet/config/ | Y |
dev_sha | ls -l /dev/sha | Y | |
dsp_conf | dsphanet | Y | |
filelist_tmp | ls -la /var/opt/FJSVhanet/tmp/ | Y | |
log/ | /var/opt/FJSVhanet/log/ | Y | |
modinfo | modinfo sha | Y | |
print_conf | hanetconfig print | Y | |
rpminfo | rpm -qi FJSVhanet | Y | |
script/ | /etc/opt/FJSVhanet/script/ | Y | |
Cluster system information: | hvdisp_a | hvdisp -a | N |
log/ | /var/opt/reliant/log/ | N |
[Meaning of the symbols] Y: It extracts. N: It does not extract.
(*) /proc/net/rpc cannot be obtained.
[Output form]
The collected materials are compressed and stored by tar and compress commands. A stored file name is "machine name" + "Date collected (YYMMDDhhmmss)".tar.gz.
Ex.) hostname040126093843.tar.gz
[Using example]
When collecting all the investigation material under /tmp.
# /opt/FJSVhanet/usr/sbin/hanet_snap |
When collecting the minimum investigation material under /tmp.
# /opt/FJSVhanet/usr/sbin/hanet_snap -s |
When collecting the minimum investigation material under /home/user1.
# /opt/FJSVhanet/usr/sbin/hanet_snap -s /home/user1 |