How do I reset the admin password on Aruba Instant

Product and Software: This article applies to Aruba Instant till Version 4.0.x.

To reset the admin password on Aruba Instant:

1) From the console, enter this username and password:

Username: admin
Password: forgetme!


2) Get into configure terminal mode:

# configure terminal

3) Issue this command to reset the password:

(config)# mgmt-user <username> <password>
(config)# exit
# write memory


As of IAP4.1.0.0, the recovery password in the console CLI has been removed for security reasons. To retain serviceability of the system, the standard username and password have been enhanced so that users can access the CLI even when the AP is in a bad state.

Username: admin
Password: forgetme!

How to Send SMTP Email Using PowerShell

ParameterDescription
-ToEmail address of a recipient or recipients
-BccEmail address of a BCC recipient or recipients
-CcEmail address of a CC recipient or recipients
-FromSender’s email address
-SubjectEmail subject
-BodyEmail body text
-BodyAsHtmlDefines that email body text contains HTML
-AttachmentsFilenames to be attached and the path to them
-CredentialAuthentication to send the email from the account
-SmtpServerName of the SMTP server
-PortPort of the SMTP server
-DeliveryNotificationOptionThe sender(s) specified in the Form parameter will be notified on the email delivery. Here are the options:None – notifications are off (default parameter) OnSuccess – notification of a successful delivery OnFailure – notification of an unsuccessful delivery Delay – notification of a delayed deliveryNever – never receive notifications
-EncodingThe encoding for the body and subject
-PriorityDefines the level of priority of the message. Valid options are:Normal (default parameter)LowHigh
-UseSslConnection to the SMTP server will be established using the Secure Sockets Layer (SSL) protocol

How do I use the controller boot parameter ‘cfgfile’ to recover from a corrupted configuration?

Step 1: To stop the boot process and enter ‘cpboot’ mode, press Enter when prompted. Issue the ‘printenv’ command to list current settings.

CPBoot 1.1.6 (build taylor@harpua-ENG.0000)
Built: 2004-08-09 11:56:39 (with gcc 2.95)

CPU: MPC8245 Revision 16.20 at 333.333 MHz: 16 kB I-Cache 16 kB D-Cache
Board: M-Switch Local Bus at 133.333 MHz
DRAM: 256 MB
POST: passed
CPLD: revision 10
FLASH: 256 kB
PCI: scanning bus0 …
dev fn venID devID class rev MBAR0 MBAR1 MBAR2 MBAR3
00 00 1057 0006 060000 14 00000008 00000000 00000000 00000000
14 00 166d 0001 060000 02 f0000008 00000000 f1000008 f1001008
15 00 104c ac55 060700 01 f1002000 f1003000 00000000 00000000
16 00 8086 1209 020000 09 f1004000 f0000001 f1020000 00000000
IDE: pci1520#0, pci1520#1
In: serial
Out: serial
Err: serial
IDE: Bus 0: OK, Bus 1: Empty
Device 0: Model: CF 256MB Firm: Ser#: GHS3ABPCF05030200007
Type: Removable Hard Disk
Capacity: 250.7 MB = 0.2 GB (513536 x 512)
Net: i82559#0, sibyte#0

Hit any key to stop autoboot: 0

cpboot>

cpboot> printenv

bootcmd=boot flash
bootdelay=2
baudrate=9600
filesize=167a784
stdin=serial
stdout=serial
stderr=serial

Environment size: 103/508 bytes


Step 2: Use the ‘setenv’ command to set the ‘cfgfile’ parameter to bypass the configuration file. As long as ‘cfgfile’ is set to any value, it bypasses the configuration file. In this example, ‘cfgfile’ is set to ‘default.cfg’. Save the settings by issuing the ‘saveenv’ command and issue the ‘printenv’ command to verify settings. After settings have been verified, issue the ‘reset’ command to boot the switch.

cpboot> setenv cfgfile default.cfg

cpboot> saveenv

Saving Enviroment to NVRAM…

cpboot> printenv

bootcmd=boot flash
bootdelay=2
baudrate=9600
filesize=167a784
stdin=serial
stdout=serial
stderr=serial
cfgfile=default.cfg

Environment size: 123/508 bytes

cpboot> reset

Step 3: After the ‘reset’ command, the switch reboots and the start setup dialog is displayed. In this example, all defaults are accepted. Select the country code correctly, because it cannot be changed in the switch configuration. When setup dialog is complete, the switch reboots.

CPBoot 1.1.6 (build taylor@harpua-ENG.0000)
Built: 2004-08-09 11:56:39 (with gcc 2.95)

