Hi this should be an easy one for those out there...
I am trying to redirect the esxcfg-firewall man page to a text file so I can print it off as a reference for some work I need to do bit I'm not to sure how to do this (windows admin...) so if someone can tell me I would appreciate it.
Thanks...
To dump a man page to a text file specify the cat command as the pager and redirect to a file.
man -P cat esxcfg-firewall > /tmp/esxcfg-firewall_man.txt
-
RHCE, VCP
Blog: http://computing.dwighthubbard.info
NAME
esxcfg-firewall - VMware ESX Server Firewall Configuration Tool
COPYRIGHT
VMware ESX Server is Copyright 2006 VMware, Inc. All rights reserved.
SYNOPSIS
esxcfg-firewall OPTIONS
DESCRIPTION
esxcfg-firewall provides an interface to query and modify the service
console firewall settings.
OPTIONS
-q --query
Displays the current firewall settings.
-q --query service name
Displays the state of the specified service.
-q --query incoming|outgoing
Displays the whether or not incoming/outgoing ports are blocked
by default.
-s --services
Lists the known firewall services.
-l --load
Load the current firewall settings.
-r --resetDefaults
Resets all firewall parameters to their default values.
--blockIncoming
Block all incoming connections on non-required ports. This is
the default.
--blockOutgoing
Block all outgoing connections on non-required ports. This is
the default.
--allowIncoming
Allow incoming connections on all ports.
--allowOutgoing
Allow outgoing connections on all ports.
--e --enableService service
Opens the ports in the firewall required by the specified ser-
vice.
--d --disableService service
Closes the ports in the firewall required by the specified ser-
vice.
-o --openPort -AR -port,tcp|udp,in|out,name
Opens a port in the firewall. Closes a port previously opened by
--openPort.
-h --help
Print a brief usage message.
EXAMPLES
esxcfg-firewall --query sshClient
esxcfg-firewall --openPort 873,tcp,in,"rsync"
esxcfg-firewall --enableService sshClient
VMware ESX Server 3.0 January 30, 2008 VMware ESX Server 3.0
To dump a man page to a text file specify the cat command as the pager and redirect to a file.
man -P cat esxcfg-firewall > /tmp/esxcfg-firewall_man.txt
-
RHCE, VCP
Blog: http://computing.dwighthubbard.info
Cool thanks for your replys...