资 源 简 介
This webapp includes an expect script that will scan a list of Cisco routers/switches, collect information as seen in the "show inventory" command, present the results in a web page, and archive the scan for reference.
Dependencies
#1 - expect#2 - telnet#3 - ssh#4 - PHP enabled web server (Apache)
File Structure
```
./inventory
/scripts
/connect.sh # bash script to initiate scan
# "$./connect.sh username password"
/scaninventory.sh # expect script to scan routers
/hosts.list # list of routers to scan
/archive # this folder stores old scans
/htdocs
/inventory.php # page to display results of scan
# in your Apache config, this should
# be the only file that is available
# for public viewing. E.g.:
@@@ Sample apache config @@@
Alias /inv "/opt/lampp/myapps/inventory/htdocs"
Options Indexes Follow