There is no way to blink the LEDs on invidual ports that will work in every system. However, with some chassis and RAID cages it is possible to use the tw_cli to blink specified ports.
Here is a Linux example:
The following bash script will blink the LED once per second. The controller number is CC, and the port number is PP:
while true
do
tw_cli /cCC/pPP show smart
sleep 1
done
Under Windows, the following visual basic script will accomplish the same task. The script must be in a file, as visual basic commands cannot be executed from the DOS prompt.
While true
WScript.Sleep 1000
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.Run “tw_cli /cCC/pPP show smart”
WEnd
Outside = DHCP (Cable connection single IP)
Inside = 192.168.0.0/24
Password = password
Port 0 = WAN
Port 1-7 = Local
NameServer = Google
ASA SSH = Available only from inside
ASA ASDM = Available only from inside
*One example access-list authorized connection from outside to 8888 port redirect to 192.168.0.60 to port 80
hostname asa5505
passwd password
enable password password
interface vlan1
nameif outside
interface vlan2
nameif inside
interface Ethernet0/0
switchport access vlan 1
speed auto
no shutdown
interface Ethernet0/1
switchport access vlan 2
no shutdown
interface Ethernet0/2
switchport access vlan 2
no shutdown
interface Ethernet0/3
switchport access vlan 2
no shutdown
interface Ethernet0/4
switchport access vlan 2
no shutdown
interface Ethernet0/5
switchport access vlan 2
no shutdown
interface Ethernet0/6
switchport access vlan 2
no shutdown
interface Ethernet0/7
switchport access vlan 2
no shutdown
interface vlan1
ip address dhcp setroute
interface vlan2
ip address 192.168.0.1 255.255.255.0
dns domain-lookup outside
dns domain-lookup inside
dns server-group DefaultDNS
name-server 8.8.8.8
ip verify reverse-path interface outside
ip verify reverse-path interface inside
domain-name techmtl.com
crypto key generate rsa noconfirm
ssh 0 0 inside
ssh version 2
http server enable
http 0 0 inside
access-list outside_in permit tcp any interface outside eq 8888
static (inside,outside) tcp interface 8888 192.168.0.60 80 netmask 255.255.255.255
access-group outside_in in interface outside
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
global (outside) 1 interface
client$ mkdir -p ~/.ssh
client$ chmod 700 ~/.ssh
client$ cd ~/.ssh
client$ ssh-keygen -t dsa
$ scp -p id_dsa.pub remoteuser@remotehost:
client$ ssh remoteuser@remotehost
remotehost$ mkdir -p ~/.ssh
remotehost$ chmod 700 ~/.ssh
remotehost$ cat id_dsa.pub >> ~/.ssh/authorized_keys (Appending)
remotehost$ chmod 600 ~/.ssh/authorized_keys
remotehost$ mv id_dsa.pub ~/.ssh
remotehost$ exit
client$ ssh remoteuser@remotehost (will work immediately if the passphrase was set to empty, otherwise it will ask you for a passphrase)
tar -cvf archive.tar files/
tar -xvf archive.tar
c = create
v = verbose (optional)
f = output file
x = extract
To setup the ip address you need to add the following line in /etc/rc.conf
ifconfig_lnc0="inet 192.168.0.10 netmask 255.255.255.0"
- Assuming that the network card you are using is lnc0.
AND
defaultrouter="192.168.0.1"
- Assuming that your gateway (router) address is 192.168.0.1
To setup your dns server ip you need to edit /etc/resolv.conf
nameserver 192.168.0.1
- Assuming that your dns server is 192.168.0.1
/etc/rc.d/netif restart
/etc/rc.d/routing restart
Where to find them?
http://rpmfind.net/
- Install package
rpm -ivh {rpm-file}
- Upgrade package
rpm -Uvh {rpm-file}
- Remove package
rpm -ev {rpm-file}
- Remove package without checking dependencies
rpm -ev --nodeps {rpm-file}
- Display list of all installed RPMs
rpm -qa
- Display list of all recently installed RPMs
rpm -qa --last
- Show package info
rpm -qi {rpm-file}
- Find from what package the file came from
rpm -qf {/path/to/file}
- Display list of configuration file(s) for a package
rpm -qc {pacakge-name}
- Display list of configuration files for a command
rpm -qcf {/path/to/file}
- Find out what dependencies a rpm file has
rpm -qpR {.rpm-file}