Wednesday, May 2, 2012

Mount a VMware a Virtual Disk in Windows

How to Mount a VMware Virtual Disk in Windows

Here is handy tool that is part of VMware Workstation, but isnt as well know as some features but can be a real timesaver!

Let’s say your working on a Virtual Machine however it is turned off but you quickly need to pull an important file from it to use or check something you would normally have to go through the process of booting the whole VM to get to the file which may not be desirable if it takes a while to boot the VM, or you dont have the spare RAM (maybe you already have another VM or two running).

Thankfully, VMware can save you some hassle as it includes a tool to map VMware virtual hard disks directly to to the host computer without needing to boot a Virtual Machine at all. To use this tool simply go to File > Map or Disconnect Virtual Disks and click on the Map option, then point it to the .vmdk virtual disk file and select the drive letter to map it to. When you click Ok the drive will load which can take a few seconds and then you will have the disk available to use.

clip_image002

clip_image004

clip_image006

clip_image008

ScreenShot036

There are however a couple of important limitations to note:

· You can only mount partitions that are formatted FAT or NTFS (on Windows anyway), any non-FAT or NTFS partitions that exist in a Virtual Disk won’t be mounted.

· You can’t mount a Virtual Disk that is compressed, encrypted or set to have read-only permissions.

· To run the Virtual Machine that uses a mounted Virtual Disk, you must first disconnect the disk via the Map or Disconnect Virtual Disks menu.

Finally, here is a final warning that I have taken from the VMware Manual that is worth reading if you make use of snapshots (either linked or un-linked ones):

Caution VMware recommends that you leave the check box “Open file in read-only mode” selected in the Map a Virtual Disk dialog box. This setting prevents you from accidentally writing data to a virtual disk that might be the parent of a snapshot or linked clone. Writing to such a disk might make the snapshot or clone unusable.

Based on: http://www.monkeydust.net/2010/02/24/how-to-mount-a-vmware-virtual-disk-in-windows/

Monday, April 30, 2012

Homemade “Find My iPhone” for Android – Free

iPhone users can pay $99 per year for a tool to find their lost iPhone. On Android, just under $6.50 (once) lets you build your own GPS-locating, SMS-triggered tracker for your lost-or-stolen Precious. Here's how to do it.

After installing a program and setting up a script, you'll be able to set your phone to watch for an SMS, from a certain number, containing a certain piece of text. When it finds it, you can have your phone buzz, make a sound, even say something like "Help!" out loud, and pop up a text on the screen indicating that something is amiss. That's the warning shot, for those do-gooders who actually return phones. In any case, your phone quietly turns on its GPS and Wi-Fi sensors in the background, then sends you back a text with the best GPS data it could get. You can modify this script to your heart's content, though, to be more obnoxious, send back more info, or run other programs when you send your code.

Check out the video above for a low-rent crime thriller that shows this system in action.

As some regular readers might have guessed, the secret sauce to building this app is Tasker. It's an automation app for Android that costs about $6.25 U.S. at the moment, available both through the Market and the developer's own site. We've previously walked through the basics, explored geekier setups, and highlighted some awesome reader uses. Now we're going to walk through one of the most useful Tasker profiles we've seen, the root setup for which came from Lifehacker reader Eric.

Set Up a Location-Grabbing Profile

clip_image002

Your Android phone does not constantly check its location when GPS is turned on—it'd be kind of scary if it did, not to mention battery murdering. We're going to create a profile that does make the phone grab its coordinates as best it can, using both a GPS fix, if available, and triangulation of nearby Wi-Fi hotspots that Google knows about.

On Tasker's main "Profiles" screen, hit the New button at bottom. Choose the "Location" as your Context—the "if" in your "if/then" automation. Make sure that both Net and GPS are turned on with green highlights, and that the Radius option is set to its closest option, 30 meters. Just hit "Done" here, because we don't actually need to make Tasker find our current location, but simply have a profile that does that when asked to. You'll see what we mean in a minute.

clip_image004

On the next screen, where you're asked to add Tasks to fire off when your Context is met, we're going to add just one simple task. Hit the "+" button in the lower-left, choose the "Tasker" category, then select "Stop" and hit "Done" on the pop-up screen, then "Done" again on the list of Tasks. All we want this profile to do is turn on and get the location. Adding "Stop" merely makes it a one-trick pony.

