Question

CISCO ASA SNMP

Asked by: chandru_sol

Hi,

I have a cisco ASA 5520 with 8.0(4)23 IOS and i am trying to pull all the users, groups, session details from ASA

I have upgraded from 8.0(3) as there were known issues

I am still not able to get the username associated with the connection

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-04-06 at 04:18:50ID24297718
Topics

Cisco PIX Firewall

,

Network Analysis Software

,

Network Routers

Participating Experts
3
Points
500
Comments
13

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Cisco ASA or Cisco IOS Router
    Hello ! I need a suggestion about "what to choose" "Cisco ASA" or "Cisco IOS Router". I am asking this because both of these products have rich firewall inspections, easy vpn`s and vpn tunnels etc... Someone told me take the Cisco IOS router bec...
  2. Cisco IOS or Cisco ASA
    Hello !! I am just thinking to purchase new either Cisco IOS Router 2800 Series or Cisco ASA 5520 Series, but I am not sure what to choose. Can someone explain me, is there more or better security in Cisco ASA than in the Cisco IOS Router ? or ? I am in little dillema becau...
  3. CISCO ASA PROBLEM
    Problem with CISCO ASA Hi my CISCO ASA V 08.0 (4) is giving me grief with a tcp connection to a host on port 445 (MS RPS Port) only, when I do a test connection on port 445 from an Inside host to the host on teh DMZ interface it does not work, eg does not get to the black...
  4. Cisco ASA IOS Upgrade
    Hi, I have confusion on how the licensing work for the Cisco IOS I would like to upgrade our Cisco ASAs 5505 firmware from 7.x to 8.x (total 10 ASAs) Do I need to buy / pay cisco for this firmware? I have the cd from one of our ASA, and just need to load them on all the ASA...
  5. Cisco ASA snmp community string
    How do you encrypt the snmp community string on a Cisco ASA 5520 running ASA IOS 8.0?
  6. Cisco ASA 5510 SNMP
    Dear colleagues, I need to test SNMP traps on a Cisco 5510 standalone in a lab environment. The objective is to check what type of traps the ASA 5510 device can raise because we have realised the device is not sending a coldstart trap. The SNMP server is a laptop running...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: Nothing_ChangedPosted on 2009-04-06 at 09:21:54ID: 24078913

Are you trying to see logged in admin users, or VPN users, or established TCP sessions, or something else?

 

by: chandru_solPosted on 2009-04-06 at 10:20:39ID: 24079515

VPN Users logged in using CISCO VPN clients

regards
Chandru

 

by: uetian1707Posted on 2009-04-07 at 04:46:53ID: 24086123

Hi,

You can easily accomplish this using a VPN Analyzer. Below are good examples;

Adventnet Firewall Analyzer      www.adventnet.com
FirePlotter      www.fireplotter.com
AlgoSec Firewall Analyzer      www.algosec.com
WallWatcher      www.wallwatcher.com
Firewall Analyzer      www.kdware.com
SawMill                www.sawmill.net

 

by: rootcoolkPosted on 2009-04-07 at 07:48:05ID: 24087893

Enabling SNMP

The SNMP agent that runs on the security appliance performs two functions:

"Replies to SNMP requests from NMSs.

"Sends traps (event notifications) to NMSs.

To enable the SNMP agent and identify an NMS that can connect to the security appliance.

Step 1 Ensure that the SNMP server on the security appliance is enabled
hostname(config)# snmp-server enable

Step 2 To identify the IP address of the NMS that can connect to the security appliance.

hostname(config)# snmp-server host interface_name ip_address [trap | poll] [community
text] [version 1 | 2c] [udp-port port]


Specify trap or poll if you want to limit the NMS to receiving traps only or browsing (polling) only.

Step 3 To specify the community string,

hostname(config)# snmp-server community key

Step 4 (Optional) To set the SNMP server location or contact informatio

hostname(config)# snmp-server {contact | location} text

Step 5 To enable the security appliance to send traps to the NMS.

hostname(config)# snmp-server enable traps [all | syslog | snmp [trap] [...] |
entity [trap] [...] | ipsec [trap] [...] | remote-access [trap]]

The default configuration has all snmp traps enabled (snmp-server enable traps snmp authentication linkup linkdown coldstart). You can disable these traps using the no form of this command with the snmp keyword. However, the clear configure snmp-server command restores the default enabling of SNMP traps.

If you enter this command and do not specify a trap type, then the default is syslog. (The default snmp traps continue to be enabled along with the syslog trap.)

Traps for snmp include:

"authentication

"linkup

"linkdown

"coldstart

Traps for entity include:

"config-change

"fru-insert

"fru-remove

Traps for ipsec include:

"start

"stop

Traps for remote-access include:

"session-threshold-exceeded

Step 6 To enable system messages to be sent as traps to the NMS.

hostname(config)# logging history level

You must also enable syslog traps using the preceding snmp-server enable traps command.

Step 7 To enable logging, so system messages are generated and can then be sent to an NMS.

hostname(config)# logging enable

example:
hostname(config)# snmp-server host 192.168.3.2

hostname(config)# snmp-server location building 42

hostname(config)# snmp-server contact rootcoolk

hostname(config)# snmp-server community cisco







 

by: Nothing_ChangedPosted on 2009-04-07 at 07:54:03ID: 24087960

Hey thanks "uetian1707", I appreciate you jumping into my question!


From the CLI (without downloading and installing any software or relying on a GUI), you could just login to the ASA, go to enable mode, then type something like:
 sh ipsec sa det | grep current_peer

and get an output like:
      current_peer: 1.2.3.4, username: username1
      current_peer: 5.6.7.8, username: username2
      current_peer: 9.10.11.12, username: username3

(IPs/usernames are fakes of course, but the output is right from one of my ASAs)
(and the full command is  "show ipsec sa detail | grep current_peer". Check it out without the grep to see all the info in there, it's a lot!)

 

by: Nothing_ChangedPosted on 2009-04-07 at 07:55:15ID: 24087970

MAN there are a LOT of question stealers out today! Thanks Guys, way to go! With lots of extraneous information and overcomplicated pseudo solutions too, SWEET!

 

by: chandru_solPosted on 2009-04-07 at 20:51:23ID: 24093819

Thanks!

Can i get the information using OID as i am trying to get this information from our NMS?

 

by: Nothing_ChangedPosted on 2009-04-08 at 13:03:21ID: 24101137

The current IPSEC VPN  peers are all leafs on .1.3.6.1.4.1.9.9.171.1.2.3.1.7. Thats in the CISCO-IPSEC-FLOW-MONITOR-MIB, you can get that here--> http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=CISCO-IPSEC-FLOW-MONITOR-MIB
 I have not seen the usernames in there anywhere though.

Each polling or trap host must be individually configured in the ASA, something like this:
snmp-server host INSIDE 10.10.10.5 poll community TestTestTest version 2c  (this host can poll only, not get traps)

depending on your NMA, you could have it use a perl script to ssh to the asa, run the command above, and then parse the data. non-trivial but do-able. I believe Ciscoworks has that feature, but I'm not certain.

Another alternative is to parse syslog at your NMS to get what you want. As long as you are logging at 4 or higher, you'll see stuff like this:
Apr 06 2009 14:28:20: %ASA-3-713119: Group = TestTestTest, Username = wrsmith, IP = 1.2.3.4, PHASE 1 COMPLETED
Apr 06 2009 18:45:10: %ASA-4-113019: Group = TestTestTest, Username = wrsmith, IP = 1.2.3.4, Session disconnected. Session Type: IPsecOverNatT, Duration: 5h:47m:50s, Bytes xmt: 2104395, Bytes rcv: 1053432, Reason: User Requested

most syslog-aware systems can parse this to maintain a table of the current and past connections.

 

by: chandru_solPosted on 2009-04-12 at 09:20:43ID: 24126102

Thanks!!

Is there any reason why the username is not displayed as part of the other SNMP strings?

regards
Chandru

 

by: Nothing_ChangedPosted on 2009-04-13 at 07:54:39ID: 24130251

No telling what reasoning goes into designing a MIB by any given vendor, and it MAY be in there somewhere, but I walked the mib to double check that perhaps it was in a MIB i didn't have loaded, but I saw no usernames in there anywhere.

But between polling the MIBs and parsing your syslog outputs in your NMS, you should be able to get what you want.

 

by: Nothing_ChangedPosted on 2009-05-27 at 05:56:52ID: 24482429

Any success in resolving this issue? Did I answer your question?

 

by: chandru_solPosted on 2009-06-22 at 10:53:28ID: 24684829

Sorry for the delay in getting back to you on this?
I am still not able to get the usernames in SNMP or using OID?
Is there no way of getting this information? Can you let me know how to setup the syslog to get only the userlogin information?

regards
Chandru

 

by: chandru_solPosted on 2009-07-03 at 05:43:57ID: 24771962

Hi,
Any update on this

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...