CPU: MPC8245 Revision 16.20 at 333.333 MHz: 16 kB I-Cache 16 kB D-Cache
Board: M-Switch Local Bus at 133.333 MHz
DRAM: 256 MB
POST: passed
CPLD: revision 10
FLASH: 256 kB
PCI: scanning bus0 …
dev fn venID devID class rev MBAR0 MBAR1 MBAR2 MBAR3
00 00 1057 0006 060000 14 00000008 00000000 00000000 00000000
14 00 166d 0001 060000 02 f0000008 00000000 f1000008 f1001008
15 00 104c ac55 060700 01 f1002000 f1003000 00000000 00000000
16 00 8086 1209 020000 09 f1004000 f0000001 f1020000 00000000
IDE: pci1520#0, pci1520#1
In: serial
Out: serial
Err: serial
IDE: Bus 0: OK, Bus 1: Empty
Device 0: Model: CF 256MB Firm: Ser#: GHS3ABPCF05030200007
Type: Removable Hard Disk
Capacity: 250.7 MB = 0.2 GB (513536 x 512)
Net: i82559#0, sibyte#0

Hit any key to stop autoboot: 0
Loading image 0:0…………………………
Verifying checksum…
Booting image…
Loading .text @ 0x00800000 (19232 bytes)
Loading .data @ 0x00805000 (31436800 bytes)
Clearing .bss @ 0x02600000 (12756 bytes)
## Starting application at 0x00800000…Í
Aruba Networks Model A5xxx
ArubaOS Version 3.3.3.4 (build 23333 / label #23333)
Built by p4build@stan on 2010-01-27 at 11:02:18 PST (gcc version 3.4.1)
Copyright (c) 2002-2010, Aruba Networks, Inc.

<<<<< Welcome to Aruba Networks – Aruba SC-II >>>>>

Performing CompactFlash fast test… Passed.
Reboot Cause: User reboot.
Restoring the database…done.
Performing intra-version configuration upgrade for version 3.3.
Saving current config file default.cfg as default.cfg.2010-03-31_17-21-20
Generating new configuration.
Configuration upgrade complete.
Reading configuration from factory-default.cfg

***************** Welcome to the Aruba5000 setup dialog *****************
This dialog will help you to set the basic configuration for the switch.
These settings, except for the Country Code, can later be changed from the
Command Line Interface or Graphical User Interface.


Commands: <Enter> Submit input or use [default value], <ctrl-I> Help
<ctrl-B> Back, <ctrl-F> Forward, <ctrl-A> Line begin, <ctrl-E> Line end
<ctrl-D> Delete, <BackSpace> Delete back, <ctrl-K> Delete to end of line
<ctrl-P> Previous question <ctrl-X> Restart beginning


Enter System name [Aruba5000]:
Enter VLAN 1 interface IP address [172.16.0.254]:
Enter VLAN 1 interface subnet mask [255.255.255.0]:
Enter IP Default gateway [none]:
Enter Switch Role, (master|local) [master]:
Enter Country code (ISO-3166), <ctrl-I> for supported list: us
You have chosen Country code US for United States (yes|no)?: yes
Enter Time Zone [PST-8:0]:
Enter Time in GMT [01:21:32]:
Enter Date (MM/DD/YYYY) [4/1/2010]:
Enter Password for admin login (up to 32 chars): *****
Re-type Password for admin login: *****
Enter Password for enable mode (up to 15 chars): ******
Re-type Password for enable mode: ******
Do you wish to shutdown all the ports (yes|no)? [no]:

Current choices are:

System name: Aruba5000
VLAN 1 interface IP address: 172.16.0.254
VLAN 1 interface subnet mask: 255.255.255.0
IP Default gateway: none
Switch Role: master
Country code: us
Time Zone: PST-8:0
Ports shutdown: no

If you accept the changes the switch will restart!
Type <ctrl-P> to go back and change answer for any question
Do you wish to accept the changes (yes|no)yes
Creating configuration… Done.

System will now restart!

Shutdown processing started

Step 4: After switch restarts, stop the boot sequence and reset the ‘cfgfile’ parameter by issuing the ‘setenv cfgfile’ command. Save and verify the new boot parameter configuration.

CPBoot 1.1.6 (build taylor@harpua-ENG.0000)
Built: 2004-08-09 11:56:39 (with gcc 2.95)

CPU: MPC8245 Revision 16.20 at 333.333 MHz: 16 kB I-Cache 16 kB D-Cache
Board: M-Switch Local Bus at 133.333 MHz
DRAM: 256 MB
POST: passed
CPLD: revision 10
FLASH: 256 kB
PCI: scanning bus0 …
dev fn venID devID class rev MBAR0 MBAR1 MBAR2 MBAR3
00 00 1057 0006 060000 14 00000008 00000000 00000000 00000000
14 00 166d 0001 060000 02 f0000008 00000000 f1000008 f1001008
15 00 104c ac55 060700 01 f1002000 f1003000 00000000 00000000
16 00 8086 1209 020000 09 f1004000 f0000001 f1020000 00000000
IDE: pci1520#0, pci1520#1
In: serial
Out: serial
Err: serial
IDE: Bus 0: OK, Bus 1: Empty
Device 0: Model: CF 256MB Firm: Ser#: GHS3ABPCF05030200007
Type: Removable Hard Disk
Capacity: 250.7 MB = 0.2 GB (513536 x 512)
Net: i82559#0, sibyte#0

Hit any key to stop autoboot: 0
cpboot>
cpboot> setenv cfgfile

cpboot> saveenv
Saving Enviroment to NVRAM…

cpboot> printenv

bootcmd=boot flash
bootdelay=2
baudrate=9600
filesize=167a784
stdin=serial
stdout=serial
stderr=serial

cpboot> reset


Step 5: After the switch reboots, it comes back up with the ‘defaulted’ configuration. You can now restore the configuration either from an existing backup on flash or by configuring the switch for IP connectivity to a server where the backup is stored and copy the backed up file.

CPBoot 1.1.6 (build taylor@harpua-ENG.0000)
Built: 2004-08-09 11:56:39 (with gcc 2.95)

CPU: MPC8245 Revision 16.20 at 333.333 MHz: 16 kB I-Cache 16 kB D-Cache
Board: M-Switch Local Bus at 133.333 MHz
DRAM: 256 MB
POST: passed
CPLD: revision 10
FLASH: 256 kB
PCI: scanning bus0 …
dev fn venID devID class rev MBAR0 MBAR1 MBAR2 MBAR3
00 00 1057 0006 060000 14 00000008 00000000 00000000 00000000
14 00 166d 0001 060000 02 f0000008 00000000 f1000008 f1001008
15 00 104c ac55 060700 01 f1002000 f1003000 00000000 00000000
16 00 8086 1209 020000 09 f1004000 f0000001 f1020000 00000000
IDE: pci1520#0, pci1520#1
In: serial
Out: serial
Err: serial
IDE: Bus 0: OK, Bus 1: Empty
Device 0: Model: CF 256MB Firm: Ser#: GHS3ABPCF05030200007
Type: Removable Hard Disk
Capacity: 250.7 MB = 0.2 GB (513536 x 512)
Net: i82559#0, sibyte#0

Hit any key to stop autoboot: 0
Loading image 0:0…………………………
Verifying checksum…
Booting image…
Loading .text @ 0x00800000 (19232 bytes)
Loading .data @ 0x00805000 (31436800 bytes)
Clearing .bss @ 0x02600000 (12756 bytes)
## Starting application at 0x00800000…Í
Aruba Networks Model A5xxx
ArubaOS Version 3.3.3.4 (build 23333 / label #23333)
Built by p4build@stan on 2010-01-27 at 11:02:18 PST (gcc version 3.4.1)
Copyright (c) 2002-2010, Aruba Networks, Inc.

<<<<< Welcome to Aruba Networks – Aruba SC-II >>>>>

Performing CompactFlash fast test… Passed.
Reboot Cause: User reboot.
Restoring the database…done.
Performing intra-version configuration upgrade for version 3.3.
Saving current config file default.cfg as default.cfg.2010-03-31_17-23-25
Generating new configuration.
Configuration upgrade complete.
Reading configuration from default.cfg
Retrieving Configuration…will take approximately 1 minute
Configuration upgrade complete.

(Aruba5000)
User:

Configure URL transformation to rewrite and proxy requests

CLI Reference;

  • add transform profile proxy_rewrite
  • add transform action rewrite1 proxy_rewrite 10
  • set transform action rewrite1 -priority 10 -reqUrlFrom “http://www.company.com/key/(.*)” -reqUrlInto “http://www.external.com/$1” -resUrlFrom “http://www.external.com/(.*)” -resUrlInto http://www.example.com/key/$1
  • add transform policy rewrite_pol “HTTP.REQ.URL.PATH.GET(1).EQ(\”key\”) && http.REQ.HOSTNAME.EQ(\”www.example.com\”)” proxy_rewrite
  • bind transform global rewrite_pol 100

How to redirect HTTP request to HTTPS using responder

CLI Reference;

Redirect URL based on HOSTNAME using Responder Policy

To Configure on CLI:

Responder Action and Policy:

>add responder action Redirect-Action redirect “\”https://merterdil.com”” -responseStatusCode 302

>add responder policy Redirect-Policy “HTTP.REQ.HOSTNAME.CONTAINS(\”test\”)” Redirect-Action

Binding to LB Virtual Server:

>bind lb vserver Test_VIP -policyName Redirect-Policy -priority 100 -gotoPriorityExpression END -type REQUES

SigRedWindows DNS Server Remote Code Execution Zafiyeti

Çözüm;

Windows Update sonrası CredSSP RDP Problem Çözümü

CMD’yi admin olarak çalıştırıyoruz.

. htaccess file example WordPress