clip_image006

Back at the main screen, find that location-fixing Profile you've just created, with the flag icon in the left-hand column. Tap once on that flag icon, then expand the arrow next to the "Profile" option. Select the "Name" or "Rename" option, and give it a name that makes sense, like "GetGPSfix." You're done with that profile now, so let's create the real phone-finding automaton.

Build Your Phone-Finding Snitch Profile

clip_image008

Back at Tasker's main Profiles screen, hit the New button again, but this time choose "Event" as your context, pick the "Phone" category, and "Received SMS" as your event.

You'll want to think about the number and message you enter in here. In my case, I use a Google Voice account to manage my SMS, so I effectively have two numbers—the "hard" number that my phone carrier assigns me, and which Tasker is monitoring on the phone, and my Google Voice number, which I can send texts from using any browser. If you're not rolling with Google Voice, you can easily set up the phone of a significant other or very good friend—just make the activation text very unique.

Be sure to format the phone number watched for with a "+1" in front of your full 10-digit number—that's how it works in the U.S., at least. If you're setting up another person's phone as the trigger number, you can press and hold on the field under "Sender" and select that person from your Contacts list, too. In the "Message" field, use a code that nobody's going to send you casually—"SOS" in caps should work fine.

clip_image010
At the Tasks list, it's time for you to set up your actual emergency plan. In general, you're going to create some noise on the phone itself and leave a call-back number (your friend or your Google Voice account), then turn on GPS and Wi-Fi and text yourself with the inside info anyways.

Here's how I set up my list of tasks—the order is somewhat important, but you can add or modify these steps to your liking. If you come up with something good farther down the line, no worries: you can press and hold on any task and drag it up or down the priority list.

Hit the "+" button before each task to create it, then follow these menu options:

§ Alert -> Notify Sound: The "Title" field will show up in your Notifications Bar, along with the "Text" you include. Don't change "Number," but feel free to fire off a custom sound file, if you'd like.

 clip_image012

Alert -> Popup: Enter something like "Help!" in the Title, then fill out the Text as if it were a Post-It note on your phone. My text, derived from Eric's suggestion: "I have been stolen or left somewhere inadvertently. Please contact Kevin at [friend's phone number]." Move the Time slider all the way to the right, to keep that pop-up message for 38 seconds—though, if he was savvy with an Android, the thief or finder could hit the Back or Home buttons to dismiss it. But that's okay, because we're moving ahead!

  • Misc GPS: Set to "On."
  • Net -> WiFi: Set to "On."
  • Tasker -> Profile Status: Long-press on the field under Name, then pick that profile we created above to get the location fix—"GetGPSfix" in my case. Set it to go "On."
  • Tasker -> Wait: Move the Seconds slider over to about 30. We're waiting 30 seconds, after turning on GPS and WiFi, to give the location grabber some time to get a fix, or maybe the thief or reluctant returner to move near a window.

 clip_image014
Phone -> Send SMS: Enter your Google Voice or friends' number in the Number field, then enter this text in the Message. You can change it up, add more variable data, but be sure to include at least the following variables in all caps with a percentage sign in front:

It is %DATE at %TIME. Phone is located at: %LOC. Batt: %BATT.

You'll get back just what it sounds like, but the "%LOC" comes back as a pretty long string of GPS coordinates, so you'll want to keep it relatively simple so as not to break the string into two different texts.

  • Misc -> GPS: Set to Off.

You could have the WiFi turn off at the end, too, or bring up another pop-up message letting the thief know that his location is being constantly monitored—but I like to go the quiet route, rather than have my phone end up smashed or discarded.

Track Your Phone

clip_image016
Click image above for a larger view.

With that profile running on Tasker, your phone is now quietly monitoring incoming SMS messages to see if any come from that one number, with that one message. If it does, it sends back a text similar to what you see above. The nice thing about those GPS coordinates? You can plug them directly into Google Maps and see where your phone went off to—or help the police see.

clip_image018
I took my phone to the Sweet_ness 7 Cafe in Buffalo, placed it on a table a few feet away from a window, and sent myself a text from Google Voice. Lo and behold, the GPS coordinates it sent back were right on the money—even if Street View hadn't been updated there since the cafe renovated the space. Your mileage, vis-a-vis the thief's activities, will certainly vary, but since you're the one with control over your GPS and Wi-Fi toggles, there's a good chance your phone will eventually end up in the great wide open. And if you simply left your phone sitting somewhere, you can get a rough fix on where it is, and see how much battery life it's got left before you'll have to stop trying.


