SIMPLE SOLUTIONS

REX::COMMANDS::NETWORK(3PM) - Linux man page online | Library functions

Network Module.

Chapter
2018-02-01
Rex::Commands::Network(3pm) User Contributed Perl Documentation Rex::Commands::Network(3pm)

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.26.1 2018-02-01 Rex::Commands::Network(3pm)
Download raw manual
Index User Contributed Perl Documentation (+23303) perl v5.26.1 (+10548) № 3 (+68044)
Go top