Chapter 6 Network Reconnaissance

For diagrams, tables, or exact code formatting, .

JOHN W. CAPOBIANCOPRINTED PAGE 107
ok: [DIST01] => (item=#####DIST01#####) 
ok: [DIST02] => (item=#####DIST02#####) 
 
changed: [DIST01] => (item=-   - Neighbor ID     Pri   State           Dead Time   
Address         Interface
- 1.1.1.1           0   FULL/  -     00:00:38    172.20.10.1    Port-channel1 
    - 1.1.1.30          0   FULL/  -     00:00:38    172.20.10.1    Port-channel1.30 
    - 1.1.1.10          0   FULL/  -     00:00:35    172.20.10.1    Port-channel1.10 
    - 1.1.1.20          0   FULL/  -     00:00:34    172.20.10.1    Port-channel1.20 
) 
 
changed: [DIST02] => (item=-   - Neighbor ID     Pri   State           Dead Time   
Address         Interface
- 1.1.1.1           0   FULL/  -     00:00:35    172.20.20.1    Port-channel1 
    - 1.1.1.30          0   FULL/  -     00:00:35    172.20.20.1    Port-channel1.30 
    - 1.1.1.20          0   FULL/  -     00:00:37    172.20.20.1    Port-channel1.20 
    - 1.1.1.10          0   FULL/  -     00:00:37    172.20.20.1    Port-channel1.10 
 
TASK [create log file for each device]************************************************ 
changed: [DIST01] 
changed: [DIST02] 
 
TASK [log to file for individual device]********************************************* 
changed: [DIST01] => (item=#####DIST01#####) 
changed: [DIST02] => (item=#####DSIT02#####) 
changed: [DIST01] => (item=-   - Neighbor ID     Pri   State           Dead Time    
address         Interface 
    - 1.1.1.1           0   FULL/  -     00:00:30    172.20.10.1    Port-channel1 
    - 1.1.1.30          0   FULL/  -     00:00:37    172.20.10.1    Port-channel1.30 
    - 1.1.1.10          0   FULL/  -     00:00:34    172.20.10.1    Port-channel1.10 
    - 1.1.1.20          0   FULL/  -     00:00:30    172.20.10.1    Port-channel1.20 
) 
changed: [DIST02] => (item=-   - Neighbor ID     Pri   State           Dead Time    
Address         Interface 
    - 1.1.1.1           0   FULL/  -        00:00:35    172.20.20.1    Port-channel1 
    - 1.1.1.30          0   FULL/  -        00:00:35    172.20.20.1    Port-channel1.30 
    - 1.1.1.20          0   FULL/  -        00:00:37    172.20.20.1    Port-channel1.20 
    - 1.1.1.10          0   FULL/  -        00:00:37    172.20.20.1    Port-channel1.10 
) 
PLAY RECAP****************************************************************************** 
DIST01                  : ok=6    changed=4    unreachable=0    failed=0 
DIST02                  : ok=6    changed=4    unreachable=0    failed=0

When the playbook has completed successfully, use Git to save, commit, comment, and push the resulting output files into the repository.

Git add * Git commit –a Add comments using the VI editor, press (ESC), type (:wq) to save and exit VI. Git push Enter TFS credentials.