Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
./discover_subnet_cron.sh verbose help
---------------------------------------
Open-AudIT Subnet Discovery cron script
(c) Opmantek, 2014. 
---------------------------------------
ARGUMENTS
---------------------------------------
Open-AudIT User: admin
Open-AudIT Password: password
Open-AudIT URL: http://localhost/open-audit/index.php/discovery/discover_subnet
Subnet: 
Local Address: 
Debugging: 1
Syslog: /usr/local/open-audit/other/open-audit.log
Help: y
SNMP Community: public
SSH User: 
SSH Password: 
Windows User: 
Windows Password: 
Windows Domain:
HELP
---------------------------------------
This script should be used on a Linux based computer to discover hosts in a subnet. This script is designed to be called by cron or run directly from the command line.
 Wget is the only prerequisite for this script to function correctly.
 Valid command line options are below (items containing * are the defaults) and should take the format name=value (eg: debugging=1). The special options for help, quiet and verbose do not require an arguement. "./discover_subnet_cron.sh help" is valid.
openaudit_user
      *admin - The Open-AudIT user running this script.
openaudit_password
      *password - The password for the above user.
openaudit_url
      *http://localhost/open-audit/index.php/discovery/discover_subnet - The form URL in Open-AudIT we are submitting to.
help
      y - Display this help output.
     *n - Do not display this output.
subnet
      - The format of the subnet is specified in standard Nmap syntax. The following are valid examples:
      - 192.168.0.1 (a single address)
      - 192.168.1.2/32 (a single address with mask)
      - 192.168.3.0/24 (a 24 bit mask - 192.168.3.0 to 192.168.3.255)
      - 198.168.0-255.1-127 (a range of ip addresses)
local_address
      - The external ip of this Open-AudIT server.
snmp_community
      *public - The SNMP community string to be used in this discovery run.
ssh_user and ssh_password
      - The SSH credentials to be used in this discovery run.
windows_user and windows_pass and windows_domain
      - The Windows credentials to be used in this discovery run.
syslog
      */usr/local/open-audit/other/open-audit.log - If set the script will log to this file.
debugging
      *1 - If set to 1, will output details on the command line. If set to 0, no output will occur.
verbose
      - Equivalent to debugging=1
quiet 
      - Equivalent to debugging=0

...