📄 ipvsadm-save
字号:
#!/bin/bash# ipvsadm-save - Save IPVS rules## A very simple wrapper to save IPVS rules# Inspired by ipchains-save.## Version: $Id: ipvsadm-save,v 1.3 2001/03/22 12:57:46 wensong Exp $## Script Author: Horms <horms@vergenet.net>## This file:## ChangeLog## Wensong Zhang : Added the "-n" option and the help()#PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbinNUMERIC=""help(){ exec 1>&2 echo `basename $0`: Script to save the IPVS table to stdout. echo " With the -n option, prints out the table in numeric format." exit 1}for argdo case "$arg" in -n) NUMERIC="-n" ;; -*) help ;; esacdone# All the work is actually done in ipvsadm, horayipvsadm -S $NUMERIC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -