Tuesday, September 21, 2021

Aruba CX Quick Config


Hostname
hostname <building>_<MDF/IDF location>_core_<model>

Username
user manager group administrators password plaintext <password>
user manager authorized-key ssh-rsa VeryLongKeyShouldGoHere

Logging
logging x.x.x.x
logging facility local2

Default gateway and DNS
ip route 0.0.0.0/0 <MGMT gateway>
ip dns server-address priority 1 1.0.0.1
ip dns server-address priority 2 8.8.8.8

NTP and time
ntp server <default gateway> prefer iburst minpoll 4
clock timezone us/central
ntp enable

SNMP
snmp-server vrf default
snmp-server system-location <location>
snmp-server system-contact <ITS>
snmp-server community snmpv1string

Standard VLAN
vlan 100
name VlanName100
exit

vlan 200
name VlanName200
interface vlan 200
ip address X.X.X.X/24

LACP 
interface 1/1/1
no shut
lag 1

interface 1/1/2
no shut 
lag 1

interface lag 1
no shut
vlan trunk native 1
vlan trunk allowed all
lacp mode active

Tag VLAN's on interfaces - if you want to allow all vlan's
interface 1/1/1-1/1/x
vlan trunk native 1
vlan trunk allowed all

Vlan access - if you only want to allow 1 vlan 
interface 1/1/1
vlan access 6



 

Tuesday, September 7, 2021

Thursday, September 2, 2021

Oxidized Example - Config file

 ---
username: manager
password:
model: procurve
resolve_dns: false
interval: 3600
use_syslog: false
debug: false
threads: 30
timeout: 20
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
rest: 127.0.0.1:8888
next_adds_job: false
vars: {}
groups: {}
models: {}
pid: "/root/.config/oxidized/pid"
crash:
  directory: "/root/.config/oxidized/crashes/"
  hostnames: false
stats:
  history_size: 10
input:
  default: ssh
  debug: false
  ssh:
    secure: false
  ftp:
    passive: true
  utf8_encoded: true
output:
   file:
       directory: "/mnt/c/Users/user-account/oxidized/configs"
source:
  default: csv
  csv:
        file: "/mnt/c/tftp/switches.csv"
#        file: "/root/.config/oxidized/switch.db"
        delimiter: !ruby/regexp /,/
        map:
         name: 0
         ip: 1
         username: 2
         password: 3
         group: 4
         model: 5
#      vars_map:
#            enable:4
model_map:
  aruba: aos-cx
  hp: procurve
  fortigate: fortios