Entradas

Tutorial para crear archivos batch en Windows

Imagen
Thanks to: http://norfipc.com/ Manual sobre la creación y edición de los archivos batch. Aprender a hacer nuestras propias aplicaciones copiando y pegando el código en el Bloc de notas. Guía paso por paso, ejemplos prácticos, reglas y trucos. Sencillo manual en el que se explica de forma detallada los principios elementales, para crear las aplicaciones ejecutables conocidas popularmente como archivos BATCH o BAT. Introducción al mundo de la programación batch, uso de los comandos más comunes de la consola de CMD, para crear aplicaciones que se pueden usar en Windows para infinidad de tareas prácticas. Como crear un archivo batch paso a paso. Ejemplos prácticos para copiar y pegar el código, consejos y trucos. Precauciones a tener en cuenta. Herramientas para descargar que facilitan la creación de estas aplicaciones y probarlas correctamente.  ¿Que son los archivos batch? Los archivos batch, también conocidos popularmente como archivos BAT, son aplicaciones ejecutables. Son...

Connecting to and Configuring Cisco Routers with 'Cisco Configuration Professional'

Imagen
Thanks to: http://www.petenetlive.com/ It's not often I work on Cisco routers, but as I tend to do most of the Cisco  ASA  Firewalls, I'm the unofficial "Cisco Guy". Which is fine until someone wants a router or some complex switching, then I need to do some heavy duty frowning. Last time I put in a Cisco router it was a baby Cisco 800 series (an 877W) so I assumed the 1921  ISR  router I had to put in would be the same. Before I used the Cisco  SDM  console that's now either depreciated or not used, and a quick look in the flash memory of the router told me there was nothing in there apart from the  IOS . Now for all your web based router needs, you use the "Cisco Configuration Professional" software, it comes in two flavours: 1. Express - this installs on the router itself and is a cut down version. 2. PC Version - the full suite of tools installs on a Windows PC (that has Java installed)  Note : is does  NOT  need anything...

Backup and Restore a Cisco Router with TFTP

Imagen
Thanks to: http://www.petenetlive.com/ Problem It's been a long time since I ran through  setting up a TFTP  server, but I still use 3CDeamon. Below I'll run though the simple commands to back up, and restore the routers configuration. Solution Backing up a Cisco Router 1. First you have to  setup a TFTP server , and know the  IP  address of the machine it's on! 2. Connect to the router either via console cable,  Telnet  or  SSH . 3. Log in > Go to enable mode > issue a "copy running-config tftp"* command > Supply the  IP address of the  TFTP  server > Give the backup file a name. Note : You can also use startup-config to copy the config saved in  NVRAM  rather than the running-config. User Access Verification Username: username Password: PeteRouter#enable PeteRouter#copy running-config tftp Address or name of remote host []? 10.10.0.1 Destination filename [PeteRouter-confg]? PeteRouter_Back...

Install and Use a TFTP Server

Imagen
Thanks to: http://www.petenetlive.com/ There are many free tftp applications, my personal favourite is 3Cdaemon, as it also has a built in syslog server and an FTP server. heres how to install it on your computer. There are a number of places you can download 3CDeamon or just  CLICK HERE Solution 1. Download the files and extract them to your PC, then run the setup.exe file. 2. At the Welcome screen > Next. 3. At the license screen > Yes. 4. Either accept the default location or choose your own > Next. 5. Leave it on the default > Next. 6. OK. 7. Whwn its done > Finish. 8. Launch the application. 9.Ensure the "TFTP Server" section is selected > Click the "Pen knife" Icon labelled "Configure TFTP Server". 10. Change the Upload / Download directory to something you will find easliy (I usually create a "TFTP Root" folder on the C: drive.

Bulk Export Users From One Domain, and Import Into Another

Imagen
Thanks to: http://www.petenetlive.com/ Problem I've written in the past about  bulk importing users with CSVDE , but what if you want to move/migrate your users to another domain? You first need to export all the users, then import them into the new domain. Solution Step 1 Export Domain Users to CSV File 1. Here all my users are in one  OU , if that OU has 'nested OU's within it that's OK. 2. The command to 'export' is as follows; Note : You need to 'run as administrator' csvde -d {LDAP Path} -f c:\filename.csv Example csvde -d "ou=Main-Site,dc=petenetlive,dc=com" -f C:\ExportedUsers.csv 3. The users will be exported. If it fails at this point it will give you a descriptive error,  CSVDE has been around for a while, Google the error (most fixes are pretty simple). 4. Now open the  CSV  File with Excel, the second line will probably be the OU, you can leave this here if you want but if your target OU is different (o...

Cisco ASA5500 Update System and ASDM (From CLI)

Imagen
Thanks to: http://www.petenetlive.com/ Problem Below is a walkthrough for upgrading the  OS  image and  ASDM  using  CLI , you will need a  TFTP server up and running with the files sat in the TFTP servers upload directory.  NOTE  for updated ASA  and ASDM software you need a valid Cisco  CCO  Login and support contract. For information on Installing and using a  TFTP  Server  CLICK HERE Warning: Before upgrading/updating the  ASA  to version 8.3 (or Higher) Check to see if you have the correct amount of  RAM  in the firewall ("show version" command will tell you). This is  VERY IMPORTANT  if your  ASA  was shipped  before February 2010 . See the link below for more information. ASA - Memory Error (Post upgrade to version 8.3) Warning 2: Be aware, if you are upgrading to an OS of 8.4(2)  or newer  you can no longer access the device via  SSH...