To see its current settings
$ sysctl -a 2>/dev/null | grep vcp | sort
or
$ crn/script/show.sh
To enable or disable it
$ sudo sysctl -w net.crn.vcp_enable=1
$ sudo sysctl -w net.crn.vcp_enable=0
To use it for some TCP ports (increasingly ordered for easy check)
$ sudo sysctl -w net.crn.vcp_ports=80,443,501-599,5001
To use it for all TCP ports
$ sudo sysctl -w net.crn.vcp_ports=1-65535
To use it for all TCP ports except port 22
$ sudo sysctl -w net.crn.vcp_ports=#22,1-65535
To use it for all TCP ports except ports 22 and 100~109
$ sudo sysctl -w net.crn.vcp_ports=#22,#100-109,1-65535
To check license expiration (day:hh:mm:ss)
$ sysctl net.crn.vcp_expire
net.crn.vcp_expire = 29d:09h:38m:30s
To check currently running #vcp-flows
$ sysctl net.crn.vcp_nflows
net.crn.vcp_nflows = 123
To check statistics (day:hh:mm:ss, total #tcp- and #vcp-flows)
$ sysctl net.crn.vcp_stats
net.crn.vcp_stats = 20d:15h:31m:03s,t(0/24),v(0/8451377)
To check software version
$ sysctl net.crn.vcp_version
net.crn.vcp_version = v390-da02
Note: If your device does not have sysctl installed, use /proc
file system directory /proc/sys/net/crn/ to check and modify
the configuration. For example:
$ for f in /proc/sys/net/crn/*; do echo "$f = $(cat $f)"; done
# echo 1 > /proc/sys/net/crn/vcp_enable
# echo 1-65535 > /proc/sys/net/crn/vcp_ports
Note: On ubuntu/centos/redhat/debian/suse servers, you may put
your typical vcp settings in crn/script/default.sh, which will
run automatically during server start. A similar setup can be done
for embedded devices.
$ sudo vi /opt/crn/script/default.sh
Comments
0 comments
Please sign in to leave a comment.