There are a ton of useful Cisco commands that I do not use everyday but I still use often. This post is probably going to be one that gets updated frequently with new commands that I come across that I want to hold on to. So I am apologizing in advance in case this one gets a little messy. The actual Cisco command will be in bold lettering and in quotations.
Display Cisco stateful packet inspection session created becasue a policy map is applied on a specified zone pair - "show policy-map type inspect zone-pair sessions"
To show AnyConnect connected VPN users and their session info - "show vpn-sessiondb anyconnect"
To show that detailed status for active crypto sessions (i.e. VPN) - "show crypto session detail"
To delete a router config enter in the following command and reboot the router with out saving - "delete nvram:startup-config"
Here is how to create a LACP trunk on a Cisco switch:
"interface GigabitEthernet1/0/48
switchport mode trunk
channel-protocol lacp
channel-group 2 mode active"
Cisco 4K routers NAT ACL's can not use a Permit IP any any for the NAT overload statement. It has some issues with it, so you need to be more specific with the networks that it will be NAT'ing. For security reasons you should be specific anyways. By using a Permit IP any any NAT statement it will cause irregular behavior on the router, it very well may work but it also may just stop working.
"ip nat inside source list NAT interface GigabitEthernet0/0/0 overload
IP access-list extended NAT
10 permit ip 10.1.1.0 0.0.0.255 any
20 permit ip 10.1.2.0 0.0.0.255 any"
Welcome to my knowledge base blog, an IT technical blog about configurations and topics other topics related to Networking, VOIP and other aspects of IT. I hope this blog serves you well.
Thursday, May 16, 2019
ShoreTel: Recording Audio from a Physical ShoreTel Voice Switch Port
You can capture audio output from a ShoreTel Voice Switch physical port using VxWorks commands. The audio output is save the the HQ or DVS server that controls the switch. This is great when you are trying to trouble shoot voice corruption or audio issues
- From the Start menu, navigate to the Control Panel-->Administrative Tools and locate the IIS Manager
- Right click on the IIS Manage and select Properties. Then enable the ability to write to the FTP server by selecting the Write checkbox and clicking OK
- This enables the ability to write to the following director C:/inetpub/ftproot
- You may also need to edit the permission fo the C:/inetpub/ftproot directory and give the users group write access
- At the command prompt on the voice switch you would like to record from enter
- Record2file2 (23, 45, "test") i.e I want to record a call on a T1 on port 23 for 45 seconds and save the file with the name of test.
- The moment you press enter is when the recording will start
- Go the the C:/inetpub/ftproot directory and pull the two files <NAME>rx.pcm and <NAME>tx.pcm to your desktop.
- Using an audio editor (like Audacity or Cooledit) you will be able to listen and analyze the call
- Import the PCM file to Audacity using the following options
- File -> Import -> Raw Data
- Signed 16-bit PCM
- Big-endian
- 1 Channel (Mono)
- Sample Rate 8000 (8k)
Labels:
ShoreTel
Wednesday, May 15, 2019
Cisco: Copy a routers running config to a text file or flash drive
A lot of customers ask how they can pull a back up running configuration of their Cisco router. So here are the steps to do so.
- Open Putty
- On the left side select Logging under Session
- Select the ratio button next to All Session Output
- Press the Browse button and navigate to the location you wish to save the file and enter a file name in the file name field and click Save
- Click on Session
- In the Host name box enter the IP address of the device you want to connect to
- Select Telnet, SSH or Serial ratio button under the Connection type
- Click Open
- If you are using SSH and this is the first time you are connecting to this device on this computer you maybe asked to save the RSA key. Click Yes
- Enter your log in info to log into the router
- Depending on your privilege level you may need to type in Enable to get into enable mode
- Type Show run and press enter
- Some of the configuration will be shown, press the Space bar to show more
- Once all the configuration has been displayed type Exit and press enter
- The Putty session should close
- Browse to the location where you saved your file and change the extension to .txt
- Open the file and verify that you see the device configuration.
To copy config to a flash drive
- Insert flash drive into the router
- At an enable prompt (shown by a # instead of a >)
- enter the following command copy running-config usb0:running-config
- remove the flash drive and close the putty session
Labels:
Cisco
Cisco: How to install Cisco AnyConnect
Here are some instructions on how to download and install the Cisco AnyConnect client to a PC.
- Open a web browser and go to the IP address or URL for your VPN and make sure you use https to access it (i.e. https://vpn.anycompany.com)
- If the ASA is using a self-signed certificate you will see a page that says this site is not secure. This is OK, just click on the Details link if your are using Edge or IE and if you are using Chrome click the advance button
- Then click on the Go on to the webpage link if you are using Edge or IE and if you are using Chrome click on Proceed to
- Select the correct group you belong to from the drop down (if there is one)
- Enter the Username and Password that you should use to connect to the VPN
- Click Login
- Click the blue download bar for your OS version
- Click on the Details link if your are using Edge or IE and if you are using chrome click the advance button
- Click on the Go on to the webpage link if you are using Edge or IE and if you are using Chrome click on Proceed to
- A download box will appear at the bottom of your screen and you can run the file or save it to your computer. I usually tell end users just to run it, so click Run
- When prompted, install the AnyConnect Application
- Start the Cisco AnyConnect client
- Start=>All Programs=>Cisco=>Cisco AnyConnect Secure Mobile Client=>Cisco AnyConnect Secure Mobile Client
- The AnyConnect connection box will appear
- If on step 1 when you entered the URL in the web browser you saw that this is not a secure site please skip the section labeled Untrusted Servers
- In the AnyConnect connection box enter in the IP address or URL that you typed into your browser in step one and Click Connect
- If you skipped down to the Untrusted server section you will see a security warning box once you click Connect that says this is an Untrusted server Click Connect Anyway
- A box will appear; select the group that you belong to from the drop down if there is one
- Enter in your username and password and click OK
- When it is finished, you will see a box in the bottom right corner of your screen saying Connected
- You can now close the web page as you have installed the AnyConnect VPN client and you are connected to the VPN
- To disconnect from the VPN, right click on the AnyConnect icon that is in your system tray and choose VPN disconnect
Untrusted servers
- Click the Gear in the bottom left corner
- Click on the Preferences tab
- Uncheck Block connections to untrusted servers
- Click the X in the top right corner to close the window
- Go back to step 15
Labels:
Cisco
Tuesday, May 14, 2019
Cisco: Right to use Licensing
Cisco Right to use licensing allows you activate a specific license type and level for cretin types of equipment. A lot of times when we order a Cisco AppX or SecK9 license for a router or do a RMA on a piece of equipment I do not always need to activate a license and just configure the license as Right to use. Here are some of the commands to configure a right to use license
Conf t
License accept end user agreement
Yes
License boot level <License_Level> (Enter in the license name, appx, securityk9, ect)
Write memory
License right-to-use move <License_Level>
Other useful licenses commands:
To see a list of licenses and to see what is currently in use you can use the "Show License" command
To disable the license from a device you can use the "No license feature <License_Level>" command
Conf t
License accept end user agreement
Yes
License boot level <License_Level> (Enter in the license name, appx, securityk9, ect)
Write memory
License right-to-use move <License_Level>
Other useful licenses commands:
To see a list of licenses and to see what is currently in use you can use the "Show License" command
To disable the license from a device you can use the "No license feature <License_Level>" command
Labels:
Cisco
Polycom: Locate a Polycom phone's IP address (5000, 6000, 7000)
I work with Polycom phones on a regular basis but not regular enough to always remember how to find the IP address of the phone from the display. So here are the steps to find it.
- From the Home/Menu, select Settings
- Select Status
- Select Network
- Select TCP/IP Parameters
Labels:
Polycom
ShoreTel: Configure Valcom PagePro VIP-201A with ShoreTel
So there is no documentation from ShoreTel that says the Valcom PagePro IP VIP-201A is supported. But I was able to get it to work by playing around with the settings. The VIP-201A is really just acting as a SIP extension. Now I do not have the exact steps to do this as I kinda lost track of them when I was working on this but here is a general outline of what I did.
- Install the VIP-102B setup tool to access the device
- You must first scan and find the device (You should probably be on the same network as the device)
- Statically assign an IP address to the device
- Reboot the device
- Go to System -> Audio groups
- Create the Audio Group you need and click OK
- Go To System -> Audio Group Membership
- Select the Audio Group in the Drop down that you want to use, Select what port it should be available to
- Click Close
- Go to the Channels tab
- Select 1 through 4 and put in the dial code you want to use for it (leave the rest default)
- Go to the SIP tab
- Select you paging zones and fill out the info
- Phone number - After you dial the ShoreTel SIP extension to access the Valcom box, you will hear a tone in the handset, Then dial this "Phone number" to select the paging zone you want to access.
- Description
- Authentication Name: Used for authentication with the ShoreTel SIP extension, you should use the ShoreTel extension Clientname
- Secret: This is the SIP password on the SIP extension you are trying to use
- SIP Server: Enter in the IP address of the ShoreTel switch that hosts the SIP proxy (this is not the ShoreWare Director Server)
- Pre-Announce Tone: use this to know when to press the code for the paging zone
- Audio Groups: Select the Audio Groups you want this dial code to access for paging
- Configure each SIP tab as you need to, the authentication will be the same for each one
- To save this config, go to File --> Save (This will save it to your PC)
- Reboot the device
- Check ShoreTel ShoreWare Director Telephones to see if the Valcom device is registered
Hopeful this will help you in your configuration!
Labels:
ShoreTel
Subscribe to:
Posts (Atom)