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