FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
os:linux:pkg:scripts:check_cmd.sh.html [2017/12/17 23:24] kurihara created |
os:linux:pkg:scripts:check_cmd.sh.html [2018/05/08 02:01] (current) kurihara |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | [[os: | ||
| ====== check_cmd.sh ====== | ====== check_cmd.sh ====== | ||
| + | $FHHOME/ | ||
| <sxh bash toolbar: | <sxh bash toolbar: | ||
| #!/bin/sh | #!/bin/sh | ||
| + | # | ||
| # check_cmd.sh | # check_cmd.sh | ||
| - | # | + | #======================================================= |
| - | + | ||
| - | if [ -z $1 ]; then | + | |
| - | echo " | + | |
| - | exit 1 | + | |
| - | fi | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | check_common() { | + | |
| - | which rsync >/ | + | |
| - | which vim >/ | + | |
| - | which tree >/ | + | |
| - | which wget >/ | + | |
| - | + | ||
| - | # | + | |
| - | #Netowrk | + | |
| - | # | + | |
| - | which ifconfig | + | |
| - | which netstat | + | |
| - | which dig >/ | + | |
| - | which host >/ | + | |
| - | which nmap >/ | + | |
| - | which nc >/ | + | |
| - | which traceroute | + | |
| - | which tcpdump | + | |
| - | which snmpget | + | |
| - | which snmpwalk | + | |
| - | + | ||
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | which dstat >/ | + | |
| - | which iperf >/ | + | |
| - | } | + | |
| + | which rsync >/ | ||
| + | which vim >/ | ||
| + | which tree >/ | ||
| + | which wget >/ | ||
| + | which expect | ||
| - | # | + | #----------------------------------------------------- |
| - | case ${1} in | + | #Netowrk |
| - | | + | # |
| - | ;; | + | which ifconfig |
| - | | + | which netstat |
| - | | + | which dig >/ |
| - | pc) check_pc | + | which host >/ |
| - | | + | which nmap >/ |
| - | | + | which nc >/ |
| - | | + | which traceroute |
| - | esac | + | which tcpdump |
| + | which snmpget | ||
| + | which snmpwalk | ||
| + | which ftp >/ | ||
| + | # | ||
| + | #Peformance | ||
| + | # | ||
| + | which dstat >/ | ||
| + | which iperf >/ | ||
| + | # | ||
| + | #etc | ||
| + | # | ||
| + | which ccze >/ | ||
| </ | </ | ||
| Line 62: | Line 47: | ||
| \\ | \\ | ||
| <WRAP box 90%> | <WRAP box 90%> | ||
| - | [[os:package: | + | [[os:linux:pkg: |
| - | <catlist -noAddPageButton -noHead> | + | < |
| </ | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.