Thanks again to reader Eric for writing in with his awesome use of Tasker, along with a helpful poster in the Android Forums who explained the best way to get a GPS fix in Tasker with separate profiles.

Got questions on the setup? Have a craftier idea for a lost or stolen phone script? We want to hear it all in the comments.

Takem From:  http://lifehacker.com/5611003/build-a-find-my-iphone-clone-for-android

On the Android Market, if you search by “Find My Phone”, you can find apps that do this by default.

Monday, April 23, 2012

Configurações 3G e MMS (Portugal)

Abaixo têm as configurações da internet 3G e MMS extraidas de telemoveis android (http://www.androidpt.info/index.php?title=Categoria:APN).

Com estas é possivel configurar Internet e MMS em vários telemoveis desbloqueados, adicionalmente servem também para configurar PENs 3G desbloqueadas ou ligadas a um router Wifi.

TMN – Internet e MMS

Internet

Name: tmn internet
APN: internet
Dial Number: *99#
Authentication Mode: PAP
Proxy: not set
Port: not set
Username: not set
Password: not set
Server: *
MMSC: not set
MMS proxy: not set
MMS port: not set
MCC: 268
MNC: 06
APN type: default

MMS

Name: mms tmn
APN: mmsc.tmn.pt
Proxy: not set
Port: not set
Username: tmn
Password: tmnnet
Server: *
MMSC: http://mmsc
MMS proxy: 010.111.002.016
MMS port: 8080
MCC: 268
MNC: 06
APN type: mms


Optimus - Internet e MMS

Internet

Name: Optimus;
APN: myconnection; or umts;
Dial Number: *99#; or *99***1#;
Authentication Mode: ???
Proxy: 62.169.66.5;
Port: 8799;
Username: Deixar em branco;
Password: Deixar em branco;
Server: umts;
MMSC: portal.optimus.pt;
MMS Proxy: Deixar em branco;
MMS Port: Deixar em branco;
MCC: 268;
MNC: 03;
APN type: nenhuma;
Prima tecla de Menu;
Seleccione Save.
Desligue e volte a ligar o aparelho.


MMS

Nota: configuração deverá ser efectuada em letra minúscula.
Prima tecla de Menu;
Settings;
Wireless Controls;
Mobile Networks;
Access Point Names;
Prima tecla de Menu;
Seleccione New APN;
Name: Optimus MMS;
APN: umts;
Proxy: 62.169.66.5;
Port: 8799;
Username: Deixar em branco;
Password: Deixar em branco;
Server: umts;
MMSC: mmsc:10021/mmsc;
MMS Proxy: 62.169.66.5;
MMS Port: 8799;
MCC: 268;
MNC: 03;
APN Type: nenhuma;
Prima tecla de Menu;
Seleccione Save;
Desligue e volte a ligar o aparelho.
Envie a primeira MMS para activar recepção.

Existem 3 APN kanguru:
kanguru-portatil - tarifários móveis
kangurufixo - tarifários fixos
kanguru-tempo - tarifários pré-pagos 
  
  
Vodafone - Internet e MMS

Internet

Name: Vodafone Internet
APN: net2.vodafone.pt (ou internet.vodafone.pt)
Dial Number: *99#
Authentication Mode: CHAP
Proxy: not set
Port: not set
Username: vodafone
Password: vodafone
Server: *
MMSC: not set
MMS proxy: not set
MMS port: not set
MCC: 268
MNC: 01
APN type: default


MMS

Name: Vodafone MMS
APN: vas.vodafone.pt
Proxy: not set
Port: not set
Username: vas
Password: vas
Server: *
MMSC: http://mms/servlets/mms
MMS proxy: 213.030.027.063
MMS port: 8799
MCC: 268
MNC: 01
APN type: mms

Nota: Os Magic vendidos pela Vodafone PT têm configurado como APN net2.vodafone.pt.
Definição alternativa de APN
A seguinte configuração também é válida.

Name: Vodafone Net2
APN: net2.vodafone.pt
Proxy: iproxy.vodafone.pt
Port: 80
Username: vodafone
Password: vodafone
Server: <Not set>
MMSC: http://mms.vodafone.pt/servlets/mms
MMS proxy: iproxy.vodafone.pt
MMS port: 80
MCC: 268 MNC: 01
Authentication type: <Not set>
APN type: default,supl,mms

 

Zon Mobile - Internet e MMS

NOTA: Se estas configurações não funcionarem, aconselhamos a que experimente as APNs da Vodafone. Várias fontes indicam que essa configuração funciona para os cartões ZON.

Internet

Name: Zon Internet
APN: internet.zon.pt
Dial Number: *99#
Authentication Mode: CHAP
Proxy: not set
Port: not set
Username: vas
Password: vas
Server: *
MMSC: not set
MMS proxy: not set
MMS port: not set
MCC: 268
MMNC: 01
APN type: default

MMS

Name: Zon MMS
APN: vas.zon.pt
Proxy: not set
Port: not set
Username: vas
Password: vas
Server: *
MMSC: http://mms/servlets/mms
MMS proxy: 213.030.027.063
MMS port: 8799
MCC: 268
MNC: 01
APN type: mms

Baseado em: http://www.androidpt.info/index.php?title=Categoria:APN

Tuesday, April 10, 2012

Lock Your Workstation Using Bluetooth (Phone)

Friday, December 3rd, 2010 by William Edwards

In most enterprise environments, desktop locking is a part of group policy and adds to the security of your network by ensuring that a passer-by can’t use your workstation for nefarious purposes. BlueProximity/BlueLock are the perfect programs to help increase this security to your desktop.  It does so by detecting one of your bluetooth devices, most likely your mobile phone, and keeping track of its distance. If you move away from your computer and the distance is above a certain level (no measurement in meters is possible) for a given time, it automatically locks your desktop (or starts any other shell command you want). You can also use the program to do fun and interesting things such as automatically changing your IM status to away when you leave your computer or playing an audio file to gloriously praise your return.

clip_image004

The process itself it relatively simple. You just need to pair your phone to your computer, and then install either BlueProximity or BlueLock depending on if you’re using Linux or Windows respectively. If you’re using Linux, you can simply install BlueProximity via your distribution’s package manager.

Ubuntu / Debian

sudo apt-get install blueproximity

Windows

Install via SourceForge: http://sourceforge.net/projects/bluelock/

From there you can pair your phone, and have fun!

image

Taken From: http://www.misdivision.com/blog/how-to-wirelessly-lock-your-workstation-using-blueproximitybluelock-with-your-phone

Monday, March 19, 2012

DNS with a DD-WRT Router

Setup Local/Internal DNS with a DD-WRT Router

I’ve talked about some features of the DD-WRT router before, and one of the things I’ve been playing around with lately is DNSMasq. There’s a good chance you haven’t noticed this setting in DD-WRT because it’s not something most people would ever think to use. Plus DNSMasq can be found in two different areas within DD-WRT since it can be used for both DHCP assignments as well as internal/local DNS management. What I will be focusing on is the local DNS aspect.

When is using DNSMasq useful for controlling DNS? Here are some examples as to why you may want to use it:

 

  • You have DNS pointing to something that is hosted on your home network and it is also accessible from outside your network. For example, you may have a security camera that has a domain attached to it (e.g. camera.example.com), and it’s accessed from both on and off your network. Using DNSMasq on your router you can make the domain, camera.example.com, point to the internal IP of the camera so that anyone who accesses that camera from within your network won’t have to rely on external DNS getting resolved. You should see at least a slight performance boost that way.

 

  • You want to override public DNS entries, such as google.com. You can obviously pull off some great pranks by directing traffic to sites like google.com or facebook.com to some custom site you create, but there are other reasons this is legitimately useful. Maybe you are testing a new version of your own website, but want to make sure it will work fine with the live domain. DNSMasq can help you accomplish that.

 

  • You want to create DNS for a site that is accessible using only a single word, such as intranet. Companies do this kind of thing all the time where an internal-only website can be reached without needing or wanting a publicly-accessible URL.

 

I know what you may be thinking… why wouldn’t you just update the HOSTS file on your local machine? Well, you could, but not all devices support that feature. By using DNSMasq the DNS change will work for anything connecting to your router, including mobile devices such as phones and tablets.

So what do you have to change in DD-WRT? Here’s what you need to do:

  1. Go to the Services tab once you’ve logged into the administration interface.
  2. Find the section labeled DNSMasq, and make sure the DNSMasq option is enabled.
  3. This is the fun part. In the Additional DNSMasq Options box type out your local DNS configurations in the format of one entry per line:
    • address=/machine_or_domain_name/ip_address – where machine_or_domain_name is what you want to create/change DNS for (e.g. camera.example.com, google.com, intranet) and ip_address is the new IP address you want it to point to.
  4. Apply the settings to DD-WRT, and you should be all set.

This is an example of what your DNSMasq settings may look like:

Ddwrt dnsmasq

If your devices don’t see the changes after they’ve been made you may need to try restarting them since that is often the simplest way to clear the DNS cache.

Taken From: http://cybernetnews.com/local-internal-dns-ddwrt/

Sunday, March 18, 2012

PuTTY With Multiple Windows (Tabs)

Get Tabs for your PuTTY

It seems like everybody uses the free PuTTY client for accessing SSH from Windows, but the lack of a tabbed interface has kept me using the commercial SecureCRT application for years… until now.

With the PuTTY Connection Manager you can not only use tabs, but also wrap PuTTY in a slick interface. The underlying client is still the same putty.exe that you are used to… in fact the application doesn’t even come bundled with it.

The first time you launch the application you’ll be asked to enter the location to your copy of PuTTY.

clip_image002

And finally, a tabbed version of PuTTY!

clip_image004

The connection manager can be docked to the side by using the little pushpin button.

clip_image006

Right-clicking on a tab or using the Tools menu will allow you to get to the PuTTY menu

clip_image008

In the configuration dialog you can specify a bunch of options including an automatic login macro or passing command line parameters to putty.

clip_image010

You can either click the configuration button above, or choose PuTTY Configuration from the tools menu.

clip_image012

Which brings up the PuTTY Configuration dialog for the actual putty.exe underlying application.

clip_image014

There’s a lot more features to this application that I haven’t gotten to yet… you can even change the theme.

Download PuTTY Connection Manager from puttycm.free.fr

Taken From: http://www.howtogeek.com/howto/the-geek-blog/get-tabs-for-your-putty/

Thursday, March 15, 2012

Enterasys Switches Crash Course

[ Login & Password ]

If admin / siemens doesn't work, try admin/none
default, no pwd, just enter
user : admin, rw, ro


C2(SU)-> set system login 'username' {super-user|read-write|read-only}{enale|disable}
C2(SU)-> clear system login 'username'
C2(SU)-> show system login
for rw and ro = set password
for admin = set system login
C2(SU)-> set password rw
C2(SU)-> set system password length 7


[ Assign IP address ]

C2(SU)-> set ip address x.x.x.x mask x.x.x.x gateway x.x.x.x
C2(SU)-> clear ip address
[ Webview ]

Default : enable
C2(SU)-> show webview : to see status of webview (default enable)
C2(SU)-> set webview enable : to enable webview
- login : http://172.16.2.10
C2(SU)-> show webview
WebView is Enabled


[ Set time ]
C2(SU)-> set time 7:50:00
C2(SU)-> set summertime enable

[ Set prompt ]
C2(SU)-> set prompt "switch 1"

[ Set system contact ]
C2(SU)-> set system name "Enterasys-C2.1"
C2(SU)-> set system location "Main Bldg 2nd Floor"
C2(SU)-> set system contact "ipBalance Admin (            888-999-0000      )Mr.admin@ipBalance.com This e-mail address is being protected from spambots. You need JavaScript enabled to view it "

[ Save configuration ]
C2(SU)-> save config

[ Configure ]
C2(SU)-> configure configs/Jan1_2004.cfg

[ Set command ]
C2(SU)-> set switch description 1 : describe switch name or location
C2(SU)-> set ip address {x.x.x.x} mask {255.255.255.0} gateway {x.x.x.x}
C2(SU)-> clear ip address
C2(SU)-> set time [mm/dd/yyyy][hh:mm:ss]
C2(SU)-> set logout 10 : closing session idle in 10 min
C2(SU)-> set port [enable|diable]
C2(SU)-> set port duplex
C2(SU)-> set cdp state disable fe.1.2
C2(SU)-> set cdp state disable fe.1.3
C2(SU)-> set vlan create 2
C2(SU)-> set vlan create 3
C2(SU)-> set vlan name 1 Management
C2(SU)-> set vlan egress 1 fe.1.1 tagged
C2(SU)-> set vlan egress 1 fe.1.22 untagged
C2(SU)-> set vlan egress 2 fe.1.1 tagged
C2(SU)-> set vlan egress 2 fe.1.2-14 untagged
C2(SU)-> set port alias fe.1.1 'To Computer room N1.1 Port 2'
C2(SU)-> set port vlan fe.1.14 2

[ show ]
C2(SU)-> show config port
C2(SU)-> show switch
C2(SU)-> show switch status 1
C2(SU)-> show system
C2(SU)-> show system hardware : to get serial#, MAC, Firmware version etc
C2(SU)-> show system utilization {cpu|storage}
C2(SU)-> show time
C2(SU)-> show console
C2(SU)-> show telnet
C2(SU)-> show system login : user login account info
C2(SU)-> show system lockout
C2(SU)-> show ip address
C2(SU)-> show ip protocol : shown "system IP address acquisition method: dhcp
C2(SU)-> show config port
C2(SU)-> show cdp
C2(SU)-> show port fe.1.14 (ex, show port *.*.*)
C2(SU)-> show port status fe.1.14 : shown on status of information for fe.1.14
C2(SU)-> show port counters fe.1.14
C2(SU)-> show port negotiation fe.1.14
C2(SU)-> show port broadcast fe.1.14
C2(SU)-> show spantree stats
C2(SU)-> show boot system

[ Lag ]
C2(SU)-> show lacp lag 0.1
C2(SU)-> set lacp enable
C2(SU)-> set lacp asyspri 1000
C2(SU)-> set lacp aadminkey lag.0.1 2000
C2(SU)-> set lacp static lag.0.6 fe.1.6
C2(SU)-> set lacp singleportlag enable
C2(SU)-> set port lacp fe.3.16 aadminkey 3555

[ Clear ]
C2(SU)-> clear config
C2(SU)-> clear vlan 3
C2(SU)-> clear vlan name 9
C2(SU)-> clear port vlan fe.1.3,fe.1.11
C2(SU)-> clear vlan egress 1 fe2.1
C2(SU)-> clear VNRAM

[ Reset ]
C2(SU)-> reset or reset 1 : reload switch 1

[ Configuration example ]
C2(SU)-> dir
C2(SU)-> show configuration outfile configs/
C2(SU)-> copy configs/ tftp://192.168.77.101/
using notepad, modify config
C2(SU)-> copy tftp://192.168.77.101/jan11_2006.cfg configs/jan11_2006.cfg
C2(SU)-> dir
C2(SU)-> configure configs/  : unit will reboot onto the modified config file
C2(SU)-> configure configs/Jan11_2006.cfg  :  to execute the"jan11_2006.cfg" configurationn file
C2(SU)-> delete configs/jan11_2006.cfg
C2(SU)-> clear config all
C2(SU)-> clear NVRAM
C2(SU)-> show snmp persistmode manual : manual save config
C2(SU)-> save config

[ Login & Password ]

If admin / siemens doesn't work, try admin/none
default, no pwd, just enter
user : admin, rw, ro

A2(SU)-> set system login 'username' {super-user|read-write|read-only}{enale|disable}
A2(SU)-> clear system login 'username'
A2(SU)-> show system login
for rw and ro = set password
for admin = set system login
A2(SU)-> set password rw
A2(SU)-> set system password length 7

[ Assign IP address ]
A2(SU)-> set ip address x.x.x.x mask x.x.x.x gateway x.x.x.x
A2(SU)-> clear ip address

[ Webview ]
Default : enable
A2(SU)-> show webview : to see status of webview (default enable)
A2(SU)-> set webview enable : to enable webview
- login : http://172.16.2.10
A2(SU)-> show webview
WebView is Enabled
[ Set time ]
A2(SU)-> set time 7:50:00
A2(SU)-> set summertime enable
[ Set prompt ]
A2(SU)-> set prompt "switch 1"
[ Set system contact ]
A2(SU)-> set system name "Enterasys-A2.1"
A2(SU)-> set system location "Main Bldg 2nd Floor"
A2(SU)-> set system contact "ipBalance Admin (            888-999-0000      ) Mr.admin@ipBalance.com "
 
[ Save configuration ]

A2(SU)-> save config

[ Configure ]
A2(SU)-> configure configs/Jan1_2004.cfg
[ Set command ]
A2(SU)-> set switch description 1 : describe switch name or location
A2(SU)-> set ip address {x.x.x.x} mask {255.255.255.0} gateway {x.x.x.x}
A2(SU)-> clear ip address
A2(SU)-> set time [mm/dd/yyyy][hh:mm:ss]
A2(SU)-> set logout 10 : closing session idle in 10 min
A2(SU)-> set port [enable|diable]
A2(SU)-> set port duplex
A2(SU)-> set cdp state disable fe.1.2
A2(SU)-> set cdp state disable fe.1.3
A2(SU)-> set vlan create 2
A2(SU)-> set vlan create 3
A2(SU)-> set vlan name 1 Management
A2(SU)-> set vlan egress 1 fe.1.1 tagged
A2(SU)-> set vlan egress 1 fe.1.22 untagged
A2(SU)-> set vlan egress 2 fe.1.1 tagged
A2(SU)-> set vlan egress 2 fe.1.2-14 untagged
A2(SU)-> set port alias fe.1.1 'To Computer room N1.1 Port 2'
A2(SU)-> set port vlan fe.1.14 2
[ show ]
A2(SU)-> show config port  :
A2(SU)-> show switch
A2(SU)-> show switch status 1
A2(SU)-> show system
A2(SU)-> show system hardware : to get serial#, MAC, Firmware version etc
A2(SU)-> show system utilization {cpu|storage}
A2(SU)-> show time
A2(SU)-> show console
A2(SU)-> show telnet
A2(SU)-> show system login : user login account info
A2(SU)-> show system lockout
A2(SU)-> show ip address
A2(SU)-> show ip protocol : shown "system IP address acquisition method: dhcp
A2(SU)-> show config port
A2(SU)-> show cdp
A2(SU)-> show port fe.1.14 (ex, show port *.*.*)
A2(SU)-> show port status fe.1.14 : shown on status of information for fe.1.14
A2(SU)-> show port counters fe.1.14
A2(SU)-> show port negotiation fe.1.14
A2(SU)-> show port broadcast fe.1.14
A2(SU)-> show spantree stats
A2(SU)-> show boot system
[ Lag ]
A2(SU)->
show lacp lag 0.1
A2(SU)-> set lacp enable
A2(SU)-> set lacp asyspri 1000
A2(SU)-> set lacp aadminkey lag.0.1 2000
A2(SU)-> set lacp static lag.0.6 fe.1.6
A2(SU)-> set lacp singleportlag enable
A2(SU)-> set port lacp fe.3.16 aadminkey 3555
[ Clear ]
A2(SU)-> clear config
A2(SU)-> clear vlan 3
A2(SU)-> clear vlan name 9
A2(SU)-> clear port vlan fe.1.3,fe.1.11
A2(SU)-> clear vlan egress 1 fe2.1
A2(SU)-> clear VNRAM
[ Reset ]
A2(SU)-> reset or reset 1 : reload switch 1

[ Configuration example ]
A2(SU)-> dir
A2(SU)-> show configuration outfile configs/
A2(SU)-> copy configs/ tftp://192.168.77.101/
using notepad, modify config
A2(SU)-> copy tftp://192.168.77.101/jan11_2006.cfg configs/jan11_2006.cfg
A2(SU)-> dir
A2(SU)-> configure configs/  : unit will reboot onto the modified config file
A2(SU)-> configure configs/Jan11_2006.cfg  :  to execute the"jan11_2006.cfg" configurationn file
A2(SU)-> delete configs/jan11_2006.cfg
A2(SU)-> clear config all
A2(SU)-> clear NVRAM
A2(SU)-> show snmp persistmode manual : manual save config
A2(SU)-> save config

[ Default Login & Password ]
Here is default  login passwords of the most Enterasys Switches.
A-Series, B-Series and C-Series Enterasys Switches.
User : admin
Password : [empty]
Try below commends to see current login

Enterasys_A2(SU)-> show system login
Password history size: 0 
Password aging        : disabled  
Username     Access           State  
admin          super-user      enabled 
ro               read-Only       enabled 
rw              read-write       enabled
To add user 'Chris' as a super-user
  Enterasys_A2(SU)-> set system login chris super-user enable
  Enterasys_A2(SU)-> show system login

Password history size: 0
Password aging        : disabled
Username     Access           State
admin       super-user          enabled
ro            read-Only           enabled
rw           read-write           enabled
chris         super-user           enabled
To delete user 'chris' from list

  Enterasys_A2(SU)-> clear system login chris

If you want to change password length 7
  Enterasys_A2(SU)-> set system password length 7

[ Syslog Server ]
While I was testing Splunk, I need to add more devices to Splunk index pages. This example shows how to configure Enterasys Switch to forward syslog message to the server. It's simple and easy to setup.
In this example, server's IP is 192.168.77.13 and UDP port 514 is used. Severity level is 8.

  Enterasys(su)>set logging server 1 ip-addr 192.168.77.12 port 514 severity 8 state enable

To verify

 
  Enterasys(su)>show logging server

IP Address    Facility   Severity      Description  Port  Status 
--------------------------------------------------------------- 1 192.168.77.12    local4    debugging(8)     default     514   enable
If you want to change default value to facility local 5 and severity 5, configure below.

Enterasys(su)>set logging default facility local 5 severity 5
To see currently logging severity levels for all applications on your devices, type below commands

Enterasys(su)>show logging application all

        Application   Current Severity Level
---------------------------------------------
89      CLIWEB                   6
90      SNMP                     6
91      STP                      6
92      Driver                   6
93      System                   6
94      Stacking                 6
112     UPN                      6
118     Router                   6
1(emergencies)  2(alerts)       3(critical)
4(errors)       5(warnings)     6(notifications)
7(information)  8(debugging)

[ Port Mirroring ]
source port 1/13
destinaion port 1/10

Console(Config)#interface Ethernet 1/1
Console(Config-if)#port monitor Ethernet 1/4
Console(Config-if)#

[ Upgrade Firmware ]
As you know Enterasys was named Cabletron company long long time ago. I guess more than decade Cabletron was one of strong vendor on switches market at that time. Due to I had really good experience with Cabletron product, I trust Enterasys's product line. Actually, I installed many Enterasys switches since 2005. Today, I just want to share a tip to upgrade firmware on Enterasys switches. Compare to generic 3rd party switch vendors, Enterasys release new firmware more often. Well, some of people might say due to all lot of bugs, but I like to say "Diligent and effort" (too much?).There are detailed documents from vendor, but this guide would be easier for beginner. Well, lets see what the steps to complete upgrading firmware are.
1. Find out what model of switch you are upgrading and what is current version of firmware running on the switch. Type "Show version" from the prompt.

- Model : C3G124-48
- Firmware : 01.01.02.0007

clip_image005
2. Go to the website "www.enterasys.com" and download proper firmware from the download library. and extract firmware to any folder your tftp server will use.

clip_image007

3. Assign IP address on the Enterasys switch in order to communicate with you computer which is running tftp server.
ex) computer 192.168.1.47, Enterasys switch is 192.168.1.8, default gateway .254

"set ip address 192.168.1.8 mask 255.255.255.0 gateway 192.168.1.254"


clip_image008
4. Ping the Enterasys switch from your computer.

clip_image009
5. Execute tftp server. (If you don't have, just down one from solarwinds)

clip_image011
6. Copy firmware from tftp server

Enterasys(su)->copy tftp://192.168.1.47/c3-series_01.02.04.0005 system:image
- I will take time...to be done (few minutes)

7. From the switch, make sure new firmware is uploaded and check which firmware version is on active.

clip_image012
8. Type to "set boot system c3-series_01.02.04.0005" to booting up switch with new firmware(active).
B2(su)>>set boot system c3-series_01.02.04.0005
Do you want to replace ? (y/n) y
Automatically Enterasys switch will reboot.

clip_image013

9. Confirm now, new firmware is on active status.
The complete CLI reference manuals can be found at:

Enterasys C2 (Configuration Guide) :
http://www.penteknoloji.com.tr/destek/c2/1.pdf
Enterasys C3 (Configuration Guide): http://www.penteknoloji.com.tr/destek/c3/2.pdf