Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Rex::Commands::NetworkUser Contributed Perl DocumentaRex::Commands::Network(3)

NAME
       Rex::Commands::Network -	Network	Module

DESCRIPTION
       With this module	you can	get information	of the routing table, current
       network connections, open ports,	...

SYNOPSIS
	use Rex::Commands::Network;

	my @routes = route;
	print Dumper(\@routes);

	my $default_gw = default_gateway;
	default_gateway	"192.168.2.1";

	my @netstat = netstat;
	my @tcp_connections = grep { $_->{"proto"} eq "tcp" } netstat;

EXPORTED FUNCTIONS
   route
       Get routing information

   default_gateway([$default_gw])
       Get or set the default gateway.

   netstat
       Get network connection information

perl v5.24.1			  2016-07-16	     Rex::Commands::Network(3)

NAME | DESCRIPTION | SYNOPSIS | EXPORTED FUNCTIONS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Rex::Commands::Network&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help